ASoC: cs42l73: Constify cs42l73_mclk_coeffs and cs42l73_mclkx_coeffs tables
Subsystems (3)
PATCH 1/2 ASoC: cs42l73: Constify cs42l73_mclk_coeffs and cs42l73_mclkx_coeffs tables
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/codecs/cs42l73.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs42l73.c +2 -2
@@ -794,7 +794,7 @@ struct cs42l73_mclk_div {u8 mmcc; }; -static struct cs42l73_mclk_div cs42l73_mclk_coeffs[] = { +static const struct cs42l73_mclk_div cs42l73_mclk_coeffs[] = {/* MCLK, Sample Rate, xMMCC[5:0] */ {5644800 ,11025 ,0x30 }, {5644800 ,22050 ,0x20 },
@@ -844,7 +844,7 @@ struct cs42l73_mclkx_div {u8 mclkdiv; }; -static struct cs42l73_mclkx_div cs42l73_mclkx_coeffs[] = { +static const struct cs42l73_mclkx_div cs42l73_mclkx_coeffs[] = { {5644800 ,1 ,0 },/* 5644800 */ {6000000 ,1 ,0 },/* 6000000 */ {6144000 ,1 ,0 },/* 6144000 */
Signature · 1 line
2.7.4
PATCH 2/2 ASoC: cs53l30: Constify cs53l30_mclk_coeffs and cs53l30_mclkx_coeffs tables
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/codecs/cs53l30.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs53l30.c +2 -2
@@ -466,7 +466,7 @@ struct cs53l30_mclk_div {u8 mclk_int_scale; }; -static struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = { +static const struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = {/* NOTE: Enable MCLK_INT_SCALE to save power. */ /* MCLK, Sample Rate, asp_rate, internal_fs_ratio, mclk_int_scale */
@@ -511,7 +511,7 @@ struct cs53l30_mclkx_div {u8 mclkdiv; }; -static struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = { +static const struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = { {5644800 ,1 ,CS53L30_MCLK_DIV_BY_1 }, {6000000 ,1 ,CS53L30_MCLK_DIV_BY_1 }, {6144000 ,1 ,CS53L30_MCLK_DIV_BY_1 },
Signature · 1 line
2.7.4
Re: [PATCH 2/2] ASoC: cs53l30: Constify cs53l30_mclk_coeffs and cs53l30_mclkx_coeffs tables
Quoted 19 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>---
sound/soc/codecs/cs53l30.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)sound/soc/codecs/cs53l30.c +1
-1@@ -466,7 +466,7 @@ struct cs53l30_mclk_div {u8 mclk_int_scale; }; -static struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = { +static const struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = {/* NOTE: Enable MCLK_INT_SCALE to save power. */ /* MCLK, Sample Rate, asp_rate, internal_fs_ratio, mclk_int_scale */
sound/soc/codecs/cs53l30.c struct cs53l30_mclkx_div { · line 517
Quoted 8 lines
sound/soc/codecs/cs53l30.c +1
-1@@ -511,7 +511,7 @@ struct cs53l30_mclkx_div {u8 mclkdiv; }; -static struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = { +static const struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = { {5644800 ,1 ,CS53L30_MCLK_DIV_BY_1 }, {6000000 ,1 ,CS53L30_MCLK_DIV_BY_1 }, {6144000 ,1 ,CS53L30_MCLK_DIV_BY_1 },
Acked-by Paul Handrigan <[email protected]>
Quoted 31 lines
Signed-off-by Axel Lin <[email protected]>--- sound/soc/codecs/cs42l73.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)sound/soc/codecs/cs42l73.c +2
-2@@ -794,7 +794,7 @@ struct cs42l73_mclk_div {u8 mmcc; }; -static struct cs42l73_mclk_div cs42l73_mclk_coeffs[] = { +static const struct cs42l73_mclk_div cs42l73_mclk_coeffs[] = {/* MCLK, Sample Rate, xMMCC[5:0] */ {5644800 ,11025 ,0x30 }, {5644800 ,22050 ,0x20 },@@ -844,7 +844,7 @@ struct cs42l73_mclkx_div {u8 mclkdiv; }; -static struct cs42l73_mclkx_div cs42l73_mclkx_coeffs[] = { +static const struct cs42l73_mclkx_div cs42l73_mclkx_coeffs[] = { {5644800 ,1 ,0 },/* 5644800 */ {6000000 ,1 ,0 },/* 6000000 */ {6144000 ,1 ,0 },/* 6144000 */ Signature · 1 line
2.7.4
Acked-by Brian Austin <[email protected]>