ALSA: AC97: Print AC97 flags in proc file to make debug it easier

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:17 pm

Gitweb:     http://git.kernel.org/linus/328cc6dfaadad614449eca1c75559e64c5054fea
Commit:     328cc6dfaadad614449eca1c75559e64c5054fea
Parent:     e167280070cccd2e0cde94f73ded0a4b08bf6412
Author:     Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
AuthorDate: Wed Jan 28 15:39:22 2009 -0200
Committer:  Takashi Iwai <tiwai@suse.de>
CommitDate: Thu Jan 29 08:38:36 2009 +0100

    ALSA: AC97: Print AC97 flags in proc file to make debug it easier
    
    While debugging some code paths in AC97 codec patches and its suspend
    and resume functions, getting to know the flags has proved useful to
    follow those code paths.
    
    Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/pci/ac97/ac97_proc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sound/pci/ac97/ac97_proc.c b/sound/pci/ac97/ac97_proc.c
index 060ea59..73b17d5 100644
--- a/sound/pci/ac97/ac97_proc.c
+++ b/sound/pci/ac97/ac97_proc.c
@@ -125,6 +125,8 @@ static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffe
         snd_iprintf(buffer, "PCI Subsys Device: 0x%04x\n\n",
                     ac97->subsystem_device);
 
+	snd_iprintf(buffer, "Flags: %x\n", ac97->flags);
+
 	if ((ac97->ext_id & AC97_EI_REV_MASK) >= AC97_EI_REV_23) {
 		val = snd_ac97_read(ac97, AC97_INT_PAGING);
 		snd_ac97_update_bits(ac97, AC97_INT_PAGING,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ALSA: AC97: Print AC97 flags in proc file to make debug it ..., Linux Kernel Mailing ..., (Thu Mar 26, 12:17 pm)