diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-09-11 12:59:21 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-05 14:54:08 -0700 |
commit | c0532c3ba5fc01742c50d01a1997f823dc8ac1ea (patch) | |
tree | ec2a93407ea09ab4b0a0fc258aeb2a224f9d272a /fs/pstore | |
parent | 37a86af862cde5caf76ac189479268966b47c9ad (diff) | |
download | linux-3.10-c0532c3ba5fc01742c50d01a1997f823dc8ac1ea.tar.gz linux-3.10-c0532c3ba5fc01742c50d01a1997f823dc8ac1ea.tar.bz2 linux-3.10-c0532c3ba5fc01742c50d01a1997f823dc8ac1ea.zip |
ALSA: hda - Fix invalid pin powermap without jack detection
commit 7a9744cb455e6faa287e148394b4b422a6f3c5c4 upstream.
When a driver is set up without the jack detection explicitly (either
by passing a model option or via a specific fixup), the pin powermap
of IDT/STAC codecs is set up wrongly, resulting in the silence
output. It's because of a logic failure in stac_init_power_map().
It tries to avoid creating a callback for the pins that have other
auto-hp and auto-mic callbacks, but the check is done in a wrong way
at a wrong time. The stac_init_power_map() should be called after
creating other jack detection ctls, and the jack callback should be
created only for jack-detectable widgets.
This patch fixes the check in stac_init_power_map() and its callee
at the right place, after snd_hda_gen_build_controls().
Reported-by: Adam Richter <adam_richter2004@yahoo.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/pstore')
0 files changed, 0 insertions, 0 deletions