diff options
Diffstat (limited to 'drivers/soundwire/stream.c')
-rw-r--r-- | drivers/soundwire/stream.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/soundwire/stream.c b/drivers/soundwire/stream.c index 8d6c13528b68..0bc1b4dbd14b 100644 --- a/drivers/soundwire/stream.c +++ b/drivers/soundwire/stream.c | |||
@@ -1485,6 +1485,16 @@ static int _sdw_prepare_stream(struct sdw_stream_runtime *stream) | |||
1485 | bus->params.bandwidth += m_rt->stream->params.rate * | 1485 | bus->params.bandwidth += m_rt->stream->params.rate * |
1486 | m_rt->ch_count * m_rt->stream->params.bps; | 1486 | m_rt->ch_count * m_rt->stream->params.bps; |
1487 | 1487 | ||
1488 | /* Compute params */ | ||
1489 | if (bus->compute_params) { | ||
1490 | ret = bus->compute_params(bus); | ||
1491 | if (ret < 0) { | ||
1492 | dev_err(bus->dev, "Compute params failed: %d", | ||
1493 | ret); | ||
1494 | return ret; | ||
1495 | } | ||
1496 | } | ||
1497 | |||
1488 | /* Program params */ | 1498 | /* Program params */ |
1489 | ret = sdw_program_params(bus); | 1499 | ret = sdw_program_params(bus); |
1490 | if (ret < 0) { | 1500 | if (ret < 0) { |