diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-11-22 14:26:24 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-11-22 14:34:00 +0100 |
commit | 10a9594563415855bd99678ea4f91dea792e5499 (patch) | |
tree | 0ee8608ba0ff468570526b4d4cd5d1daf2d0876e /sound/pci/hda/patch_hdmi.c | |
parent | 5a858e79c911330678b5a9be91a24830e94a0dc9 (diff) | |
download | linux-stable-10a9594563415855bd99678ea4f91dea792e5499.tar.gz linux-stable-10a9594563415855bd99678ea4f91dea792e5499.tar.bz2 linux-stable-10a9594563415855bd99678ea4f91dea792e5499.zip |
ALSA: hda/hdmi - Clear codec->relaxed_resume flag at unbinding
The HDMI codec may leave codec->relaxed_resume flag set even after
unbinding. Clear it unconditionally.
It's very unlikely that this actually matters in the real use case,
so just a fix for consistency.
Fixes: ade49db337a9 ("ALSA: hda/hdmi - Allow audio component for AMD/ATI and Nvidia HDMI")
Link: https://lore.kernel.org/r/20191122132624.5482-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 9063bf88689f..bffde594e204 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -2361,8 +2361,8 @@ static void generic_hdmi_free(struct hda_codec *codec) snd_hdac_acomp_exit(&codec->bus->core); } else if (codec_has_acomp(codec)) { snd_hdac_acomp_register_notifier(&codec->bus->core, NULL); - codec->relaxed_resume = 0; } + codec->relaxed_resume = 0; for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx); |