mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
ASoC: max98088: clean up some inconsistent indenting
No functional modification involved. sound/soc/codecs/max98088.c:316 m98088_eq_band() warn: inconsistent indenting. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5461 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Link: https://lore.kernel.org/r/20230608075540.61575-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
143e19547f
commit
3b3a8d6d34
@ -310,24 +310,24 @@ static const struct regmap_config max98088_regmap = {
|
||||
static void m98088_eq_band(struct snd_soc_component *component, unsigned int dai,
|
||||
unsigned int band, u16 *coefs)
|
||||
{
|
||||
unsigned int eq_reg;
|
||||
unsigned int i;
|
||||
unsigned int eq_reg;
|
||||
unsigned int i;
|
||||
|
||||
if (WARN_ON(band > 4) ||
|
||||
WARN_ON(dai > 1))
|
||||
return;
|
||||
|
||||
/* Load the base register address */
|
||||
eq_reg = dai ? M98088_REG_84_DAI2_EQ_BASE : M98088_REG_52_DAI1_EQ_BASE;
|
||||
/* Load the base register address */
|
||||
eq_reg = dai ? M98088_REG_84_DAI2_EQ_BASE : M98088_REG_52_DAI1_EQ_BASE;
|
||||
|
||||
/* Add the band address offset, note adjustment for word address */
|
||||
eq_reg += band * (M98088_COEFS_PER_BAND << 1);
|
||||
/* Add the band address offset, note adjustment for word address */
|
||||
eq_reg += band * (M98088_COEFS_PER_BAND << 1);
|
||||
|
||||
/* Step through the registers and coefs */
|
||||
for (i = 0; i < M98088_COEFS_PER_BAND; i++) {
|
||||
snd_soc_component_write(component, eq_reg++, M98088_BYTE1(coefs[i]));
|
||||
snd_soc_component_write(component, eq_reg++, M98088_BYTE0(coefs[i]));
|
||||
}
|
||||
/* Step through the registers and coefs */
|
||||
for (i = 0; i < M98088_COEFS_PER_BAND; i++) {
|
||||
snd_soc_component_write(component, eq_reg++, M98088_BYTE1(coefs[i]));
|
||||
snd_soc_component_write(component, eq_reg++, M98088_BYTE0(coefs[i]));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user