2008-11-10 11:04:43 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2008-11-10 20:55:56 +00:00
|
|
|
* Driver for AS3514 audio codec
|
|
|
|
*
|
|
|
|
* Copyright (c) 2007 Daniel Ankers
|
|
|
|
* Copyright (c) 2007 Christian Gmeiner
|
2008-11-10 11:04:43 +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.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2008-11-10 20:55:56 +00:00
|
|
|
#ifndef _ASCODEC_TARGET_H
|
|
|
|
#define _ASCODEC_TARGET_H
|
|
|
|
|
|
|
|
#include "as3514.h"
|
|
|
|
|
2008-11-10 20:59:10 +00:00
|
|
|
void ascodec_init(void);
|
|
|
|
|
2008-11-10 20:55:56 +00:00
|
|
|
int ascodec_write(unsigned int index, unsigned int value);
|
|
|
|
|
|
|
|
int ascodec_read(unsigned int index);
|
|
|
|
|
|
|
|
int ascodec_readbytes(int index, int len, unsigned char *data);
|
2008-11-10 11:04:43 +00:00
|
|
|
|
2008-11-10 20:55:56 +00:00
|
|
|
void ascodec_lock(void);
|
2008-11-10 11:04:43 +00:00
|
|
|
|
2008-11-10 20:55:56 +00:00
|
|
|
void ascodec_unlock(void);
|
2008-11-10 11:04:43 +00:00
|
|
|
|
2008-11-10 20:55:56 +00:00
|
|
|
#endif /* !_ASCODEC_TARGET_H */
|