mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
ASoC: hdmi-codec: set plugged_cb to NULL when component removing
Sets plugged_cb to NULL when component removing to notify its consumers : no further plugged status report is required. Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/r/20200217105513.1.Icc323daaf71ad02f191fd8d91136b01b61eca5e3@changeid Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8f48629645
commit
4aadf4b49e
1 changed files with 10 additions and 0 deletions
|
@ -779,7 +779,17 @@ static int hdmi_of_xlate_dai_id(struct snd_soc_component *component,
|
||||||
return ret;
|
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 = {
|
static const struct snd_soc_component_driver hdmi_driver = {
|
||||||
|
.remove = hdmi_remove,
|
||||||
.dapm_widgets = hdmi_widgets,
|
.dapm_widgets = hdmi_widgets,
|
||||||
.num_dapm_widgets = ARRAY_SIZE(hdmi_widgets),
|
.num_dapm_widgets = ARRAY_SIZE(hdmi_widgets),
|
||||||
.of_xlate_dai_id = hdmi_of_xlate_dai_id,
|
.of_xlate_dai_id = hdmi_of_xlate_dai_id,
|
||||||
|
|
Loading…
Reference in a new issue