aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_proc.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-11-19 08:14:50 -0500
committerTakashi Iwai <tiwai@suse.de>2008-11-19 08:14:50 -0500
commit8563964617a6685d790448d9d7e45b49be90a448 (patch)
tree77b6d06f7af3599c2c2f82b1e81dccab6fea8cfd /sound/pci/hda/hda_proc.c
parentae8cb4caa34af20311fcf5ef248afc54407aa9a8 (diff)
ALSA: hda - Show missing GPIO unsol bits
The GPIO unsolicited event bits are read but not shown in the proc file. Let's fix it. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_proc.c')
-rw-r--r--sound/pci/hda/hda_proc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_proc.c b/sound/pci/hda/hda_proc.c
index d956e9769133..31b49bdc58f5 100644
--- a/sound/pci/hda/hda_proc.c
+++ b/sound/pci/hda/hda_proc.c
@@ -485,12 +485,13 @@ static void print_gpio(struct snd_info_buffer *buffer,
485 for (i = 0; i < max; ++i) 485 for (i = 0; i < max; ++i)
486 snd_iprintf(buffer, 486 snd_iprintf(buffer,
487 " IO[%d]: enable=%d, dir=%d, wake=%d, " 487 " IO[%d]: enable=%d, dir=%d, wake=%d, "
488 "sticky=%d, data=%d\n", i, 488 "sticky=%d, data=%d, unsol=%d\n", i,
489 (enable & (1<<i)) ? 1 : 0, 489 (enable & (1<<i)) ? 1 : 0,
490 (direction & (1<<i)) ? 1 : 0, 490 (direction & (1<<i)) ? 1 : 0,
491 (wake & (1<<i)) ? 1 : 0, 491 (wake & (1<<i)) ? 1 : 0,
492 (sticky & (1<<i)) ? 1 : 0, 492 (sticky & (1<<i)) ? 1 : 0,
493 (data & (1<<i)) ? 1 : 0); 493 (data & (1<<i)) ? 1 : 0,
494 (unsol & (1<<i)) ? 1 : 0);
494 /* FIXME: add GPO and GPI pin information */ 495 /* FIXME: add GPO and GPI pin information */
495} 496}
496 497