Skip to content

Commit

Permalink
ALSA: hda - Allow capture-only configuration
Browse files Browse the repository at this point in the history
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: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Dec 6, 2013
1 parent 5b8620b commit c9e4bdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4334,7 +4334,8 @@ int snd_hda_gen_parse_auto_config(struct hda_codec *codec,
spec->no_analog = 1;
goto dig_only;
}
return 0; /* can't find valid BIOS pin config */
if (!cfg->num_inputs && !cfg->dig_in_pin)
return 0; /* can't find valid BIOS pin config */
}

if (!spec->no_primary_hp &&
Expand Down

0 comments on commit c9e4bdb

Please sign in to comment.