]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: add static port mapping support
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 15 Mar 2021 16:56:46 +0000 (16:56 +0000)
committerVinod Koul <vkoul@kernel.org>
Tue, 6 Apr 2021 04:52:02 +0000 (10:22 +0530)
commitd892dd39f500bc250878f88828b2ab9298757fbd
treea483513bbd06ae941878dfa85fbcbd0a48c8230e
parent1f2e5b0df970504b9d09640405ccc91539bfcb48
soundwire: add static port mapping support

Some of the SoundWire device ports are statically mapped to Controller
ports during design, however there is no way to expose this information
to the controller. Controllers like Qualcomm ones use this info to setup
static bandwidth parameters for those ports.

A generic port allocation is not possible in this cases!
So this patch adds a new member m_port_map to struct sdw_slave to expose
this static map.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210315165650.13392-2-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/soundwire/sdw.h