git: 2d1de2d55320 - main - rk3328_codec: set output gain to the value found in linux
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Nov 2021 17:52:24 UTC
The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=2d1de2d55320fdc218a82ccb5116ab61aeb20fca commit 2d1de2d55320fdc218a82ccb5116ab61aeb20fca Author: Andriy Gapon <avg@FreeBSD.org> AuthorDate: 2021-06-09 08:50:55 +0000 Commit: Andriy Gapon <avg@FreeBSD.org> CommitDate: 2021-11-06 17:52:00 +0000 rk3328_codec: set output gain to the value found in linux According to Linux code the new value should correspond to 0dB gain while the original value corresponded to 6dB gain which may be uncomfortable for some output types. MFC after: 1 month --- sys/arm64/rockchip/rk3328_codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm64/rockchip/rk3328_codec.c b/sys/arm64/rockchip/rk3328_codec.c index b00a61f58054..2a5f652fa8c2 100644 --- a/sys/arm64/rockchip/rk3328_codec.c +++ b/sys/arm64/rockchip/rk3328_codec.c @@ -364,8 +364,8 @@ rkcodec_attach(device_t dev) RKCODEC_WRITE(sc, CODEC_HPOUT_CTRL, val); DELAY(1000); - RKCODEC_WRITE(sc, CODEC_HPOUTL_GAIN_CTRL, 0x1f); - RKCODEC_WRITE(sc, CODEC_HPOUTR_GAIN_CTRL, 0x1f); + RKCODEC_WRITE(sc, CODEC_HPOUTL_GAIN_CTRL, 0x18); + RKCODEC_WRITE(sc, CODEC_HPOUTR_GAIN_CTRL, 0x18); DELAY(1000); rkcodec_set_mute(sc, false);