forked from len0rd/rockbox
Remove the audiohw_set_nsorder() function since it is not used, only implemented on WM8731 and not wanted/used there.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18829 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5047b2e180
commit
695c39bc9c
8 changed files with 0 additions and 37 deletions
|
|
@ -160,12 +160,6 @@ void audiohw_close(void)
|
|||
wmcodec_write(PDCTRL, 0xff);
|
||||
}
|
||||
|
||||
/* Change the order of the noise shaper, 5th order is recommended above 32kHz */
|
||||
void audiohw_set_nsorder(int order)
|
||||
{
|
||||
(void)order;
|
||||
}
|
||||
|
||||
void audiohw_set_sample_rate(int sampling_control)
|
||||
{
|
||||
int rate = 0;
|
||||
|
|
|
|||
|
|
@ -204,23 +204,6 @@ void audiohw_close(void)
|
|||
/* 2) Remove the WM8731 supplies. */
|
||||
}
|
||||
|
||||
void audiohw_set_nsorder(int order)
|
||||
{
|
||||
static const unsigned char deemp[4] =
|
||||
{
|
||||
DAPCTRL_DEEMP_DISABLE,
|
||||
DAPCTRL_DEEMP_32KHz,
|
||||
DAPCTRL_DEEMP_44KHz,
|
||||
DAPCTRL_DEEMP_48KHz
|
||||
};
|
||||
|
||||
if ((unsigned)order >= ARRAYLEN(deemp))
|
||||
order = 0;
|
||||
|
||||
wm8731_write(DAPCTRL,
|
||||
(wm8731_regs[DAPCTRL] & ~DAPCTRL_DEEMP_MASK) | deemp[order]);
|
||||
}
|
||||
|
||||
void audiohw_set_sample_rate(int sampling_control)
|
||||
{
|
||||
int rate = 0;
|
||||
|
|
|
|||
|
|
@ -172,11 +172,6 @@ void audiohw_close(void)
|
|||
wmcodec_write(PWRMGMT2, PWRMGMT2_SLEEP);
|
||||
}
|
||||
|
||||
void audiohw_set_nsorder(int order)
|
||||
{
|
||||
(void)order;
|
||||
}
|
||||
|
||||
/* Note: Disable output before calling this function */
|
||||
void audiohw_set_sample_rate(int sampling_control)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -226,11 +226,6 @@ void audiohw_close(void)
|
|||
wmcodec_write(PWRMGMT1, 0x0);
|
||||
}
|
||||
|
||||
void audiohw_set_nsorder(int order)
|
||||
{
|
||||
(void)order;
|
||||
}
|
||||
|
||||
/* Note: Disable output before calling this function */
|
||||
void audiohw_set_sample_rate(int sampling_control)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
extern int tenthdb2master(int db);
|
||||
|
||||
extern void audiohw_set_master_vol(int vol_l, int vol_r);
|
||||
extern void audiohw_set_nsorder(int order);
|
||||
extern void audiohw_set_sample_rate(int sampling_control);
|
||||
|
||||
/* Register addresses and bits */
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
extern int tenthdb2master(int db);
|
||||
|
||||
extern void audiohw_set_master_vol(int vol_l, int vol_r);
|
||||
extern void audiohw_set_nsorder(int order);
|
||||
extern void audiohw_set_sample_rate(int sampling_control);
|
||||
|
||||
/* Register addresses and bits */
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ extern int tenthdb2mixer(int db);
|
|||
extern void audiohw_set_master_vol(int vol_l, int vol_r);
|
||||
extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
|
||||
extern void audiohw_set_mixer_vol(int channel1, int channel2);
|
||||
extern void audiohw_set_nsorder(int order);
|
||||
extern void audiohw_set_sample_rate(int sampling_control);
|
||||
|
||||
#define RESET 0x00
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ extern int tenthdb2master(int db);
|
|||
|
||||
extern void audiohw_set_master_vol(int vol_l, int vol_r);
|
||||
extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
|
||||
extern void audiohw_set_nsorder(int order);
|
||||
extern void audiohw_set_sample_rate(int sampling_control);
|
||||
|
||||
/* Register addresses and bits */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue