Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9c8f2abdc5723b454ef4bfe23ec33ae2a46f62fc
Commit:     9c8f2abdc5723b454ef4bfe23ec33ae2a46f62fc
Parent:     3fa2ef7468e86777b5d9d2462b950e3a6b6b6283
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 11 16:12:23 2008 +0100
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Thu Jan 31 17:29:55 2008 +0100

    [ALSA] hda-codec - print control name in error messages
    
    Print the name of the defect controls in error messages in amp info
    callback.  This will make debugging easier.
    
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/hda/hda_codec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index caacc58..b5e69b1 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -933,7 +933,8 @@ int snd_hda_mixer_amp_volume_info(struct snd_kcontrol 
*kcontrol,
        caps = (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT;
        if (!caps) {
                printk(KERN_WARNING "hda_codec: "
-                      "num_steps = 0 for NID=0x%x\n", nid);
+                      "num_steps = 0 for NID=0x%x (ctl = %s)\n", nid,
+                      kcontrol->id.name);
                return -EINVAL;
        }
        uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to