Commit c9e4bdb7 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Allow capture-only configuration

We have blindly assumed that all valid configurations should have
either analog or digital playback, but there can be capture-only
configurations.  The parser shouldn't escape in such a case.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5b8620bb
...@@ -4334,6 +4334,7 @@ int snd_hda_gen_parse_auto_config(struct hda_codec *codec, ...@@ -4334,6 +4334,7 @@ int snd_hda_gen_parse_auto_config(struct hda_codec *codec,
spec->no_analog = 1; spec->no_analog = 1;
goto dig_only; goto dig_only;
} }
if (!cfg->num_inputs && !cfg->dig_in_pin)
return 0; /* can't find valid BIOS pin config */ return 0; /* can't find valid BIOS pin config */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment