16 #ifndef __DEVICE_SOUNDWIRE_H__
17 #define __DEVICE_SOUNDWIRE_H__
133 #define SOUNDWIRE_PORT(port) BIT(port)
soundwire_block_group_count
soundwire_port_encoding_bitmap
mipi_class
enum mipi_class - MIPI class encoding.
soundwire_multilane_dir
enum soundwire_multilane_dir - Direction of lane in slave multilane device.
soundwire_prepare_channel_behavior
enum soundwire_prepare_channel_behavior - Specifies the dependencies between the Channel Prepare sequ...
@ CHANNEL_PREPARE_SUPPORTED_FREQUENCY
@ CHANNEL_PREPARE_ANY_FREQUENCY
soundwire_sw_version
enum soundwire_sw_version - Versions of SoundWire Discovery and Configuration Specification.
@ SOUNDWIRE_SW_VERSION_1_0
soundwire_limits
enum soundwire_limits - Limits on number of SoundWire devices in topology.
soundwire_version
enum soundwire_version - Versions of SoundWire Specification supported by a device.
unsigned long long uint64_t
enum soundwire_version version
struct soundwire_audio_mode - Properties for each supported Audio Mode.
uint64_t bus_frequency_configs[SOUNDWIRE_MAX]
unsigned int max_sampling_frequency
unsigned int min_bus_frequency
unsigned int min_sampling_frequency
enum soundwire_prepare_channel_behavior prepare_channel_behavior
uint64_t sampling_frequency_configs[SOUNDWIRE_MAX]
unsigned int max_bus_frequency
size_t bus_frequency_configs_count
size_t sampling_frequency_configs_count
uint32_t glitchless_transitions
struct soundwire_bra_mode - Bulk Register Access mode properties.
unsigned int block_alignment
uint64_t bus_frequency_configs[SOUNDWIRE_MAX]
unsigned int min_bus_frequency
unsigned int max_bandwidth
size_t bus_frequency_configs_count
unsigned int max_bus_frequency
unsigned int max_data_per_frame
unsigned int min_us_between_transactions
struct soundwire_codec - Contains all configuration for a SoundWire codec slave device.
struct soundwire_dp0 * dp0
struct soundwire_dpn_entry dpn[SOUNDWIRE_MAX_DPN - SOUNDWIRE_MIN_DPN]
struct soundwire_slave * slave
struct soundwire_bra_mode * dp0_bra_mode[SOUNDWIRE_MAX_MODE]
struct soundwire_audio_mode * audio_mode[SOUNDWIRE_MAX_MODE]
struct soundwire_multilane * multilane
struct soundwire_controller - SoundWire controller properties.
struct soundwire_link master_list[SOUNDWIRE_MAX_LINK]
unsigned int master_list_count
struct soundwire_dp0 - Configuration properties for SoundWire DP0 Data Port.
bool bra_imp_def_response_supported
unsigned int bra_mode_list[SOUNDWIRE_MAX_MODE]
bool simplified_channel_prepare_sm
size_t port_wordlength_configs_count
unsigned int port_min_wordlength
bool imp_def_bpt_supported
unsigned int imp_def_dp0_interrupts_supported
uint64_t port_wordlength_configs[SOUNDWIRE_MAX]
unsigned int port_max_wordlength
struct soundwire_dpn_entry - Full duplex data port properties for DPn 1-14.
struct soundwire_dpn * sink
struct soundwire_dpn * source
struct soundwire_dpn - Configuration properties for SoundWire DPn Data Ports.
enum soundwire_block_group_count max_grouping_supported
unsigned int port_audio_mode_list[SOUNDWIRE_MAX_MODE]
uint64_t port_wordlength_configs[SOUNDWIRE_MAX]
uint64_t channel_number_list[SOUNDWIRE_MAX]
size_t port_wordlength_configs_count
enum soundwire_mode_bitmap modes_supported
enum soundwire_data_port_type data_port_type
unsigned int port_max_wordlength
bool simplified_channelprepare_sm
size_t channel_number_list_count
unsigned int max_channel_number
uint32_t port_encoding_type
size_t port_audio_mode_count
size_t channel_combination_list_count
unsigned int port_min_wordlength
uint32_t imp_def_dpn_interrupts_supported
unsigned int port_channelprepare_timeout
unsigned int max_async_buffer
uint64_t channel_combination_list[SOUNDWIRE_MAX]
unsigned int min_channel_number
struct soundwire_link - SoundWire master device properties.
uint64_t clock_frequencies_supported[SOUNDWIRE_MAX]
unsigned int default_frame_col_size
unsigned int command_error_threshold
unsigned int default_frame_row_size
size_t clock_frequencies_supported_count
unsigned int max_clock_frequency
unsigned int default_frame_rate
bool clock_stop_mode1_supported
bool clock_stop_mode0_supported
unsigned int supported_clock_gears[SOUNDWIRE_MAX]
size_t supported_clock_gears_count
struct soundwire_multilane_map - Pair a soundwire lane with direction.
enum soundwire_multilane_dir direction
union soundwire_multilane_map::lane_type connection
struct soundwire_multilane - Multi-Lane SoundWire slave device.
size_t lane_mapping_count
bool lane_bus_holder[SOUNDWIRE_MAX_LANE]
size_t lane_bus_holder_count
struct soundwire_multilane_map lane_mapping[SOUNDWIRE_MAX_LANE]
struct soundwire_slave - SoundWire slave device properties.
unsigned int clockstopprepare_timeout
uint32_t source_port_list
bool simplified_clockstopprepare_sm_supported
unsigned int slave_channelprepare_timeout
bool port15_read_behavior
bool bank_delay_supported
bool clock_stop_mode1_supported
bool clockstopprepare_hard_reset_behavior