Skip to content

Commit

Permalink
ALSA: hda - put all HDA codec IDs to components for precise hw detection
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jaroslav Kysela committed Aug 13, 2008
1 parent 6ef1090 commit ba44368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ba44368

Please sign in to comment.