diff options
| author | Qianghua Wang <qianghua.wang@senarytech.com> | 2026-11-03 15:01:50 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-11-03 17:50:06 +0000 |
| commit | b54a20b671e3943ecc3a7b3cff486a012010ab2a (patch) | |
| tree | a7e92a7d0a4fb870c8fce490f5cb4215b33f34ba | |
| parent | 97d5fbab9e62b618a6bf13db2f8ff9347f1423f9 (diff) | |
ASoC: codecs: sn624x-sdca: limit DMIC capture to 2 channels
The SN624x DMIC path only has two microphones. The aif3 capture DAI
advertised channels_max = 4, so userspace could open a 4-channel
capture that the hardware does not provide.
Clamp the DMIC capture DAI to two channels to match the headset
capture DAI and the sof-sdca-mic function topology.
Tested on a Wildcat Lake laptop with SN6244: hw:*,4 reports CHANNELS
2 and rejects a 4-channel arecord.
Signed-off-by: Qianghua Wang <qianghua.wang@senarytech.com>
Link: https://patch.msgid.link/20261103070150.115136-1-qianghua.wang@senarytech.com
Signed-off-by: Mark Brown <broonie@kernel.org>
| -rw-r--r-- | sound/soc/codecs/sn624x-sdca-sdw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/sn624x-sdca-sdw.c b/sound/soc/codecs/sn624x-sdca-sdw.c index c9e690482e8e..cbe0af7062dc 100644 --- a/sound/soc/codecs/sn624x-sdca-sdw.c +++ b/sound/soc/codecs/sn624x-sdca-sdw.c @@ -1669,7 +1669,7 @@ static struct snd_soc_dai_driver sn624x_sdca_dai[] = { .capture = { .stream_name = "DMic Capture", .channels_min = 1, - .channels_max = 4, + .channels_max = 2, .rates = SN624X_STEREO_RATES, .formats = SN624X_FORMATS, }, |
