summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangdicheng <wangdicheng@kylinos.cn>2026-06-03 17:10:59 +0800
committerTakashi Iwai <tiwai@suse.de>2026-06-04 10:15:09 +0200
commitaddf2286331adc72a81de2179887671ecbf9f314 (patch)
tree814387faf0fdf1a6f7d2a55389a6fdcd9982f219
parentdef5e78a4e003c83adc9a8b4b72534def3a49641 (diff)
downloadlinux-addf2286331adc72a81de2179887671ecbf9f314.tar.gz
linux-addf2286331adc72a81de2179887671ecbf9f314.zip
ALSA: usb-audio: qcom: Improve error logging in USB offload
Add error codes to error messages for better debugging. This helps identify the root cause when USB audio offload fails. Error messages now include the actual error code returned by xhci_sideband operations, making it easier to diagnose failures during USB audio offload setup. Signed-off-by: wangdicheng <wangdicheng@kylinos.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260603091102.231370-1-wangdich9700@163.com
-rw-r--r--sound/usb/qcom/qc_audio_offload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/qcom/qc_audio_offload.c b/sound/usb/qcom/qc_audio_offload.c
index a0009503b2c5..f99f8bddb237 100644
--- a/sound/usb/qcom/qc_audio_offload.c
+++ b/sound/usb/qcom/qc_audio_offload.c
@@ -1140,7 +1140,7 @@ uaudio_endpoint_setup(struct snd_usb_substream *subs,
ret = xhci_sideband_add_endpoint(uadev[card_num].sb, ep);
if (ret < 0) {
dev_err(&subs->dev->dev,
- "failed to add data ep to sec intr\n");
+ "failed to add data ep to sec intr: %d\n", ret);
ret = -ENODEV;
goto exit;
}
@@ -1148,7 +1148,7 @@ uaudio_endpoint_setup(struct snd_usb_substream *subs,
sgt = xhci_sideband_get_endpoint_buffer(uadev[card_num].sb, ep);
if (!sgt) {
dev_err(&subs->dev->dev,
- "failed to get data ep ring address\n");
+ "failed to get data ep ring address: %d\n", ret);
ret = -ENODEV;
goto remove_ep;
}