1
0
Fork 0
forked from len0rd/rockbox

No DAC3550A in the recorder

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1774 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-08-16 07:16:52 +00:00
parent a847271a24
commit bd7fc37984
5 changed files with 21 additions and 2 deletions

View file

@ -9,3 +9,6 @@
/* Define this if you have a MAS3507D */
#define HAVE_MAS3507D
/* Define this if you have a DAC3550A */
#define HAVE_DAC3550A

View file

@ -6,3 +6,6 @@
/* Define this if you have a MAS3507D */
#define HAVE_MAS3507D
/* Define this if you have a DAC3550A */
#define HAVE_DAC3550A

View file

@ -16,11 +16,14 @@
* KIND, either express or implied.
*
****************************************************************************/
#include "config.h"
#include "stdbool.h"
#include "i2c.h"
#include "debug.h"
#include "dac.h"
#ifdef HAVE_DAC3550A
int dac_volume(unsigned int left, unsigned int right, bool deemph)
{
int ret = 0;
@ -89,3 +92,5 @@ void dac_init(void)
i2c_write(DAC_DEV_WRITE,buf,2);
i2c_end();
}
#endif

View file

@ -19,6 +19,10 @@
#ifndef _DAC_H_
#define _DAC_H_
#include "config.h"
#ifdef HAVE_DAC3550A
/*
DAC I2C defs
*/
@ -37,3 +41,5 @@ extern int dac_config(int value);
extern void dac_init(void);
#endif
#endif

View file

@ -1512,8 +1512,6 @@ void mpeg_init(int volume, int bass, int treble, int balance, int loudness, int
setup_sci0();
dac_init();
#ifdef HAVE_MAS3587F
mas_reset();
@ -1550,6 +1548,10 @@ void mpeg_init(int volume, int bass, int treble, int balance, int loudness, int
mas_writemem(MAS_BANK_D0,0x7f6,&val,1);
#endif
#ifdef HAVE_DAC3550A
dac_init();
#endif
#ifdef HAVE_MAS3507D
PBDR &= ~0x20;
sleep(HZ/5);