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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: tas2781: Header file cleanup and Move the macro definitions to fwlib

Drop the I2C in one comment, for these registers are also used in SPI
driver; Move the macro definition of TASDEVICE_CMD_XXX from tas2781.h to
tas2781_fmwlib.c, because the macros are only referenced in only fwlib.

Signed-off-by: Shenghao Ding <shenghao-ding@ti.com>
Link: https://patch.msgid.link/20250518132451.707-1-shenghao-ding@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Shenghao Ding and committed by
Mark Brown
e4dca67b 152c773f

+6 -6
+1 -6
include/sound/tas2781.h
··· 47 47 #define TASDEVICE_REG_SWRESET TASDEVICE_REG(0x0, 0x0, 0x01) 48 48 #define TASDEVICE_REG_SWRESET_RESET BIT(0) 49 49 50 - /* I2C Checksum */ 50 + /* Checksum */ 51 51 #define TASDEVICE_CHECKSUM_REG TASDEVICE_REG(0x0, 0x0, 0x7e) 52 52 53 53 /* XM_340 */ ··· 102 102 #define TAS2781_RUNTIME_LATCH_RE_REG TASDEVICE_REG(0x00, 0x00, 0x49) 103 103 #define TAS2781_RUNTIME_RE_REG_TF TASDEVICE_REG(0x64, 0x62, 0x48) 104 104 #define TAS2781_RUNTIME_RE_REG TASDEVICE_REG(0x64, 0x63, 0x44) 105 - 106 - #define TASDEVICE_CMD_SING_W 0x1 107 - #define TASDEVICE_CMD_BURST 0x2 108 - #define TASDEVICE_CMD_DELAY 0x3 109 - #define TASDEVICE_CMD_FIELD_W 0x4 110 105 111 106 enum audio_device { 112 107 TAS2563,
+5
sound/soc/codecs/tas2781-fmwlib.c
··· 50 50 #define TAS2781_YRAM5_START_REG TAS2781_YRAM3_START_REG 51 51 #define TAS2781_YRAM5_END_REG TAS2781_YRAM3_END_REG 52 52 53 + #define TASDEVICE_CMD_SING_W 0x1 54 + #define TASDEVICE_CMD_BURST 0x2 55 + #define TASDEVICE_CMD_DELAY 0x3 56 + #define TASDEVICE_CMD_FIELD_W 0x4 57 + 53 58 #define TASDEVICE_MAXPROGRAM_NUM_KERNEL 5 54 59 #define TASDEVICE_MAXCONFIG_NUM_KERNEL_MULTIPLE_AMPS 64 55 60 #define TASDEVICE_MAXCONFIG_NUM_KERNEL 10