Skip to content

Commit 6bba2d3

Browse files
bardliaovinodkoul
authored andcommitted
soundwire: add lane field in sdw_port_runtime
Currently, lane_ctrl is always 0. Add a lane field in sdw_port_runtime to indicate the data lane of the data port. They are 0 by default. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20241218080155.102405-2-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent a5fef9b commit 6bba2d3

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

drivers/soundwire/amd_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static int amd_sdw_compute_params(struct sdw_bus *bus)
410410
sdw_fill_xport_params(&p_rt->transport_params, p_rt->num,
411411
false, SDW_BLK_GRP_CNT_1, sample_int,
412412
port_bo, port_bo >> 8, hstart, hstop,
413-
SDW_BLK_PKG_PER_PORT, 0x0);
413+
SDW_BLK_PKG_PER_PORT, p_rt->lane);
414414

415415
sdw_fill_port_params(&p_rt->port_params,
416416
p_rt->num, bps,

drivers/soundwire/bus.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ int sdw_find_col_index(int col);
9090
* @transport_params: Transport parameters
9191
* @port_params: Port parameters
9292
* @port_node: List node for Master or Slave port_list
93+
* @lane: Which lane is used
9394
*
9495
* SoundWire spec has no mention of ports for Master interface but the
9596
* concept is logically extended.
@@ -100,6 +101,7 @@ struct sdw_port_runtime {
100101
struct sdw_transport_params transport_params;
101102
struct sdw_port_params port_params;
102103
struct list_head port_node;
104+
unsigned int lane;
103105
};
104106

105107
/**

drivers/soundwire/generic_bandwidth_allocation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void sdw_compute_slave_ports(struct sdw_master_runtime *m_rt,
5656
sample_int, port_bo, port_bo >> 8,
5757
t_data->hstart,
5858
t_data->hstop,
59-
SDW_BLK_PKG_PER_PORT, 0x0);
59+
SDW_BLK_PKG_PER_PORT, p_rt->lane);
6060

6161
sdw_fill_port_params(&p_rt->port_params,
6262
p_rt->num, bps,
@@ -109,7 +109,7 @@ static void sdw_compute_master_ports(struct sdw_master_runtime *m_rt,
109109
sdw_fill_xport_params(&p_rt->transport_params, p_rt->num,
110110
false, SDW_BLK_GRP_CNT_1, sample_int,
111111
*port_bo, (*port_bo) >> 8, hstart, hstop,
112-
SDW_BLK_PKG_PER_PORT, 0x0);
112+
SDW_BLK_PKG_PER_PORT, p_rt->lane);
113113

114114
sdw_fill_port_params(&p_rt->port_params,
115115
p_rt->num, bps,

0 commit comments

Comments
 (0)