summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-11-17 23:19:12 +0000
committerMark Brown <broonie@kernel.org>2023-11-17 23:19:12 +0000
commit3bdaf698a7973156209c00d33b548882784aefe8 (patch)
tree5c3b2b9286854bd62f75a594383d8e7d6ebd30b6 /sound/soc
parentf8ba14b780273fd290ddf7ee0d7d7decb44cc365 (diff)
parentaa7e8e5e4011571022dc06e4d7a2f108feb53d1a (diff)
ASoC: Fixes for cs43130
Merge a couple of small fixes for the cs43130, one const correctness issue and one problem with the configuration of left justified format.
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/cs43130.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs43130.c b/sound/soc/codecs/cs43130.c
index 0b40fdfb1825..d8ec325b9cc9 100644
--- a/sound/soc/codecs/cs43130.c
+++ b/sound/soc/codecs/cs43130.c
@@ -578,7 +578,7 @@ static int cs43130_set_sp_fmt(int dai_id, unsigned int bitwidth_sclk,
break;
case SND_SOC_DAIFMT_LEFT_J:
hi_size = bitwidth_sclk;
- frm_delay = 2;
+ frm_delay = 0;
frm_phase = 1;
break;
case SND_SOC_DAIFMT_DSP_A:
@@ -1682,7 +1682,7 @@ static ssize_t hpload_dc_r_show(struct device *dev,
return cs43130_show_dc(dev, buf, HP_RIGHT);
}
-static u16 const cs43130_ac_freq[CS43130_AC_FREQ] = {
+static const u16 cs43130_ac_freq[CS43130_AC_FREQ] = {
24,
43,
93,
@@ -2362,7 +2362,7 @@ static const struct regmap_config cs43130_regmap = {
.use_single_write = true,
};
-static u16 const cs43130_dc_threshold[CS43130_DC_THRESHOLD] = {
+static const u16 cs43130_dc_threshold[CS43130_DC_THRESHOLD] = {
50,
120,
};