https://github.com/torvalds/linux
Revision 05ee7964a470d29889ac48cc8274c1b5a1904a11 authored by Takashi Iwai on 16 November 2011, 17:05:11 UTC, committed by Takashi Iwai on 16 November 2011, 17:05:11 UTC
spec->cur_adc isn't set until cs_capture_pcm_prepare() is called although
the driver tries to select the connection at init time and at auto-mic
switch.  This results in the access to the widget NID 0, which is
obviously invalid, also a wrong capture source.

This patch fixes the issue by issuing the connect-select verb conditionally
at appropriate places.

Reported-and-tested-by: Dylan Reid <dgreid@chromium.org>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 25d7d59
History
Tip revision: 05ee7964a470d29889ac48cc8274c1b5a1904a11 authored by Takashi Iwai on 16 November 2011, 17:05:11 UTC
ALSA: hda - Fix the connection selection of ADCs on Cirrus codecs
Tip revision: 05ee796
File Mode Size
Kconfig -rw-r--r-- 415 bytes
Makefile -rw-r--r-- 306 bytes
async_memcpy.c -rw-r--r-- 3.0 KB
async_memset.c -rw-r--r-- 2.6 KB
async_pq.c -rw-r--r-- 12.5 KB
async_raid6_recov.c -rw-r--r-- 14.4 KB
async_tx.c -rw-r--r-- 7.6 KB
async_xor.c -rw-r--r-- 9.9 KB
raid6test.c -rw-r--r-- 6.3 KB

back to top