diff options
| author | HyeongJun An <sammiee5311@gmail.com> | 2026-10-08 22:09:48 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-12 19:52:00 +0100 |
| commit | 8b08b98796d2da103f2432550c14a7c687e72080 (patch) | |
| tree | 02a8c1fc42766d0d36b9d189aa6a7127641d2644 /scripts/basic | |
| parent | 203436d2aeb7093290459e344e1912a418a6ebfd (diff) | |
| download | linux-8b08b98796d2da103f2432550c14a7c687e72080.tar.gz linux-8b08b98796d2da103f2432550c14a7c687e72080.zip | |
ASoC: cs42l52: Fix the NG Type Switch bit
The NG Type Switch enum selects between "Apply Specific" and "Apply
All", which is the NGALL bit. The datasheet puts NGALL at bit 7 of the
Noise Gate Control register. The enum uses bit 6, which is NG, the
noise gate enable owned by the NG Enable Switch. cs42l52.h names it
CS42L52_NG_ENABLE_SHIFT. cs42l56 has the same Noise Gate register and
puts its NG All Switch at bit 7.
So changing the noise gate type turns the noise gate on or off, and
NGALL cannot be set.
Use bit 7.
Fixes: dfe0f98b8d2e ("ASoC: Add support for CS42L52 Codec")
Link: https://statics.cirrus.com/pubs/proDatasheet/CS42L52_F2.pdf
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: HyeongJun An <sammiee5311@gmail.com>
Link: https://patch.msgid.link/20261008130953.2446692-3-sammiee5311@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
