]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] [PPC,SOUND] Fix audio gpio state detection
authorAndreas Schwab <schwab@suse.de>
Fri, 1 Sep 2006 15:15:36 +0000 (17:15 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:45:33 +0000 (10:45 +0200)
commit67b680472b6a7682f94978c9d8b79c69d6ac820b
tree867ee4c5928d1f6305822740291fbc7c44607bca
parent231ec09140b09e4fb37d88d1fdb5c4aeb7b9dd32
[ALSA] [PPC,SOUND] Fix audio gpio state detection

When booting with line out or headphone plugged, you won't hear anything.
The problem is that after reset all channels are muted, but the actual
value of the gpio port doesn't exactly match the active_val settings as
expected by check_audio_gpio.  For example, the line_mute port is set to
7, but check_audio_gpio would expect 0xd or 0xf, thus its return value
indicates that it is not active, even though it is.  AFAICS only looking
at the low bit is enough to determine whether the port is active.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/ppc/tumbler.c