Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9e4bdb7 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4334,6 +4334,7 @@ int snd_hda_gen_parse_auto_config(struct hda_codec *codec,
			spec->no_analog = 1;
			goto dig_only;
		}
		if (!cfg->num_inputs && !cfg->dig_in_pin)
			return 0; /* can't find valid BIOS pin config */
	}