diff options
author | Mark Brown <broonie@kernel.org> | 2024-08-19 19:58:04 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-19 19:58:04 +0100 |
commit | 175fcd15e8606f2cca1edce43e18fa65c443bce6 (patch) | |
tree | 76b3b8f11018da887195e88f151919a859f7f192 /drivers/soundwire/intel.h | |
parent | 46e211411113932be1fd31580a03502466648f91 (diff) | |
parent | 1f3662838a05f1ab6af89a417f6f252d91d0806b (diff) |
ALSA/ASoC/SoundWire: Intel: update maximum number
Merge series from Bard Liao <yung-chuan.liao@linux.intel.com>:
Intel new platforms can have up to 5 SoundWire links.
This series does not apply to SoundWire tree due to recent changes in
machine driver. Can we go via ASoC tree with Vinod's Acked-by tag?
Diffstat (limited to 'drivers/soundwire/intel.h')
-rw-r--r-- | drivers/soundwire/intel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/soundwire/intel.h b/drivers/soundwire/intel.h index 68838e843b54..1db4d9d3a3ba 100644 --- a/drivers/soundwire/intel.h +++ b/drivers/soundwire/intel.h @@ -222,6 +222,13 @@ static inline bool sdw_intel_sync_check_cmdsync_unlocked(struct sdw_intel *sdw) return false; } +static inline int sdw_intel_get_link_count(struct sdw_intel *sdw) +{ + if (SDW_INTEL_CHECK_OPS(sdw, get_link_count)) + return SDW_INTEL_OPS(sdw, get_link_count)(sdw); + return 4; /* default on older generations */ +} + /* common bus management */ int intel_start_bus(struct sdw_intel *sdw); int intel_start_bus_after_reset(struct sdw_intel *sdw); |