From 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:46:07 +0000 Subject: [PATCH] add audio --- kernel/sound/soc/codecs/rk_codec_digital.h | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/sound/soc/codecs/rk_codec_digital.h b/kernel/sound/soc/codecs/rk_codec_digital.h index 4bb409b..79e01b4 100644 --- a/kernel/sound/soc/codecs/rk_codec_digital.h +++ b/kernel/sound/soc/codecs/rk_codec_digital.h @@ -288,9 +288,14 @@ #define ACDCDIG_I2S_RXCR1_RCSR_2CH (0x0 << 6) /* I2S_CKR0 */ #define ACDCDIG_I2S_CKR0_TSD_MASK GENMASK(1, 0) -#define ACDCDIG_I2S_CKR0_TSD(x) ((x) << 0) +#define ACDCDIG_I2S_CKR0_TSD_64 (0 << 0) +#define ACDCDIG_I2S_CKR0_TSD_128 (1 << 0) +#define ACDCDIG_I2S_CKR0_TSD_256 (2 << 0) #define ACDCDIG_I2S_CKR0_RSD_MASK GENMASK(3, 2) -#define ACDCDIG_I2S_CKR0_RSD(x) ((x) << 2) +#define ACDCDIG_I2S_CKR0_RSD_64 (0 << 2) +#define ACDCDIG_I2S_CKR0_RSD_128 (1 << 2) +#define ACDCDIG_I2S_CKR0_RSD_256 (2 << 2) + /* I2S_CKR1 */ #define ACDCDIG_I2S_CKR1_TLP_MASK BIT(0) #define ACDCDIG_I2S_CKR1_TLP_INVERTED BIT(0) -- Gitblit v1.6.2