summaryrefslogtreecommitdiff
path: root/apps/recorder/radio.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-05-14 23:34:24 +0000
committerJens Arnold <amiconn@rockbox.org>2006-05-14 23:34:24 +0000
commita238ab9df8f19ecd7abc44b6707a5622fcd770fe (patch)
treed6f786b92d649166545d235b2a4dfb72fe54ba7f /apps/recorder/radio.c
parentc9a1b4e9aaba244d27a1e770052697bab8a6ae3e (diff)
downloadrockbox-a238ab9df8f19ecd7abc44b6707a5622fcd770fe.tar.gz
rockbox-a238ab9df8f19ecd7abc44b6707a5622fcd770fe.zip
Iriver: Moved the handling of the UDA1380 split gain (analog preamp + decimator gain) into the UDA driver. * All: Settings structure sorted & cleaned up.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9927 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/radio.c')
-rw-r--r--apps/recorder/radio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c
index 0976a57467..291079b4b0 100644
--- a/apps/recorder/radio.c
+++ b/apps/recorder/radio.c
@@ -385,18 +385,16 @@ bool radio_screen(void)
385 global_settings.rec_prerecord_time); 385 global_settings.rec_prerecord_time);
386 386
387 387
388 audio_set_recording_gain(sound_default(SOUND_LEFT_GAIN),
389 sound_default(SOUND_RIGHT_GAIN), AUDIO_GAIN_LINEIN);
390#else 388#else
391 peak_meter_enabled = false; 389 peak_meter_enabled = false;
392 uda1380_enable_recording(false); 390 uda1380_enable_recording(false);
393 uda1380_set_recvol(10, 10, AUDIO_GAIN_DECIMATOR);
394 uda1380_set_recvol(0, 0, AUDIO_GAIN_LINEIN);
395 uda1380_set_monitor(true); 391 uda1380_set_monitor(true);
396 392
397 /* Set the input multiplexer to FM */ 393 /* Set the input multiplexer to FM */
398 pcm_rec_mux(1); 394 pcm_rec_mux(1);
399#endif 395#endif
396 audio_set_recording_gain(sound_default(SOUND_LEFT_GAIN),
397 sound_default(SOUND_RIGHT_GAIN), AUDIO_GAIN_LINEIN);
400#endif 398#endif
401 399
402 curr_freq = global_settings.last_frequency * FREQ_STEP + MIN_FREQ; 400 curr_freq = global_settings.last_frequency * FREQ_STEP + MIN_FREQ;