Skip to content

Commit df896e4

Browse files
plbossartvinodkoul
authored andcommitted
soundwire: extend sdw_stream_type to BPT
BPT/BRA need to be special cased, i.e. there's no point in using the bandwidth allocation since the entire frame can be used. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Tested-by: shumingf@realtek.com Link: https://lore.kernel.org/r/20250227140615.8147-4-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 3e3ae0c commit df896e4

File tree

1 file changed

+4
-2
lines changed
  • include/linux/soundwire

1 file changed

+4
-2
lines changed

include/linux/soundwire/sdw.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,14 @@ enum sdw_dpn_pkg_mode {
150150
*
151151
* @SDW_STREAM_PCM: PCM data stream
152152
* @SDW_STREAM_PDM: PDM data stream
153+
* @SDW_STREAM_BPT: BPT data stream
153154
*
154155
* spec doesn't define this, but is used in implementation
155156
*/
156157
enum sdw_stream_type {
157158
SDW_STREAM_PCM = 0,
158159
SDW_STREAM_PDM = 1,
160+
SDW_STREAM_BPT = 2,
159161
};
160162

161163
/**
@@ -879,7 +881,7 @@ struct sdw_port_config {
879881
* @ch_count: Channel count of the stream
880882
* @bps: Number of bits per audio sample
881883
* @direction: Data direction
882-
* @type: Stream type PCM or PDM
884+
* @type: Stream type PCM, PDM or BPT
883885
*/
884886
struct sdw_stream_config {
885887
unsigned int frame_rate;
@@ -929,7 +931,7 @@ struct sdw_stream_params {
929931
* @name: SoundWire stream name
930932
* @params: Stream parameters
931933
* @state: Current state of the stream
932-
* @type: Stream type PCM or PDM
934+
* @type: Stream type PCM, PDM or BPT
933935
* @m_rt_count: Count of Master runtime(s) in this stream
934936
* @master_list: List of Master runtime(s) in this stream.
935937
* master_list can contain only one m_rt per Master instance

0 commit comments

Comments
 (0)