From: Takashi Iwai Date: Wed, 16 Nov 2011 17:05:11 +0000 (+0100) Subject: ALSA: hda - Fix the connection selection of ADCs on Cirrus codecs X-Git-Tag: v3.2-rc3~44^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05ee7964a470d29889ac48cc8274c1b5a1904a11;p=pandora-kernel.git ALSA: hda - Fix the connection selection of ADCs on Cirrus codecs 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 Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed