forked from len0rd/rockbox
Add DAC's oversampling filter roll-off selection to sound settings.
Change-Id: I1258ba50dd9308f49d97965562f3a423c9bfb785
This commit is contained in:
parent
f6e179bd8e
commit
0519f7e5ab
9 changed files with 96 additions and 0 deletions
|
|
@ -40,6 +40,7 @@
|
|||
#define MONO_VOL_CAP (1 << 10)
|
||||
#define LIN_GAIN_CAP (1 << 11)
|
||||
#define MIC_GAIN_CAP (1 << 12)
|
||||
#define FILTER_ROLL_OFF_CAP (1 << 13)
|
||||
|
||||
/* Used by every driver to export its min/max/default values for its audio
|
||||
settings. */
|
||||
|
|
@ -269,6 +270,11 @@ enum AUDIOHW_EQ_SETTINGS
|
|||
#define AUDIOHW_HAVE_MIC_GAIN
|
||||
#endif
|
||||
#endif /* HAVE_RECORDING */
|
||||
|
||||
#if (AUDIOHW_CAPS & FILTER_ROLL_OFF_CAP)
|
||||
#define AUDIOHW_HAVE_FILTER_ROLL_OFF
|
||||
#endif
|
||||
|
||||
#endif /* AUDIOHW_CAPS */
|
||||
|
||||
#ifdef HAVE_SW_TONE_CONTROLS
|
||||
|
|
@ -454,6 +460,16 @@ void audiohw_set_eq_band_width(unsigned int band, int val);
|
|||
void audiohw_set_depth_3d(int val);
|
||||
#endif
|
||||
|
||||
#ifdef AUDIOHW_HAVE_FILTER_ROLL_OFF
|
||||
/**
|
||||
* Set DAC's oversampling filter roll-off.
|
||||
* @param val 0 - sharp roll-off, 1 - slow roll-off.
|
||||
* NOTE: AUDIOHW_CAPS need to contain
|
||||
* FILTER_ROLL_OFF_CAP
|
||||
*/
|
||||
void audiohw_set_filter_roll_off(int val);
|
||||
#endif
|
||||
|
||||
|
||||
void audiohw_set_frequency(int fsel);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue