]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soundwire: cadence: add BTP/BRA helpers to format data
authorPierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Thu, 27 Feb 2025 14:06:08 +0000 (22:06 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 10 Mar 2025 07:01:19 +0000 (12:31 +0530)
commit8eb5d7ade8b1ed1678cdc5340ef3f6d346eed9be
tree4b532d1526599e15cb7c5a441fd8dfb992104a96
parent8e4a239b403bd8aed8787798de8e4e42f79246c2
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>
drivers/soundwire/Kconfig
drivers/soundwire/cadence_master.c
drivers/soundwire/cadence_master.h