YP-CP3: record the FM radio at +12 dB by default

The radio is heard through the codec's input PGA at +12 dB, but on
the recording screen the gain started at 0 dB, so a recording was
much quieter than what was heard just before. Start the line gain,
which the radio uses, at +12 dB.

Defining the defaults also makes the line gain a saved setting on
this target; before, it went back to 0 dB at every boot.

Tested on a YP-CP3: switching from the FM screen to the recording
screen with FM as the source keeps the same loudness.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: Id65ce25515d7143b2ca21e5ef2a110a356303380
This commit is contained in:
Marcin Bukat 2026-10-07 22:58:14 +02:00
parent aba3fe1d57
commit be0153afbd

View file

@ -20,6 +20,12 @@
| SAMPR_CAP_48 | SAMPR_CAP_24 | SAMPR_CAP_12 \
| SAMPR_CAP_32 | SAMPR_CAP_16 | SAMPR_CAP_8)
/* Line gain, used for the FM radio, in 0.01 dB: start at the +12 dB the
* radio is heard at when not recording (wm8751.c), so recording it is as
* loud as listening to it */
#define DEFAULT_REC_LEFT_GAIN 1200
#define DEFAULT_REC_RIGHT_GAIN 1200
/* define this if you have a colour LCD */
#define HAVE_LCD_COLOR