diff options
author | Mengdong Lin <mengdong.lin@intel.com> | 2013-12-05 18:35:48 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-12-06 02:53:08 -0500 |
commit | 5b8620bb84b2f66b7a776fbfc0d273f6c78d969c (patch) | |
tree | 31e9ad727157bb45f645afef0ad493c7ca6db729 /sound/pci/hda/patch_hdmi.c | |
parent | f4d6a55d7be3f5b944c17e6aafb84d96c4dd09d7 (diff) |
ALSA: hda - skip depop delay before D3 for Haswell and Valleyview2 display codec
This patch skips the default depop delay before D3 for Haswell (10 ms) and
Valleyview2 (100 ms) display codec, to reduce codec suspend time.
The analog part of display audio is implemented in the external display. Some
displays have weak pop noise while others not when suspending, no matter there
is the default delay or not.
Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 4098196b2300..1bd637b1dd0f 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c | |||
@@ -2247,6 +2247,10 @@ static int patch_generic_hdmi(struct hda_codec *codec) | |||
2247 | intel_haswell_fixup_enable_dp12(codec); | 2247 | intel_haswell_fixup_enable_dp12(codec); |
2248 | } | 2248 | } |
2249 | 2249 | ||
2250 | if (is_haswell(codec) || is_valleyview(codec)) { | ||
2251 | codec->depop_delay = 0; | ||
2252 | } | ||
2253 | |||
2250 | if (hdmi_parse_codec(codec) < 0) { | 2254 | if (hdmi_parse_codec(codec) < 0) { |
2251 | codec->spec = NULL; | 2255 | codec->spec = NULL; |
2252 | kfree(spec); | 2256 | kfree(spec); |