From be0153afbd0b0c9d6de252bd01d5ba85baaf8b5a Mon Sep 17 00:00:00 2001 From: Marcin Bukat Date: Wed, 7 Oct 2026 22:58:14 +0200 Subject: [PATCH] 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 Change-Id: Id65ce25515d7143b2ca21e5ef2a110a356303380 --- firmware/export/config/samsungypcp3.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/export/config/samsungypcp3.h b/firmware/export/config/samsungypcp3.h index f3542f64f6..5b8a8d1803 100644 --- a/firmware/export/config/samsungypcp3.h +++ b/firmware/export/config/samsungypcp3.h @@ -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