Unverified Commit 986841dc authored by Shuming Fan's avatar Shuming Fan Committed by Mark Brown
Browse files

ASoC: rt1321: fix DMIC ch2/3 mask issue



This patch fixed the DMIC ch2/3 mask missing problem.

Signed-off-by: default avatarShuming Fan <shumingf@realtek.com>
Link: https://patch.msgid.link/20260225091210.3648905-1-shumingf@realtek.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9351cf3f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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: