Skip to content

Commit 8eb5d7a

Browse files
plbossartvinodkoul
authored andcommitted
soundwire: cadence: add BTP/BRA helpers to format data
The Cadence IP expects a specific format (detailed in the Documentation). Add helpers to copy the data into the DMA buffer. The crc8 table is for now only used by the Cadence driver. This table might be moved to a common module at a later point if needed by other controller implementations. 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-10-yung-chuan.liao@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 8e4a239 commit 8eb5d7a

File tree

3 files changed

+655
-0
lines changed

3 files changed

+655
-0
lines changed

drivers/soundwire/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ config SOUNDWIRE_AMD
3131

3232
config SOUNDWIRE_CADENCE
3333
tristate
34+
select CRC8
3435

3536
config SOUNDWIRE_INTEL
3637
tristate "Intel SoundWire Master driver"

0 commit comments

Comments
 (0)