sound: usb: Treat find format failure as error
This allows to check if requested format is supported by
usb audio headset by looking at dmesg log.
Change-Id: I3051dd49a1289e4ab46bb59b3537c664a37c3ee5
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index db0a67e..8db091d 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -577,7 +577,7 @@
snd_usb_autoresume(subs->stream->chip);
fmt = find_format(subs);
if (!fmt) {
- dev_dbg(&subs->dev->dev,
+ dev_err(&subs->dev->dev,
"cannot set format: format = %#x, rate = %d, channels = %d\n",
subs->pcm_format, subs->cur_rate, subs->channels);
return -EINVAL;