Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: qcom: qdsp6: Set error code in q6usb_hw_params()

Propagate the error code if q6afe_port_get_from_id() fails. Don't
return success.

Fixes: 72b0b8b29980 ("ASoC: qcom: qdsp6: Add USB backend ASoC driver for Q6")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/Z_442PWaMVoZcbbU@stanley.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dan Carpenter and committed by
Greg Kroah-Hartman
ba6474f1 8176dd6e

+3 -1
+3 -1
sound/soc/qcom/qdsp6/q6usb.c
··· 74 74 goto out; 75 75 76 76 q6usb_afe = q6afe_port_get_from_id(cpu_dai->dev, USB_RX); 77 - if (IS_ERR(q6usb_afe)) 77 + if (IS_ERR(q6usb_afe)) { 78 + ret = PTR_ERR(q6usb_afe); 78 79 goto out; 80 + } 79 81 80 82 /* Notify audio DSP about the devices being offloaded */ 81 83 ret = afe_port_send_usb_dev_param(q6usb_afe, sdev->card_idx,