summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJonathan Phenix <jonathan@linuxant.com>2007-06-19 18:31:28 +0200
committerJaroslav Kysela <perex@suse.cz>2007-07-20 11:11:31 +0200
commite25c05f1d5cf4e332db88b15e9daa1cabd6e17e0 (patch)
tree7665e739c6f8c0e9d3d863824f2d49bd23ceedec /sound
parent92a22beb756c53985e8ba98d39f2c8fc834557a4 (diff)
downloadlinux-3.10-e25c05f1d5cf4e332db88b15e9daa1cabd6e17e0.tar.gz
linux-3.10-e25c05f1d5cf4e332db88b15e9daa1cabd6e17e0.tar.bz2
linux-3.10-e25c05f1d5cf4e332db88b15e9daa1cabd6e17e0.zip
[ALSA] hda-codec - Output MFG information for HDA devices
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_proc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
index e313e685f16..ac15066fd30 100644
--- a/sound/pci/hda/hda_proc.c
+++ b/sound/pci/hda/hda_proc.c
@@ -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");