Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pierre-Louis Bossart and committed by
Vinod Koul
df896e4f 3e3ae0c8

+4 -2
+4 -2
include/linux/soundwire/sdw.h
··· 150 150 * 151 151 * @SDW_STREAM_PCM: PCM data stream 152 152 * @SDW_STREAM_PDM: PDM data stream 153 + * @SDW_STREAM_BPT: BPT data stream 153 154 * 154 155 * spec doesn't define this, but is used in implementation 155 156 */ 156 157 enum sdw_stream_type { 157 158 SDW_STREAM_PCM = 0, 158 159 SDW_STREAM_PDM = 1, 160 + SDW_STREAM_BPT = 2, 159 161 }; 160 162 161 163 /** ··· 881 879 * @ch_count: Channel count of the stream 882 880 * @bps: Number of bits per audio sample 883 881 * @direction: Data direction 884 - * @type: Stream type PCM or PDM 882 + * @type: Stream type PCM, PDM or BPT 885 883 */ 886 884 struct sdw_stream_config { 887 885 unsigned int frame_rate; ··· 931 929 * @name: SoundWire stream name 932 930 * @params: Stream parameters 933 931 * @state: Current state of the stream 934 - * @type: Stream type PCM or PDM 932 + * @type: Stream type PCM, PDM or BPT 935 933 * @m_rt_count: Count of Master runtime(s) in this stream 936 934 * @master_list: List of Master runtime(s) in this stream. 937 935 * master_list can contain only one m_rt per Master instance