mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
ASoC: rt1321: fix DMIC ch2/3 mask issue
This patch fixed the DMIC ch2/3 mask missing problem. Signed-off-by: Shuming Fan <shumingf@realtek.com> Link: https://patch.msgid.link/20260225091210.3648905-1-shumingf@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
9351cf3fd9
commit
986841dcad
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user