Move definitions to their proper place

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9368 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-03-30 20:48:15 +00:00
parent 7e0ea2153c
commit 3c39c2b034
2 changed files with 12 additions and 11 deletions

View file

@ -43,17 +43,6 @@
#define IPOD_PCM_LEVEL 0x65 /* -6dB */
#define LINVOL 0x00
#define RINVOL 0x01
#define LOUTVOL 0x02
#define ROUTVOL 0x03
#define DACCTRL 0x05
#define PWRMGMT 0x06
#define AINTFCE 0x07
#define SAMPCTRL 0x08
#define ACTIVECTRL 0x09
#define RESET 0x0f
void wm8731_write(int reg, int data)
{
ipod_i2c_send(0x1a, (reg<<1) | ((data&0x100)>>8),data&0xff);

View file

@ -37,6 +37,18 @@ extern void wmcodec_disable_recording(void);
extern void wmcodec_set_recvol(int left, int right, int type);
extern void wmcodec_set_monitor(int enable);
/* Register addresses */
#define LINVOL 0x00
#define RINVOL 0x01
#define LOUTVOL 0x02
#define ROUTVOL 0x03
#define DACCTRL 0x05
#define PWRMGMT 0x06
#define AINTFCE 0x07
#define SAMPCTRL 0x08
#define ACTIVECTRL 0x09
#define RESET 0x0f
/* Register settings for the supported samplerates: */
#define WM8731L_8000HZ 0x4d
#define WM8731L_32000HZ 0x59