2002-05-16 21:03:57 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2011-11-06 22:44:25 +00:00
|
|
|
* $Id$
|
2002-05-16 21:03:57 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Linus Nielsen Feltzing
|
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-05-16 21:03:57 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
2010-10-31 21:09:34 +00:00
|
|
|
#ifndef _MASCODEC_H_
|
|
|
|
#define _MASCODEC_H_
|
|
|
|
|
2011-11-22 19:59:31 +00:00
|
|
|
/* unused: int mas_default_read(unsigned short *buf); */
|
|
|
|
#if CONFIG_CODEC == MAS3507D
|
2010-10-31 21:09:34 +00:00
|
|
|
int mas_run(unsigned short address);
|
2011-11-22 19:59:31 +00:00
|
|
|
#endif
|
2010-10-31 21:09:34 +00:00
|
|
|
int mas_readmem(int bank, int addr, unsigned long* dest, int len);
|
|
|
|
int mas_writemem(int bank, int addr, const unsigned long* src, int len);
|
|
|
|
int mas_readreg(int reg);
|
|
|
|
int mas_writereg(int reg, unsigned int val);
|
|
|
|
void mas_reset(void);
|
2011-11-22 19:59:31 +00:00
|
|
|
/* unused: int mas_direct_config_read(unsigned char reg); */
|
2010-10-31 21:09:34 +00:00
|
|
|
int mas_direct_config_write(unsigned char reg, unsigned int val);
|
|
|
|
int mas_codec_writereg(int reg, unsigned int val);
|
|
|
|
int mas_codec_readreg(int reg);
|
|
|
|
unsigned long mas_readver(void);
|
2002-05-16 21:03:57 +00:00
|
|
|
|
|
|
|
#endif
|
2002-08-16 07:16:52 +00:00
|
|
|
|
2010-10-31 21:09:34 +00:00
|
|
|
#if CONFIG_TUNER & S1A0903X01
|
|
|
|
void mas_store_pllfreq(int freq);
|
|
|
|
int mas_get_pllfreq(void);
|
2002-08-16 07:16:52 +00:00
|
|
|
#endif
|
2010-10-31 21:09:34 +00:00
|
|
|
|