mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 21:14:07 +08:00
ALSA: hda/ca0132: Restore PCM Analog Mic-In2
Commit009b8f979b
conditionalized adding the "CA0132 Analog Mic-In2" PCM with a comment to the effect that, "desktops don't use this ADC", but the test was set up such that the ADC was only created for desktops. Invert the test. Fixes:009b8f979b
("ALSA: hda/ca0132: update core functions for sbz + r3di") Signed-off-by: Alastair Bridgewater <alastair.bridgewater@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
126b75e038
commit
5f8ddc6ee6
@ -5966,7 +5966,7 @@ static int ca0132_build_pcms(struct hda_codec *codec)
|
||||
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0];
|
||||
|
||||
/* With the DSP enabled, desktops don't use this ADC. */
|
||||
if (spec->use_alt_functions) {
|
||||
if (!spec->use_alt_functions) {
|
||||
info = snd_hda_codec_pcm_new(codec, "CA0132 Analog Mic-In2");
|
||||
if (!info)
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user