diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-01-11 10:12:23 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-01-31 11:29:55 -0500 |
commit | 9c8f2abdc5723b454ef4bfe23ec33ae2a46f62fc (patch) | |
tree | dba6cac8619d6c06daeaa0be2bf93a3f06b7b1c2 | |
parent | 3fa2ef7468e86777b5d9d2462b950e3a6b6b6283 (diff) |
[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 <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | 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 caacc58c0813..b5e69b10cb83 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, | |||
933 | caps = (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT; | 933 | caps = (caps & AC_AMPCAP_NUM_STEPS) >> AC_AMPCAP_NUM_STEPS_SHIFT; |
934 | if (!caps) { | 934 | if (!caps) { |
935 | printk(KERN_WARNING "hda_codec: " | 935 | printk(KERN_WARNING "hda_codec: " |
936 | "num_steps = 0 for NID=0x%x\n", nid); | 936 | "num_steps = 0 for NID=0x%x (ctl = %s)\n", nid, |
937 | kcontrol->id.name); | ||
937 | return -EINVAL; | 938 | return -EINVAL; |
938 | } | 939 | } |
939 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; | 940 | uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; |