aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2008-08-13 14:55:32 -0400
committerJaroslav Kysela <perex@perex.cz>2008-08-13 14:55:32 -0400
commitba443687f2eb70d23e0466d4b7c0c3366b5cb5fb (patch)
treeaa3da3b4d1f53cc86601161c628607a9c8fb0871 /sound/pci/hda/hda_codec.c
parent6ef109050da99952b59397840e9b50cd6611e92a (diff)
ALSA: hda - put all HDA codec IDs to components for precise hw detection
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>
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 529bd5f6521f..4f3291150809 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -588,7 +588,7 @@ int __devinit snd_hda_codec_new(struct hda_bus *bus, unsigned int codec_addr,
588 struct hda_codec **codecp) 588 struct hda_codec **codecp)
589{ 589{
590 struct hda_codec *codec; 590 struct hda_codec *codec;
591 char component[13]; 591 char component[31];
592 int err; 592 int err;
593 593
594 if (snd_BUG_ON(!bus)) 594 if (snd_BUG_ON(!bus))
@@ -693,7 +693,7 @@ int __devinit snd_hda_codec_new(struct hda_bus *bus, unsigned int codec_addr,
693 snd_hda_create_hwdep(codec); 693 snd_hda_create_hwdep(codec);
694#endif 694#endif
695 695
696 sprintf(component, "HDA:%08x", codec->vendor_id); 696 sprintf(component, "HDA:%08x,%08x,%08x", codec->vendor_id, codec->subsystem_id, codec->revision_id);
697 snd_component_add(codec->bus->card, component); 697 snd_component_add(codec->bus->card, component);
698 698
699 if (codecp) 699 if (codecp)