mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 07:33:19 +02:00
ASoC: Intel: avs: Iterate over correct number of TDMs
When handling TDMs, don't iterate over number of SSP ports, but over possible number of TDMs. Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/20250404090337.3564117-8-cezary.rojewski@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
79138dbff5
commit
6a68cbe09e
|
|
@ -1406,7 +1406,7 @@ int avs_i2s_platform_register(struct avs_dev *adev, const char *name, unsigned l
|
|||
goto plat_register;
|
||||
|
||||
for_each_set_bit(i, &port_mask, ssp_count) {
|
||||
for_each_set_bit(j, &tdms[i], ssp_count) {
|
||||
for_each_set_bit(j, &tdms[i], AVS_CHANNELS_MAX) {
|
||||
memcpy(dai, &i2s_dai_template, sizeof(*dai));
|
||||
|
||||
dai->name =
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user