[ALSA] hda-codec - 'empty' generic mfg-only codec
authorSasha Khapyorsky <sashak@smlink.com>
Tue, 13 Sep 2005 09:25:54 +0000 (11:25 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 7 Oct 2005 12:45:29 +0000 (14:45 +0200)
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>
sound/pci/hda/hda_generic.c

index 5b829a1a4c60ea843c9621bcc9f39778b7905b01..d0eb9f2250aa013ec578f3ee62a65871cf96b983 100644 (file)
@@ -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) {