diff options
| author | Mark Brown <[email protected]> | 2024-08-19 19:58:04 +0100 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2024-08-19 19:58:04 +0100 |
| commit | 175fcd15e8606f2cca1edce43e18fa65c443bce6 (patch) | |
| tree | 76b3b8f11018da887195e88f151919a859f7f192 /include/linux | |
| parent | 46e211411113932be1fd31580a03502466648f91 (diff) | |
| parent | 1f3662838a05f1ab6af89a417f6f252d91d0806b (diff) | |
ALSA/ASoC/SoundWire: Intel: update maximum number
Merge series from Bard Liao <[email protected]>:
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 'include/linux')
| -rw-r--r-- | include/linux/soundwire/sdw_intel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/soundwire/sdw_intel.h b/include/linux/soundwire/sdw_intel.h index d537587b4499..37ae69365fe2 100644 --- a/include/linux/soundwire/sdw_intel.h +++ b/include/linux/soundwire/sdw_intel.h @@ -388,6 +388,7 @@ struct sdw_intel; /* struct intel_sdw_hw_ops - SoundWire ops for Intel platforms. * @debugfs_init: initialize all debugfs capabilities * @debugfs_exit: close and cleanup debugfs capabilities + * @get_link_count: fetch link count from hardware registers * @register_dai: read all PDI information and register DAIs * @check_clock_stop: throw error message if clock is not stopped. * @start_bus: normal start @@ -412,6 +413,8 @@ struct sdw_intel_hw_ops { void (*debugfs_init)(struct sdw_intel *sdw); void (*debugfs_exit)(struct sdw_intel *sdw); + int (*get_link_count)(struct sdw_intel *sdw); + int (*register_dai)(struct sdw_intel *sdw); void (*check_clock_stop)(struct sdw_intel *sdw); @@ -447,4 +450,9 @@ extern const struct sdw_intel_hw_ops sdw_intel_lnl_hw_ops; #define SDW_INTEL_DEV_NUM_IDA_MIN 6 +/* + * Max number of links supported in hardware + */ +#define SDW_INTEL_MAX_LINKS 5 + #endif |