Skip to content

Commit

Permalink
soundwire: add lane_used_bandwidth in struct sdw_bus
Browse files Browse the repository at this point in the history
To support multi-lane, we need to know how much bandwidth
is used on each lane. And to use the lane that has enough
bandwidth.

Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao committed Apr 26, 2024
1 parent 0c56628 commit 0f730f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/linux/soundwire/sdw.h
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,7 @@ struct sdw_master_ops {
* synchronization will be used even if a stream only uses a single
* SoundWire segment.
* @stream_refcount: number of streams currently using this bus
* @lane_used_bandwidth: how much bandwidth is used by each lane
*/
struct sdw_bus {
struct device *dev;
Expand Down Expand Up @@ -937,6 +938,7 @@ struct sdw_bus {
bool multi_link;
int hw_sync_min_links;
int stream_refcount;
unsigned int lane_used_bandwidth[SDW_MAX_LANES];
};

int sdw_bus_master_add(struct sdw_bus *bus, struct device *parent,
Expand Down

0 comments on commit 0f730f4

Please sign in to comment.