]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Intel: avs: Assign unique ID to platform devices
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 4 Apr 2025 09:03:35 +0000 (11:03 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 7 Apr 2025 14:08:01 +0000 (15:08 +0100)
commit79138dbff53ab0e9891ebdfce8d7b298c3783cd1
treefd41b9203e9241c70bb9efd345222016a354de4e
parent7d859189de13f06fdc511761c745f3b302bed7b6
ASoC: Intel: avs: Assign unique ID to platform devices

When creating machine boards there are two types, per endpoint or
compound board. For compound board we can just use I2S mask as its ID,
however, per endpoint can also be separated per TDM, which causes
problem because two boards would have same I2S mask. Shift it and add
the value of TDM to generate a unique ID.

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-7-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/board_selection.c