diff options
author | Bard Liao <bardliao@realtek.com> | 2017-09-13 14:50:17 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-09-28 09:42:37 -0700 |
commit | d0817657f615ecdf1c7beceade20c7d368003875 (patch) | |
tree | d18e75735c408f27d49aaeca0896cc075636fb8f /sound/soc/codecs/rt5670.h | |
parent | 8e1b1785489b8b53b4ff934e0ad9259952817f5b (diff) | |
download | lwn-d0817657f615ecdf1c7beceade20c7d368003875.tar.gz lwn-d0817657f615ecdf1c7beceade20c7d368003875.zip |
ASoC: rt5670: add set_bclk_ratio in dai ops
We need to set a specific bit for 50 bclk rate. So add set_bclk_ratio
function to set the bit.
Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5670.h')
-rw-r--r-- | sound/soc/codecs/rt5670.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5670.h b/sound/soc/codecs/rt5670.h index 5ba485cae4e6..265df80d504e 100644 --- a/sound/soc/codecs/rt5670.h +++ b/sound/soc/codecs/rt5670.h @@ -1816,6 +1816,10 @@ #define RT5670_ZCD_HP_DIS (0x0 << 15) #define RT5670_ZCD_HP_EN (0x1 << 15) +/* General Control 3 (0xfc) */ +#define RT5670_TDM_DATA_MODE_SEL (0x1 << 11) +#define RT5670_TDM_DATA_MODE_NOR (0x0 << 11) +#define RT5670_TDM_DATA_MODE_50FS (0x1 << 11) /* Codec Private Register definition */ /* 3D Speaker Control (0x63) */ |