Skip to content

Commit 24f08b3

Browse files
bardliaovinodkoul
authored andcommitted
soundwire: stream: don't program mockup device ports
Mockup devices don't take part in command/control operations and their virtual ports shall not be programmed. Signed-off-by: Bard Liao <[email protected]> Reviewed-by: Rander Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 7fae3cf commit 24f08b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/soundwire/stream.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ static int sdw_program_slave_port_params(struct sdw_bus *bus,
133133
int ret;
134134
u8 wbuf;
135135

136+
if (s_rt->slave->is_mockup_device)
137+
return 0;
138+
136139
dpn_prop = sdw_get_slave_dpn_prop(s_rt->slave,
137140
s_rt->direction,
138141
t_params->port_num);

0 commit comments

Comments
 (0)