[02/11] sound: soc: tlv320aic31xx: add rate divs for 12288000Hz

Message ID 20211111152258.26131-2-michael@amarulasolutions.com
State New
Headers show
Series
  • [01/11] arm: dts: imx8ulz-smm-m2: Add BSH SMM-M2 IMX6ULZ System on Module
Related show

Commit Message

Michael Nazzareno Trimarchi Nov. 11, 2021, 3:22 p.m. UTC
From: Anthony Brandon <anthony@amarulasolutions.com>

Signed-off-by: Anthony Brandon <anthony@amarulasolutions.com>
---
 sound/soc/codecs/tlv320aic31xx.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

Patch

diff --git a/sound/soc/codecs/tlv320aic31xx.c b/sound/soc/codecs/tlv320aic31xx.c
index 52d2c968b5c0..6b54811be1ca 100644
--- a/sound/soc/codecs/tlv320aic31xx.c
+++ b/sound/soc/codecs/tlv320aic31xx.c
@@ -196,46 +196,57 @@  static const struct aic31xx_rate_divs aic31xx_divs[] = {
 	/* 8k rate */
 	{12000000,   8000,	8, 1920,	128,  48,  2,	128,  48,  2},
 	{12000000,   8000,	8, 1920,	128,  32,  3,	128,  32,  3},
+	{12288000,   8000,	8,    0,	128,  48,  2,	128,  48,  2},
 	{12500000,   8000,	7, 8643,	128,  48,  2,	128,  48,  2},
 	/* 11.025k rate */
 	{12000000,  11025,	7, 5264,	128,  32,  2,	128,  32,  2},
 	{12000000,  11025,	8, 4672,	128,  24,  3,	128,  24,  3},
+	{12288000,  11025,	7, 3500,	128,  32,  2,	128,  32,  2},
 	{12500000,  11025,	7, 2253,	128,  32,  2,	128,  32,  2},
 	/* 16k rate */
 	{12000000,  16000,	8, 1920,	128,  24,  2,	128,  24,  2},
 	{12000000,  16000,	8, 1920,	128,  16,  3,	128,  16,  3},
+	{12288000,  16000,	8,    0,	128,  24,  2,	128,  24,  2},
 	{12500000,  16000,	7, 8643,	128,  24,  2,	128,  24,  2},
 	/* 22.05k rate */
 	{12000000,  22050,	7, 5264,	128,  16,  2,	128,  16,  2},
 	{12000000,  22050,	8, 4672,	128,  12,  3,	128,  12,  3},
+	{12288000,  22050,	7, 3500,	128,  16,  2,	128,  16,  2},
 	{12500000,  22050,	7, 2253,	128,  16,  2,	128,  16,  2},
 	/* 32k rate */
 	{12000000,  32000,	8, 1920,	128,  12,  2,	128,  12,  2},
 	{12000000,  32000,	8, 1920,	128,   8,  3,	128,   8,  3},
+	{12288000,  32000,	8,    0,	128,  12,  2,	128,  12,  2},
 	{12500000,  32000,	7, 8643,	128,  12,  2,	128,  12,  2},
 	/* 44.1k rate */
 	{12000000,  44100,	7, 5264,	128,   8,  2,	128,   8,  2},
 	{12000000,  44100,	8, 4672,	128,   6,  3,	128,   6,  3},
+	{12288000,  44100,	7, 3500,	128,   8,  2,	128,   8,  2},
 	{12500000,  44100,	7, 2253,	128,   8,  2,	128,   8,  2},
 	/* 48k rate */
 	{12000000,  48000,	8, 1920,	128,   8,  2,	128,   8,  2},
 	{12000000,  48000,	7, 6800,	 96,   5,  4,	 96,   5,  4},
+	{12288000,  48000,	8,    0,	128,   8,  2,	128,   8,  2},
 	{12500000,  48000,	7, 8643,	128,   8,  2,	128,   8,  2},
 	/* 88.2k rate */
 	{12000000,  88200,	7, 5264,	 64,   8,  2,	 64,   8,  2},
 	{12000000,  88200,	8, 4672,	 64,   6,  3,	 64,   6,  3},
+	{12288000,  88200,	7, 3500,	 64,   8,  2,	 64,   8,  2},
 	{12500000,  88200,	7, 2253,	 64,   8,  2,	 64,   8,  2},
 	/* 96k rate */
 	{12000000,  96000,	8, 1920,	 64,   8,  2,	 64,   8,  2},
 	{12000000,  96000,	7, 6800,	 48,   5,  4,	 48,   5,  4},
+	{12288000,  96000,	8,    0,	 64,   8,  2,	 64,   8,  2},
 	{12500000,  96000,	7, 8643,	 64,   8,  2,	 64,   8,  2},
 	/* 176.4k rate */
 	{12000000, 176400,	7, 5264,	 32,   8,  2,	 32,   8,  2},
 	{12000000, 176400,	8, 4672,	 32,   6,  3,	 32,   6,  3},
+	{12288000, 176400,	7, 3500,	 32,   8,  2,	 32,   8,  2},
 	{12500000, 176400,	7, 2253,	 32,   8,  2,	 32,   8,  2},
 	/* 192k rate */
 	{12000000, 192000,	8, 1920,	 32,   8,  2,	 32,   8,  2},
 	{12000000, 192000,	7, 6800,	 24,   5,  4,	 24,   5,  4},
+	{12288000, 192000,	8,    0,	 32,   8,  2,	 32,   8,  2},
 	{12500000, 192000,	7, 8643,	 32,   8,  2,	 32,   8,  2},
 };