• Andreas Schwab's avatar
    [ALSA] [PPC,SOUND] Fix audio gpio state detection · 2fd53a7e
    Andreas Schwab authored
    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: default avatarAndreas Schwab <schwab@suse.de>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
    2fd53a7e
tumbler.c 37.5 KB