mirror of https://gitee.com/openkylin/linux.git
[ALSA] hda-codec - 'empty' generic mfg-only codec
HDA generic driver This creates 'empty' hda generic for unknown MFG-only codecs. Signed-off-by: Sasha Khapyorsky <sashak@smlink.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
27bcaa693c
commit
84802f0df3
|
@ -881,10 +881,8 @@ int snd_hda_parse_generic_codec(struct hda_codec *codec)
|
||||||
struct hda_gspec *spec;
|
struct hda_gspec *spec;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if(!codec->afg) {
|
if(!codec->afg)
|
||||||
snd_printdd("hda_generic: no generic modem yet\n");
|
return 0;
|
||||||
return -ENODEV;
|
|
||||||
}
|
|
||||||
|
|
||||||
spec = kzalloc(sizeof(*spec), GFP_KERNEL);
|
spec = kzalloc(sizeof(*spec), GFP_KERNEL);
|
||||||
if (spec == NULL) {
|
if (spec == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue