Преглед изворни кода

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>
Jaroslav Kysela пре 17 година
родитељ
комит
ba443687f2
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      sound/pci/hda/hda_codec.c

+ 2 - 2
sound/pci/hda/hda_codec.c

@@ -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 **codecp)
 {
 {
 	struct hda_codec *codec;
 	struct hda_codec *codec;
-	char component[13];
+	char component[31];
 	int err;
 	int err;
 
 
 	if (snd_BUG_ON(!bus))
 	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);
 	snd_hda_create_hwdep(codec);
 #endif
 #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);
 	snd_component_add(codec->bus->card, component);
 
 
 	if (codecp)
 	if (codecp)