summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/hdmi-codec.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-02-24 22:26:06 +0000
committerMark Brown <broonie@kernel.org>2020-02-24 22:26:06 +0000
commit6c8beff74c6aafa60cb69b44139de58b74a775e7 (patch)
treebeeb7ed4968bb1426a38fbc77e3d71ecd4306fbd /sound/soc/codecs/hdmi-codec.c
parent6bff73c6115d088fee4d09aff65e145b990382eb (diff)
parent8308a09e87d2cb51adb186dc7d5a5c1913fb0758 (diff)
downloadlinux-next-6c8beff74c6aafa60cb69b44139de58b74a775e7.tar.gz
Merge branch 'for-5.6' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.7
Diffstat (limited to 'sound/soc/codecs/hdmi-codec.c')
-rw-r--r--sound/soc/codecs/hdmi-codec.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c
index 444cc4e3374e..f005751da2cc 100644
--- a/sound/soc/codecs/hdmi-codec.c
+++ b/sound/soc/codecs/hdmi-codec.c
@@ -779,7 +779,17 @@ static int hdmi_of_xlate_dai_id(struct snd_soc_component *component,
return ret;
}
+static void hdmi_remove(struct snd_soc_component *component)
+{
+ struct hdmi_codec_priv *hcp = snd_soc_component_get_drvdata(component);
+
+ if (hcp->hcd.ops->hook_plugged_cb)
+ hcp->hcd.ops->hook_plugged_cb(component->dev->parent,
+ hcp->hcd.data, NULL, NULL);
+}
+
static const struct snd_soc_component_driver hdmi_driver = {
+ .remove = hdmi_remove,
.dapm_widgets = hdmi_widgets,
.num_dapm_widgets = ARRAY_SIZE(hdmi_widgets),
.of_xlate_dai_id = hdmi_of_xlate_dai_id,