1
0
Fork 0
forked from len0rd/rockbox

Fix compile errors.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11796 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2006-12-18 02:18:56 +00:00
parent decef18a94
commit ca7a264a82
2 changed files with 4 additions and 4 deletions

View file

@ -223,7 +223,7 @@ void audiohw_enable_recording(bool source_mic)
/* The iPod can handle multiple frequencies, but fix at 44.1KHz /* The iPod can handle multiple frequencies, but fix at 44.1KHz
for now */ for now */
wmcodec_set_sample_rate(WM8758_44100HZ); audiohw_set_sample_rate(WM8758_44100HZ);
wmcodec_write(INCTRL,0x44); /* Connect L2 and R2 inputs */ wmcodec_write(INCTRL,0x44); /* Connect L2 and R2 inputs */
@ -248,11 +248,11 @@ void audiohw_enable_recording(bool source_mic)
wmcodec_write(LOUTMIX,0x17); /* Enable output mixer - BYPL2LMIX @ 0db*/ wmcodec_write(LOUTMIX,0x17); /* Enable output mixer - BYPL2LMIX @ 0db*/
wmcodec_write(ROUTMIX,0x17); /* Enable output mixer - BYPR2RMIX @ 0db*/ wmcodec_write(ROUTMIX,0x17); /* Enable output mixer - BYPR2RMIX @ 0db*/
wmcodec_mute(0); audiohw_mute(0);
} }
void audiohw_disable_recording(void) { void audiohw_disable_recording(void) {
wmcodec_mute(1); audiohw_mute(1);
wmcodec_write(PWRMGMT3, 0x0); wmcodec_write(PWRMGMT3, 0x0);

View file

@ -256,7 +256,7 @@ void audiohw_enable_recording(bool source_mic)
wmcodec_write(0x07, 0x42); wmcodec_write(0x07, 0x42);
/* The iPod can handle multiple frequencies, but fix at 44.1KHz for now */ /* The iPod can handle multiple frequencies, but fix at 44.1KHz for now */
wmcodec_set_sample_rate(WM8975_44100HZ); audiohw_set_sample_rate(WM8975_44100HZ);
/* unmute inputs */ /* unmute inputs */
wmcodec_write(0x00, 0x17); /* LINVOL (def 0dB) */ wmcodec_write(0x00, 0x17); /* LINVOL (def 0dB) */