forked from len0rd/rockbox
AS3525v1/v2:
Fix problems with volume of recorded material by converting 14-bit samples to 16-bit. Remove duplicate samples from recorded data and support proper samplerate since ADC runs 1/2 the codec clock. Support monitoring mono on both output channels by feeding data manually to I2SOUT under the right conditions. DMA is no longer used for recording since frames must be processed as described above but it does allow full-duplex audio. Miscellaneous change includes a proper constant (HW_SAMPR_DEFAULT) to reset the hardware samplerate when recording is closed. PP5024 and AS3525 have different default recording rates (22kHz and 44kHz respectively) but both have half-speed ADC. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31180 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2c7379757c
commit
e42a3194de
17 changed files with 272 additions and 212 deletions
|
@ -1078,7 +1078,7 @@ static void record_and_get_pitch(void)
|
|||
}
|
||||
}
|
||||
rb->pcm_close_recording();
|
||||
rb->pcm_set_frequency(REC_SAMPR_DEFAULT | SAMPR_TYPE_REC);
|
||||
rb->pcm_set_frequency(HW_SAMPR_RESET | SAMPR_TYPE_REC);
|
||||
#ifdef HAVE_SCHEDULER_BOOSTCTRL
|
||||
rb->cancel_cpu_boost();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue