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
This commit is contained in:
Andriy Gapon 2021-06-09 11:50:55 +03:00
parent 507fdedd83
commit 2d1de2d553

View File

@ -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);