Re: [RESEND v5 3/4] soundwire: qcom: Add set_channel_map api support
From: Mark Brown
Date: Mon Feb 03 2025 - 08:21:07 EST
On Thu, Jan 23, 2025 at 09:58:22AM +0530, Mohammad Rafi Shaik wrote:
> Added qcom_swrm_set_channel_map api to set the master channel mask for
> TX and RX paths based on the provided slots.
This breaks an allmodconfig build, and arm64 defconfig:
/build/stage/linux/drivers/soundwire/qcom.c: In function ‘qcom_swrm_set_channel_map’:
/build/stage/linux/drivers/soundwire/qcom.c:1283:36: warning: unused variable ‘sruntime’ [-Wunused-variable]
1283 | struct sdw_stream_runtime *sruntime = ctrl->sruntime[dai->id];
| ^~~~~~~~
/build/stage/linux/drivers/soundwire/qcom.c: At top level:
/build/stage/linux/drivers/soundwire/qcom.c:1335:28: error: initialization of ‘int (*)(struct snd_soc_dai *, unsigned int, const unsigned int *, unsigned int, const unsigned int *)’ from incompatible pointer type ‘int (*)(struct snd_soc_dai *, unsigned int, unsigned int *, unsigned int, unsigned int *)’ [-Werror=incompatible-pointer-types]
1335 | .set_channel_map = qcom_swrm_set_channel_map,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/build/stage/linux/drivers/soundwire/qcom.c:1335:28: note: (near initialization for ‘qcom_swrm_pdm_dai_ops.set_channel_map’)
Attachment:
signature.asc
Description: PGP signature