2018-11-05 12:01:55 +00:00
|
|
|
#ifndef __XDUOOLINUX_CODEC__
|
|
|
|
#define __XDUOOLINUX_CODEC__
|
|
|
|
|
2020-10-01 18:06:48 +00:00
|
|
|
#define AUDIOHW_CAPS (LINEOUT_CAP | FILTER_ROLL_OFF_CAP)
|
2018-11-05 12:01:55 +00:00
|
|
|
AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -127, 0, -30)
|
|
|
|
AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0)
|
|
|
|
#endif
|
2020-10-01 02:12:35 +00:00
|
|
|
|
2020-10-12 13:29:21 +00:00
|
|
|
// We want this, but the codec takes over a second to unmute!
|
|
|
|
//#define AUDIOHW_MUTE_ON_PAUSE
|
|
|
|
|
|
|
|
#if defined(XDUOO_X3II)
|
|
|
|
/* The AK4490 glitches when switching sample rates */
|
|
|
|
#define AUDIOHW_MUTE_ON_SRATE_CHANGE
|
|
|
|
#endif
|
|
|
|
|
2020-10-01 02:12:35 +00:00
|
|
|
void audiohw_mute(int mute);
|
2020-10-01 18:06:48 +00:00
|
|
|
void xduoo_set_output(int ps);
|
|
|
|
int xduoo_get_outputs(void);
|