forked from len0rd/rockbox
Split wm8731 and wm8721 drivers. wm8721 can be much simpler since it has no recording. Provide reg bit definitions for those. Add some temporary hacks pcm-pp to prevent crashing when playing after recording. Make playback start after recording on pp5020. Get wm8731 to monitor recording but plans are to do that digitally.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14948 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4d34457cd0
commit
15b7321fe1
9 changed files with 522 additions and 209 deletions
|
@ -25,6 +25,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "system.h"
|
||||
#include "audiohw.h"
|
||||
#include "i2c-pp.h"
|
||||
|
||||
#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB)
|
||||
|
@ -39,7 +40,7 @@
|
|||
/*
|
||||
* Initialise the PP I2C and I2S.
|
||||
*/
|
||||
int audiohw_init(void) {
|
||||
void audiohw_init(void) {
|
||||
/* reset I2C */
|
||||
i2c_init();
|
||||
|
||||
|
@ -95,12 +96,17 @@ int audiohw_init(void) {
|
|||
#endif /* IPOD_1G2G/3G */
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
#ifdef HAVE_WM8731
|
||||
audiohw_preinit();
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#ifndef HAVE_WM8731
|
||||
void audiohw_postinit(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
void wmcodec_write(int reg, int data)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue