ASoC: rt1321: fix DMIC ch2/3 mask issue
Subsystems (3)
PATCH 1/1 ASoC: rt1321: fix DMIC ch2/3 mask issue
From: Shuming Fan <[email protected]>
This patch fixed the DMIC ch2/3 mask missing problem.
--- sound/soc/codecs/rt1320-sdw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
sound/soc/codecs/rt1320-sdw.c +3 -2
@@ -2629,7 +2629,7 @@ static int rt1320_sdw_hw_params(struct snd_pcm_substream *substream,struct sdw_port_config port_config;struct sdw_port_config dmic_port_config[2 ];struct sdw_stream_runtime *sdw_stream; -int retval; +int retval, num_channels;unsigned int sampling_rate;dev_dbg (dai->dev,"%s %s" , __func__, dai->name);
@@ -2661,7 +2661,8 @@ static int rt1320_sdw_hw_params(struct snd_pcm_substream *substream, dmic_port_config[1 ].num =10 ;break ;case RT1321_DEV_ID : - dmic_port_config[0 ].ch_mask =BIT (0 ) |BIT (1 ); + num_channels =params_channels (params); + dmic_port_config[0 ].ch_mask =GENMASK (num_channels -1 ,0 ); dmic_port_config[0 ].num =8 ;break ;default :
Signature · 1 line
2.52.0
Mark Brown
maintainerQuoted 3 lines · On Wed, 25 Feb 2026 17:12:10 +0800, [email protected] wrote:
This patch fixed the DMIC ch2/3 mask missing problem.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: rt1321: fix DMIC ch2/3 mask issue
commit: 986841dcad257615a6e3f89231bb38e1f3506b77
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark