Lines Matching +full:stream +full:- +full:mode +full:- +full:support
1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
2 /* Copyright(c) 2015-17 Intel Corporation. */
75 * enum sdw_slave_status - Slave status
93 * @SDW_CLK_PRE_DEPREPARE: pre clock stop de-prepare
94 * @SDW_CLK_POST_DEPREPARE: post clock stop de-prepare
104 * enum sdw_command_response - Command response as defined by SDW spec
132 /* block packing mode enum */
139 * enum sdw_stream_type: data stream type
141 * @SDW_STREAM_PCM: PCM data stream
142 * @SDW_STREAM_PDM: PDM data stream
163 * enum sdw_port_data_mode: Data Port mode
165 * @SDW_PORT_DATA_MODE_NORMAL: Normal data mode where audio data is received
167 * @SDW_PORT_DATA_MODE_PRBS: Test mode which uses a PRBS generator to produce
169 * @SDW_PORT_DATA_MODE_STATIC_0: Simple test mode which uses static value of
171 * @SDW_PORT_DATA_MODE_STATIC_1: Simple test mode which uses static value of
190 * enum sdw_p15_behave - Slave Port 15 behaviour when the Master attempts a
201 * enum sdw_dpn_type - Data port types
216 * enum sdw_clk_stop_mode - Clock Stop modes
219 * @SDW_CLK_STOP_MODE1: Slave may have entered a deeper power-saving mode,
228 * struct sdw_dp0_prop - DP0 properties
238 * @imp_def_interrupts: If set, each bit corresponds to support for
239 * implementation-defined interrupts
243 * support
256 * struct sdw_dpn_audio_mode - Audio mode properties for DPn
269 * changed to a frequency supported by this mode or compatible modes
272 * Audio Mode to other Audio Modes
288 * struct sdw_dpn_prop - Data Port DPn properties
301 * @ch_prep_timeout: Port-specific timeout value, in milliseconds
302 * @imp_def_interrupts: If set, each bit corresponds to support for
303 * implementation-defined interrupts
310 * @modes: SDW mode supported
313 * @block_pack_mode: Type of block port mode supported
344 * struct sdw_slave_prop - SoundWire Slave properties
346 * @wake_capable: Wake-up events are supported
347 * @test_mode_capable: If test mode is supported
348 * @clk_stop_mode1: Clock-Stop Mode 1 is supported
349 * @simple_clk_stop_capable: Simple clock mode is supported
350 * @clk_stop_timeout: Worst-case latency of the Clock Stop Prepare State
352 * @ch_prep_timeout: Worst-case latency of the Channel Prepare State Machine
355 * state machine (P=1 SCSP_SM) after exit from clock-stop mode1
359 * @bank_delay_support: Slave implements bank delay/bridge support registers
406 * struct sdw_master_prop - Master properties
408 * @clk_stop_modes: Bitmap, bit N set when clock-stop-modeN supported
421 * @hw_disabled: if true, the Master is not functional, typically due to pin-mux
472 * struct sdw_slave_id - Slave ID
495 * Helper macros to extract the MIPI-defined IDs
524 * struct sdw_slave_intr_status - Slave interrupt status
536 * sdw_reg_bank - SoundWire register banks
561 * struct sdw_prepare_ch: Prepare/De-prepare Data Port channel
565 * @prepare: Prepare (true) /de-prepare (false) channel
604 * @s_data_mode: NORMAL, STATIC or PRBS mode for all Slave ports
605 * @m_data_mode: NORMAL, STATIC or PRBS mode for all Master ports. The value
630 * @clk_stop: handle imp-def sequences before and after prepare and de-prepare
644 enum sdw_clk_stop_mode mode,
650 * struct sdw_slave - SoundWire Slave
662 * @dev_num_sticky: one-time static Device Number assigned by Bus
669 * @unattach_request: mask field to keep track why the Slave re-attached and
670 * was re-initialized. This is useful to deal with potential race conditions
707 * struct sdw_master_device - SoundWire 'Master Device' representation
753 * @flow_mode: Port Data flow mode
754 * @data_mode: Test modes or normal mode
756 * This is used to program the Data Port based on Data Port stream
783 * during a bank switch without any artifacts in audio stream.
838 * struct sdw_defer - SDW deffered message
850 * struct sdw_master_ops - Master driver ops
861 * @get_device_num: Callback for vendor-specific device_number allocation
862 * @put_device_num: Callback for vendor-specific device_number release
886 * struct sdw_bus - SoundWire bus
887 * @dev: Shortcut to &bus->md->dev to avoid changing the entire code.
889 * @controller_id: system-unique controller ID. If set to -1, the bus @id will be used.
891 * @id: bus system-wide unique id
902 * @m_rt_list: List of Master instance of all stream(s) running on Bus. This
913 * @hw_sync_min_links: Number of links used by a stream above which
914 * hardware-based synchronization is required. This value is only
915 * meaningful if multi_link is set. If set to 1, hardware-based
916 * synchronization will be used even if a stream only uses a single
967 * sdw_stream_config: Master or Slave stream configuration
969 * @frame_rate: Audio frame rate of the stream, in Hz
970 * @ch_count: Channel count of the stream
973 * @type: Stream type PCM or PDM
984 * sdw_stream_state: Stream states
986 * @SDW_STREAM_ALLOCATED: New stream allocated.
987 * @SDW_STREAM_CONFIGURED: Stream configured
988 * @SDW_STREAM_PREPARED: Stream prepared
989 * @SDW_STREAM_ENABLED: Stream enabled
990 * @SDW_STREAM_DISABLED: Stream disabled
991 * @SDW_STREAM_DEPREPARED: Stream de-prepared
992 * @SDW_STREAM_RELEASED: Stream released
1005 * sdw_stream_params: Stream parameters
1018 * sdw_stream_runtime: Runtime stream parameters
1020 * @name: SoundWire stream name
1021 * @params: Stream parameters
1022 * @state: Current state of the stream
1023 * @type: Stream type PCM or PDM
1024 * @master_list: List of Master runtime(s) in this stream.
1026 * for a stream
1027 * @m_rt_count: Count of Master runtime(s) in this stream
1039 void sdw_release_stream(struct sdw_stream_runtime *stream);
1047 struct sdw_stream_runtime *stream);
1049 struct sdw_stream_runtime *stream);
1051 int sdw_prepare_stream(struct sdw_stream_runtime *stream);
1052 int sdw_enable_stream(struct sdw_stream_runtime *stream);
1053 int sdw_disable_stream(struct sdw_stream_runtime *stream);
1054 int sdw_deprepare_stream(struct sdw_stream_runtime *stream);
1069 struct sdw_stream_runtime *stream);
1071 struct sdw_stream_runtime *stream);
1091 struct sdw_stream_runtime *stream) in sdw_stream_add_slave() argument
1094 return -EINVAL; in sdw_stream_add_slave()
1098 struct sdw_stream_runtime *stream) in sdw_stream_remove_slave() argument
1101 return -EINVAL; in sdw_stream_remove_slave()
1108 return -EINVAL; in sdw_read()
1114 return -EINVAL; in sdw_write()
1120 return -EINVAL; in sdw_write_no_pm()
1126 return -EINVAL; in sdw_read_no_pm()
1132 return -EINVAL; in sdw_nread()
1138 return -EINVAL; in sdw_nread_no_pm()
1144 return -EINVAL; in sdw_nwrite()
1150 return -EINVAL; in sdw_nwrite_no_pm()
1156 return -EINVAL; in sdw_update()
1162 return -EINVAL; in sdw_update_no_pm()