diff options
author | Jack Yu <jack.yu@realtek.com> | 2021-03-22 08:50:53 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-25 16:58:56 +0300 |
commit | 9f44673b7af2e776b55b1d15b3a35d8e8eb51331 (patch) | |
tree | 7ad9b8bcfeb176eecb2978e544dd76358b31e403 /sound/soc/codecs/rt1015.h | |
parent | 200d925e236f1a839bd52680f13649b23f727d51 (diff) | |
download | linux-9f44673b7af2e776b55b1d15b3a35d8e8eb51331.tar.xz |
ASoC: rt1015: Add bclk detection and dc detection
Add bclk detection and dc detection before playback.
Signed-off-by: Jack Yu <jack.yu@realtek.com>
Link: https://lore.kernel.org/r/20210322055053.31797-1-jack.yu@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt1015.h')
-rw-r--r-- | sound/soc/codecs/rt1015.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt1015.h b/sound/soc/codecs/rt1015.h index 2aeaf65ba793..14344532048e 100644 --- a/sound/soc/codecs/rt1015.h +++ b/sound/soc/codecs/rt1015.h @@ -209,6 +209,11 @@ #define RT1015_PLL_K_MASK (RT1015_PLL_K_MAX) #define RT1015_PLL_K_SFT 0 +/* 0x0020 */ +#define RT1015_EN_BCLK_DET_MASK (0x1 << 15) +#define RT1015_EN_BCLK_DET (0x1 << 15) +#define RT1015_DIS_BCLK_DET (0x0 << 15) + /* 0x007a */ #define RT1015_ID_MASK 0xff #define RT1015_ID_VERA 0x0 @@ -374,6 +379,11 @@ #define RT1015_PWR_SWR (0x1 << 12) #define RT1015_PWR_SWR_BIT 12 +/* 0x0519 */ +#define RT1015_EN_CLA_D_DC_DET_MASK (0x1 << 12) +#define RT1015_EN_CLA_D_DC_DET (0x1 << 12) +#define RT1015_DIS_CLA_D_DC_DET (0x0 << 12) + /* 0x1300 */ #define RT1015_PWR_CLSD (0x1 << 12) #define RT1015_PWR_CLSD_BIT 12 |