From: Takashi Iwai Date: Thu, 10 Mar 2016 10:33:43 +0000 (+0100) Subject: ALSA: hda - Apply reboot D3 fix for CX20724 codec, too X-Git-Tag: v4.6-rc2~16^2~28^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56dc66ff1c6d71f9a38c4a7c000b72b921fe4c89;p=platform%2Fkernel%2Flinux-exynos.git ALSA: hda - Apply reboot D3 fix for CX20724 codec, too Just like CX20722, CX7024 codec also requires the power down at reboot in order to reduce the noise at reboot/shutdown. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=113511 Cc: Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 6122b8c..56fefbd 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c @@ -204,8 +204,13 @@ static void cx_auto_reboot_notify(struct hda_codec *codec) { struct conexant_spec *spec = codec->spec; - if (codec->core.vendor_id != 0x14f150f2) + switch (codec->core.vendor_id) { + case 0x14f150f2: /* CX20722 */ + case 0x14f150f4: /* CX20724 */ + break; + default: return; + } /* Turn the CX20722 codec into D3 to avoid spurious noises from the internal speaker during (and after) reboot */