diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2023-05-15 15:10:23 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-05-27 16:06:45 +0530 |
commit | ec2c9dbe5392cd17b7b1144918350d67cfbb9ff7 (patch) | |
tree | 97d8e282990f49b4d4186cd831f2f9edbf1860eb /sound/soc | |
parent | 881cf1e9df731e6dc238ca83067c17c782e2a059 (diff) | |
download | linux-stable-ec2c9dbe5392cd17b7b1144918350d67cfbb9ff7.tar.gz linux-stable-ec2c9dbe5392cd17b7b1144918350d67cfbb9ff7.tar.bz2 linux-stable-ec2c9dbe5392cd17b7b1144918350d67cfbb9ff7.zip |
soundwire: intel: add eml_lock in the interface for new platforms
In existing Intel/SoundWire systems, all the SoundWire configuration
is 'self-contained', with the 'shim_lock' mutex used to protect access
to shared registers in multi-link configurations.
With the move of part of the SoundWire registers to the HDaudio
multi-link structure, we need a unified lock. The hda-mlink
implementation provides an 'eml_lock' that is used to protect shared
registers such as LCTL and LSYNC, we can pass it to the SoundWire
side. There is no issue with possible dangling pointers since the
SoundWire auxiliary devices are children of the PCI device, so the
'eml_lock' cannot be removed while the SoundWire side is in use.
This patch only adds the interface for now.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230515071042.2038-8-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'sound/soc')
0 files changed, 0 insertions, 0 deletions