summaryrefslogtreecommitdiffstats
path: root/drivers/soundwire/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/soundwire/stream.c')
-rw-r--r--drivers/soundwire/stream.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/soundwire/stream.c b/drivers/soundwire/stream.c
index d01060dbee96..1d5294b8783b 100644
--- a/drivers/soundwire/stream.c
+++ b/drivers/soundwire/stream.c
@@ -814,7 +814,8 @@ static int do_bank_switch(struct sdw_stream_runtime *stream)
814 goto error; 814 goto error;
815 } 815 }
816 816
817 mutex_unlock(&bus->msg_lock); 817 if (bus->multi_link)
818 mutex_unlock(&bus->msg_lock);
818 } 819 }
819 820
820 return ret; 821 return ret;
@@ -1406,9 +1407,7 @@ struct sdw_dpn_prop *sdw_get_slave_dpn_prop(struct sdw_slave *slave,
1406 } 1407 }
1407 1408
1408 for (i = 0; i < num_ports; i++) { 1409 for (i = 0; i < num_ports; i++) {
1409 dpn_prop = &dpn_prop[i]; 1410 if (dpn_prop[i].num == port_num)
1410
1411 if (dpn_prop->num == port_num)
1412 return &dpn_prop[i]; 1411 return &dpn_prop[i];
1413 } 1412 }
1414 1413