diff options
| author | Vijendar Mukunda <[email protected]> | 2023-03-21 10:38:56 +0530 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2023-04-12 15:30:36 +0530 |
| commit | 2b13596f7c9c03b1653b21a440ce672c3d7e5233 (patch) | |
| tree | 453d459059fba7775dfd653f0c76cc76210033d5 /include/linux | |
| parent | d8f48fbdfd9af268e92b33462472559d2840228c (diff) | |
soundwire: amd: register SoundWire manager dai ops
Register dai ops for SoundWire manager instances.
Signed-off-by: Vijendar Mukunda <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/soundwire/sdw_amd.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/soundwire/sdw_amd.h b/include/linux/soundwire/sdw_amd.h index c14a291a40e8..ac537419301d 100644 --- a/include/linux/soundwire/sdw_amd.h +++ b/include/linux/soundwire/sdw_amd.h @@ -24,6 +24,21 @@ struct sdw_manager_reg_mask { }; /** + * struct sdw_amd_dai_runtime: AMD sdw dai runtime data + * + * @name: SoundWire stream name + * @stream: stream runtime + * @bus: Bus handle + * @stream_type: Stream type + */ +struct sdw_amd_dai_runtime { + char *name; + struct sdw_stream_runtime *stream; + struct sdw_bus *bus; + enum sdw_stream_type stream_type; +}; + +/** * struct amd_sdw_manager - amd manager driver context * @bus: bus handle * @dev: linux device @@ -40,6 +55,7 @@ struct sdw_manager_reg_mask { * @quirks: SoundWire manager quirks * @wake_en_mask: wake enable mask per SoundWire manager * @power_mode_mask: flag interprets amd SoundWire manager power mode + * @dai_runtime_array: dai runtime array */ struct amd_sdw_manager { struct sdw_bus bus; @@ -63,5 +79,7 @@ struct amd_sdw_manager { u32 quirks; u32 wake_en_mask; u32 power_mode_mask; + + struct sdw_amd_dai_runtime **dai_runtime_array; }; #endif |