mbox series

[v3,00/14] soundwire: add multi-lane support

Message ID 20241218080155.102405-1-yung-chuan.liao@linux.intel.com (mailing list archive)
Headers show
Series soundwire: add multi-lane support | expand

Message

Bard Liao Dec. 18, 2024, 8:01 a.m. UTC
This series adds multi-lane support for SoundWire. We will get the lane
connection information from ACPI and use multiple lanes if the bandwidth
is not enough.

v2:
 - add 2 commits to fix the issue of starting streams simultaneously
v3:
 - Preventing accessing the non-exist codecs in the "program
   BUSCLOCK_SCALE" commit.

Bard Liao (12):
  soundwire: add lane field in sdw_port_runtime
  soundwire: mipi_disco: read lane mapping properties from ACPI
  soundwire: add lane_used_bandwidth in struct sdw_bus
  Soundwire: add sdw_slave_get_scale_index helper
  Soundwire: stream: program BUSCLOCK_SCALE
  Soundwire: generic_bandwidth_allocation: set frame shape on fly
  soundwire: generic_bandwidth_allocation: correct clk_freq check in
    sdw_select_row_col
  soundwire: generic_bandwidth_allocation: check required freq
    accurately
  soundwire: generic_bandwidth_allocation: select data lane
  soundwire: generic_bandwidth_allocation: add lane in sdw_group_params
  SoundWire: pass stream to compute_params()
  soundwire: generic_bandwidth_allocation: count the bandwidth of active
    streams only

Pierre-Louis Bossart (2):
  soundwire: stream: set DEPREPARED state earlier
  soundwire: generic_bandwidth_allocation: skip DEPREPARED streams

 drivers/soundwire/amd_manager.c               |   4 +-
 drivers/soundwire/bus.c                       |  65 ++--
 drivers/soundwire/bus.h                       |   3 +
 .../soundwire/generic_bandwidth_allocation.c  | 316 +++++++++++++++---
 drivers/soundwire/mipi_disco.c                |  40 ++-
 drivers/soundwire/qcom.c                      |   2 +-
 drivers/soundwire/stream.c                    |  71 +++-
 include/linux/soundwire/sdw.h                 | 192 ++++++-----
 8 files changed, 523 insertions(+), 170 deletions(-)

Comments

Vinod Koul Dec. 23, 2024, 9:12 a.m. UTC | #1
On Wed, 18 Dec 2024 16:01:41 +0800, Bard Liao wrote:
> This series adds multi-lane support for SoundWire. We will get the lane
> connection information from ACPI and use multiple lanes if the bandwidth
> is not enough.
> 
> v2:
>  - add 2 commits to fix the issue of starting streams simultaneously
> v3:
>  - Preventing accessing the non-exist codecs in the "program
>    BUSCLOCK_SCALE" commit.
> 
> [...]

Applied, thanks!

[01/14] soundwire: add lane field in sdw_port_runtime
        commit: 6bba2d3f744c4383b22aa79471d7136cfdce7d0c
[02/14] soundwire: mipi_disco: read lane mapping properties from ACPI
        commit: 7533d0df69452c3e7b69c727c1e8e1a7e1afc83c
[03/14] soundwire: add lane_used_bandwidth in struct sdw_bus
        commit: b6a2e1be7d9303d07eff72a13132a37e035fbcfa
[04/14] soundwire: stream: set DEPREPARED state earlier
        commit: f1b3dba6905a9afc49996b039042c411aa98fd52
[05/14] soundwire: generic_bandwidth_allocation: skip DEPREPARED streams
        commit: fdd1faeeec14291f9e542afa5ccec2c5a0930f5b
[06/14] Soundwire: add sdw_slave_get_scale_index helper
        commit: 8f4e3343eda8cdedaf711bf3d8ef2d6ed571f420
[07/14] Soundwire: stream: program BUSCLOCK_SCALE
        commit: 645291cfe5e52cce9571d73542476bec1d79ce26
[08/14] Soundwire: generic_bandwidth_allocation: set frame shape on fly
        commit: 3ddd303f4725b66d418998ca21cddbe9f31bb8aa
[09/14] soundwire: generic_bandwidth_allocation: correct clk_freq check in sdw_select_row_col
        commit: cf44ae3d3282572480d760199cc8d6c7c61006cf
[10/14] soundwire: generic_bandwidth_allocation: check required freq accurately
        commit: 4a7927d54d2c819029e70f6efa768085b90bfc34
[11/14] soundwire: generic_bandwidth_allocation: select data lane
        commit: 7a30292ffa2a048271755fdf9364e11343315271
[12/14] soundwire: generic_bandwidth_allocation: add lane in sdw_group_params
        commit: 366fd59fb894e3d3605de9eeb856e92221ff9d48
[13/14] SoundWire: pass stream to compute_params()
        commit: 168cdf9cdef232225f6b6c617fd347b4d1c4a7d7
[14/14] soundwire: generic_bandwidth_allocation: count the bandwidth of active streams only
        commit: 25befdf32aa407ac21d8b2aa1257ff666fb783b2

Best regards,