]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soundwire: intel_auxdevice: start the bus at default frequency
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 4 Jul 2024 00:34:11 +0000 (08:34 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 9 Jul 2024 13:40:50 +0000 (19:10 +0530)
commitc326356188f1dc2d7a2c55b30dac6a8b76087bc6
treebdd2bc8971eecb4a89b8b013245b12f95effcb45
parentfe600c8e2dc5dde62aefc73cb1cdcc5bff3dfed7
soundwire: intel_auxdevice: start the bus at default frequency

When platform firmware exposes multiple supported bus frequencies, the
existing SoundWire support selects the maximum frequency. This is not
aligned with the SoundWire 1.2 directions: the MIPI recommendation is
to start at a 'safe' speed, compatible with the default frame rate and
shape, and only increase the clock when vendor and codec PHY
parameters are updated.

However, clock changes are not supported for now by the SoundWire
core, so in practice this patch has the effect of discarding
frequencies different to the implicit default. Dynamic clock changes
will be required at some point, and this limitation will be removed
after the core is updated, specifically to perform synchronous clock
scale changes on manager and peripheral sides with a bank switch.

On Intel LunarLake platforms with a 'standard' DSDT, this forces the
use of 4.8MHz. On older platforms this patch has no effect.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20240704003411.10347-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/intel_auxdevice.c