]> err.no Git - linux-2.6/commitdiff
[ALSA] hda-codec - Output MFG information for HDA devices
authorJonathan Phenix <jonathan@linuxant.com>
Tue, 19 Jun 2007 16:31:28 +0000 (18:31 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 20 Jul 2007 09:11:31 +0000 (11:11 +0200)
This patch output information about the MFG (Modem Function Group) to
the /proc/asound/card?/codec#? file. This information is important to
identify if a HDA device has a modem or not.

Signed-off-by: Jonathan Phenix <jonathan@linuxant.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/hda/hda_proc.c

index e313e685f1617bd664fbd1cf167dab6a7954cb16..ac15066fd300e7c62b706a48493930cc206c8893 100644 (file)
@@ -250,6 +250,12 @@ static void print_codec_info(struct snd_info_entry *entry, struct snd_info_buffe
        snd_iprintf(buffer, "Vendor Id: 0x%x\n", codec->vendor_id);
        snd_iprintf(buffer, "Subsystem Id: 0x%x\n", codec->subsystem_id);
        snd_iprintf(buffer, "Revision Id: 0x%x\n", codec->revision_id);
+
+       if (codec->mfg)
+               snd_iprintf(buffer, "Modem Function Group: 0x%x\n", codec->mfg);
+       else
+               snd_iprintf(buffer, "No Modem Function Group found\n");
+
        if (! codec->afg)
                return;
        snd_iprintf(buffer, "Default PCM:\n");