forked from len0rd/rockbox
Finally, S/PDIF monitoring works
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3499 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aa78324fde
commit
d0c193d159
2 changed files with 8 additions and 5 deletions
|
|
@ -160,8 +160,9 @@ bool recording_screen(void)
|
|||
mpeg_sound_set(SOUND_VOLUME, global_settings.volume);
|
||||
|
||||
status_set_playmode(STATUS_STOP);
|
||||
|
||||
peak_meter_playback(false);
|
||||
|
||||
/* Yes, we use the D/A for monitoring */
|
||||
peak_meter_playback(true);
|
||||
|
||||
peak_meter_enabled = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -2101,9 +2101,11 @@ static void init_recording(void)
|
|||
/* Copy left channel to right (mono mode) */
|
||||
mas_codec_writereg(8, 0x8000);
|
||||
|
||||
/* ADC scale 100%, DSP scale 0% */
|
||||
mas_codec_writereg(6, 0x4000);
|
||||
mas_codec_writereg(7, 0x0000);
|
||||
/* ADC scale 0%, DSP scale 100%
|
||||
We use the DSP output for monitoring, because it works with all
|
||||
sources including S/PDIF */
|
||||
mas_codec_writereg(6, 0x0000);
|
||||
mas_codec_writereg(7, 0x4000);
|
||||
|
||||
/* No mute */
|
||||
val = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue