Commit 027bbc15460d68fc8a04d9be03856e2cdb913157
Committed by
Takashi Iwai
1 parent
ef02e29b01
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
sound/usb/clock.c
... | ... | @@ -331,8 +331,8 @@ |
331 | 331 | snd_usb_ctrl_intf(chip) | (clock << 8), |
332 | 332 | &data, sizeof(data)); |
333 | 333 | if (err < 0) { |
334 | - snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq (v2)\n", | |
335 | - dev->devnum, iface, altsetting); | |
334 | + snd_printk(KERN_WARNING "%d:%d:%d: cannot get freq (v2): err %d\n", | |
335 | + dev->devnum, iface, altsetting, err); | |
336 | 336 | return 0; |
337 | 337 | } |
338 | 338 | |
... | ... | @@ -360,8 +360,8 @@ |
360 | 360 | UAC2_CS_CONTROL_SAM_FREQ << 8, |
361 | 361 | snd_usb_ctrl_intf(chip) | (clock << 8), |
362 | 362 | &data, sizeof(data))) < 0) { |
363 | - snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d (v2)\n", | |
364 | - dev->devnum, iface, fmt->altsetting, rate); | |
363 | + snd_printk(KERN_ERR "%d:%d:%d: cannot set freq %d (v2): err %d\n", | |
364 | + dev->devnum, iface, fmt->altsetting, rate, err); | |
365 | 365 | return err; |
366 | 366 | } |
367 | 367 |