]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soundwire: qcom: Add set_channel_map api support
authorMohammad Rafi Shaik <quic_mohs@quicinc.com>
Thu, 6 Feb 2025 11:22:24 +0000 (16:52 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 6 Feb 2025 11:49:22 +0000 (11:49 +0000)
commit7796c97df6b1b2206681a07f3c80f6023a6593d5
treed41d6e9022ff6e1e21603304af634967af959eb8
parentc06c4f7cbea1d8dc71485bfddef2849a1b721e67
soundwire: qcom: Add set_channel_map api support

Added qcom_swrm_set_channel_map api to set the master channel mask for
TX and RX paths based on the provided slots.

Added a new field ch_mask to the qcom_swrm_port_config structure.
This field is used to store the master channel mask, which allows more
flexible to configure channel mask in runtime for specific active
soundwire ports.

Modified the qcom_swrm_port_enable function to configure master
channel mask. If the ch_mask is set to SWR_INVALID_PARAM or is zero,
the function will use the default channel mask.

Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://patch.msgid.link/20250206112225.3270400-4-quic_mohs@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/soundwire/qcom.c