forked from len0rd/rockbox
More iPod 3G changes from Seven Le Mesle, and some unification of the iPod code from me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8581 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e8048cefed
commit
d16a8b8845
10 changed files with 335 additions and 26 deletions
54
firmware/export/wm8731l.h
Normal file
54
firmware/export/wm8731l.h
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/***************************************************************************
|
||||
* __________ __ ___.
|
||||
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
||||
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
||||
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
||||
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
||||
* \/ \/ \/ \/ \/
|
||||
* $Id$
|
||||
*
|
||||
* Copyright (C) 2005 by Dave Chapman
|
||||
*
|
||||
* All files in this archive are subject to the GNU General Public License.
|
||||
* See the file COPYING in the source tree root for full license agreement.
|
||||
*
|
||||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
* KIND, either express or implied.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef _WM8731L_H
|
||||
#define _WM8731L_H
|
||||
|
||||
extern void wm8731l_reset(void);
|
||||
extern int wm8731l_init(void);
|
||||
extern void wm8731l_enable_output(bool enable);
|
||||
extern int wm8731l_set_master_vol(int vol_l, int vol_r);
|
||||
extern int wm8731l_set_mixer_vol(int channel1, int channel2);
|
||||
extern void wm8731l_set_bass(int value);
|
||||
extern void wm8731l_set_treble(int value);
|
||||
extern int wm8731l_mute(int mute);
|
||||
extern void wm8731l_close(void);
|
||||
extern void wm8731l_set_nsorder(int order);
|
||||
extern void wm8731l_set_sample_rate(int sampling_control);
|
||||
|
||||
extern void wm8731l_enable_recording(bool source_mic);
|
||||
extern void wm8731l_disable_recording(void);
|
||||
extern void wm8731l_set_recvol(int left, int right, int type);
|
||||
extern void wm8731l_set_monitor(int enable);
|
||||
|
||||
/* Register settings for the supported samplerates: */
|
||||
#define WM8731L_8000HZ 0x4d
|
||||
/*
|
||||
IpodLinux don't seem to support those sampling rate with the wm8731L chip
|
||||
#define WM8975_16000HZ 0x55
|
||||
#define WM8975_22050HZ 0x77
|
||||
#define WM8975_24000HZ 0x79
|
||||
*/
|
||||
#define WM8731L_32000HZ 0x59
|
||||
#define WM8731L_44100HZ 0x63
|
||||
#define WM8731L_48000HZ 0x41
|
||||
#define WM8731L_88200HZ 0x7f
|
||||
#define WM8731L_96000HZ 0x5d
|
||||
|
||||
#endif /* _WM8975_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue