]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: hda - put all HDA codec IDs to components for precise hw detection
authorJaroslav Kysela <perex@perex.cz>
Wed, 13 Aug 2008 18:55:32 +0000 (20:55 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 13 Aug 2008 18:55:32 +0000 (20:55 +0200)
Export HDA codec subvendor ID and revision ID to user space via the
components variable. Our alsactl utility requires these values for
the perfect hardware identification.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/hda_codec.c

index 529bd5f6521f2b0ff5b94cdec4f877930ef7f4ca..4f32911508099953a67ad9d8c265b2d2f78e7eda 100644 (file)
@@ -588,7 +588,7 @@ int __devinit snd_hda_codec_new(struct hda_bus *bus, unsigned int codec_addr,
                                struct hda_codec **codecp)
 {
        struct hda_codec *codec;
-       char component[13];
+       char component[31];
        int err;
 
        if (snd_BUG_ON(!bus))
@@ -693,7 +693,7 @@ int __devinit snd_hda_codec_new(struct hda_bus *bus, unsigned int codec_addr,
        snd_hda_create_hwdep(codec);
 #endif
 
-       sprintf(component, "HDA:%08x", codec->vendor_id);
+       sprintf(component, "HDA:%08x,%08x,%08x", codec->vendor_id, codec->subsystem_id, codec->revision_id);
        snd_component_add(codec->bus->card, component);
 
        if (codecp)