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

Commit 84802f0d authored by Sasha Khapyorsky's avatar Sasha Khapyorsky Committed by Jaroslav Kysela
Browse files

[ALSA] hda-codec - 'empty' generic mfg-only codec



HDA generic driver
This creates 'empty' hda generic for unknown MFG-only codecs.

Signed-off-by: default avatarSasha Khapyorsky <sashak@smlink.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 27bcaa69
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -881,10 +881,8 @@ int snd_hda_parse_generic_codec(struct hda_codec *codec)
	struct hda_gspec *spec;
	int err;

	if(!codec->afg) {
		snd_printdd("hda_generic: no generic modem yet\n");
		return -ENODEV;
	}
	if(!codec->afg)
		return 0;

	spec = kzalloc(sizeof(*spec), GFP_KERNEL);
	if (spec == NULL) {