aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorEldad Zack <eldad@fogrefinery.com>2013-04-03 17:18:57 -0400
committerTakashi Iwai <tiwai@suse.de>2013-04-04 02:31:40 -0400
commit027bbc15460d68fc8a04d9be03856e2cdb913157 (patch)
treeca5fe7b3d42fa717dace6829ba5cc585620c9474 /sound/usb
parentef02e29b0180ddbcc1ecf3c362e333c572f27c08 (diff)
ALSA: usb-audio: show err in set_sample_rate_v2 debug
Show the error code returned from the USB subsystem in the debug messages. Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/clock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/usb/clock.c b/sound/usb/clock.c
index e59d359b907c..a694e1c42fdf 100644
--- a/sound/usb/clock.c
+++ b/sound/usb/clock.c
@@ -331,8 +331,8 @@ static int get_sample_rate_v2(struct snd_usb_audio *chip, int iface,
331 snd_usb_ctrl_intf(chip) | (clock << 8), 331 snd_usb_ctrl_intf(chip) | (clock << 8),
332 &data, sizeof(data)); 332 &data, sizeof(data));
333 if (err < 0) { 333 if (err < 0) {
334 snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq (v2)\n", 334 snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq (v2): err %d\n",
335 dev->devnum, iface, altsetting); 335 dev->devnum, iface, altsetting, err);
336 return 0; 336 return 0;
337 } 337 }
338 338
@@ -360,8 +360,8 @@ static int set_sample_rate_v2(struct snd_usb_audio *chip, int iface,
360 UAC2_CS_CONTROL_SAM_FREQ << 8, 360 UAC2_CS_CONTROL_SAM_FREQ << 8,
361 snd_usb_ctrl_intf(chip) | (clock << 8), 361 snd_usb_ctrl_intf(chip) | (clock << 8),
362 &data, sizeof(data))) < 0) { 362 &data, sizeof(data))) < 0) {
363 snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d (v2)\n", 363 snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d (v2): err %d\n",
364 dev->devnum, iface, fmt->altsetting, rate); 364 dev->devnum, iface, fmt->altsetting, rate, err);
365 return err; 365 return err;
366 } 366 }
367 367