diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2023-06-29 13:24:42 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-09 23:47:17 +0200 |
commit | be7dc10ab0bc247c2abbdefdaa9d5196df88e9d1 (patch) | |
tree | b7bb0e0bb6391b3d1ae518e2fa97667a22cd212e /sound/soc/codecs/es8316.c | |
parent | Merge existing fixes from asoc/for-6.5 into new branch (diff) | |
download | linux-be7dc10ab0bc247c2abbdefdaa9d5196df88e9d1.tar.xz linux-be7dc10ab0bc247c2abbdefdaa9d5196df88e9d1.zip |
ASoC: codecs: es8316: Add support for 24 MHz MCLK
MCLK operates on 24MHz on Intel KabyLake-based platforms. To support
that frequency add new MCLK-LRCK ratio.
While at it, utilize ARRAY_SIZE rather than hardcode to improve
robustness.
Cc: Zhu Ning <zhuning@everest-semi.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20230629112449.1755928-2-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/es8316.c')
-rw-r--r-- | sound/soc/codecs/es8316.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c index 34cf60769b62..5d1fd505d6ba 100644 --- a/sound/soc/codecs/es8316.c +++ b/sound/soc/codecs/es8316.c @@ -27,9 +27,9 @@ * MCLK/LRCK ratios, but we also add ratio 400, which is commonly used on * Intel Cherry Trail platforms (19.2MHz MCLK, 48kHz LRCK). */ -#define NR_SUPPORTED_MCLK_LRCK_RATIOS 6 +#define NR_SUPPORTED_MCLK_LRCK_RATIOS ARRAY_SIZE(supported_mclk_lrck_ratios) static const unsigned int supported_mclk_lrck_ratios[] = { - 256, 384, 400, 512, 768, 1024 + 256, 384, 400, 500, 512, 768, 1024 }; struct es8316_priv { |