[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.6 / 0002-ALSA-hda-Fix-the-logic-to-detect-VIA-analog-low-curr.patch
1 From 02e85499ffcb080ef11c8cc1b092e033f90651f5 Mon Sep 17 00:00:00 2001
2 From: Takashi Iwai <tiwai@suse.de>
3 Date: Tue, 24 Jan 2012 13:58:36 +0100
4 Subject: [PATCH 02/87] ALSA: hda - Fix the logic to detect VIA analog
5 low-current mode
7 commit 924339239fd5ba3e505f9420d41f0939196f3530 upstream.
9 The analog low-current mode must be enabled when the no stream is
10 running but the current detection checks it in a wrong way.
12 Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=741128
14 Signed-off-by: Takashi Iwai <tiwai@suse.de>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 ---
17 sound/pci/hda/patch_via.c | 2 +-
18 1 files changed, 1 insertions(+), 1 deletions(-)
20 diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c
21 index 8d69e59..0684542 100644
22 --- a/sound/pci/hda/patch_via.c
23 +++ b/sound/pci/hda/patch_via.c
24 @@ -1041,7 +1041,7 @@ static void analog_low_current_mode(struct hda_codec *codec)
25 bool enable;
26 unsigned int verb, parm;
28 - enable = is_aa_path_mute(codec) && (spec->opened_streams != 0);
29 + enable = is_aa_path_mute(codec) && !spec->opened_streams;
31 /* decide low current mode's verb & parameter */
32 switch (spec->codec_type) {
33 --
34 1.7.7.4