lkml.org 
[lkml]   [2021]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC PATCH 0/2] soundwire: add static port mapping support
Date
Some of the soundwire controllers can have static functions assigned
to each port.

One Example : Master Port Num 1 and 2 are for PCM streams
Master Port 3, 4 can do PDM streams

Now Codecs that are on PDM should only assign Port 3 and 4.
simillarly PCM Codecs should be assigned port 1 and 2.

Other examples can include some usecase based mappings.

In such cases its not correct to assign/map any free port on master.
Currently there is no way to pass this static mapping from Slave to Master ports.

This patch provides a way to pass mapped port number along with the existing
port config structure during stream config, so that master can assign correct
ports based on the provided static mapping.

Srinivas Kandagatla (2):
soundwire: add support for static port mapping
soundwire: qcom: add support for static port mapping

drivers/soundwire/bus.h | 4 ++++
drivers/soundwire/qcom.c | 11 +++++++++--
drivers/soundwire/stream.c | 4 ++++
include/linux/soundwire/sdw.h | 4 ++++
4 files changed, 21 insertions(+), 2 deletions(-)

--
2.21.0

\
 
 \ /
  Last update: 2021-01-20 19:08    [W:0.106 / U:0.648 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site