summaryrefslogtreecommitdiffstats
path: root/drivers/soundwire/bus.h
diff options
context:
space:
mode:
authorSanyog Kale <sanyog.r.kale@intel.com>2018-04-26 15:08:23 +0200
committerVinod Koul <vkoul@kernel.org>2018-05-11 18:17:05 +0200
commit79df15b7d37c80aee5dff361841500c79e62b1e0 (patch)
tree538e5e52d27fe34a578d992a2be83be0fd93b14e /drivers/soundwire/bus.h
parentsoundwire: Add Master and Slave port programming (diff)
downloadlinux-79df15b7d37c80aee5dff361841500c79e62b1e0.tar.xz
linux-79df15b7d37c80aee5dff361841500c79e62b1e0.zip
soundwire: Add helpers for ports operations
Add helpers to configure, prepare, enable, disable and de-prepare ports. Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com> Signed-off-by: Shreyas NC <shreyas.nc@intel.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/bus.h')
-rw-r--r--drivers/soundwire/bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soundwire/bus.h b/drivers/soundwire/bus.h
index 133268ab8086..07da6c4b10c4 100644
--- a/drivers/soundwire/bus.h
+++ b/drivers/soundwire/bus.h
@@ -109,6 +109,8 @@ struct sdw_master_runtime {
struct sdw_dpn_prop *sdw_get_slave_dpn_prop(struct sdw_slave *slave,
enum sdw_data_direction direction,
unsigned int port_num);
+int sdw_configure_dpn_intr(struct sdw_slave *slave, int port,
+ bool enable, int mask);
int sdw_transfer(struct sdw_bus *bus, struct sdw_msg *msg);
int sdw_transfer_defer(struct sdw_bus *bus, struct sdw_msg *msg,