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)
|
2020-10-25 23:01:57 +00:00
|
|
|
AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -102*10, 0, -30*10)
|
2018-11-05 12:01:55 +00:00
|
|
|
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!
|
2020-10-31 00:30:27 +00:00
|
|
|
//#define AUDIOHW_MUTE_ON_STOP
|
2020-10-12 13:29:21 +00:00
|
|
|
|
|
|
|
#if defined(XDUOO_X3II)
|
|
|
|
/* The AK4490 glitches when switching sample rates */
|
|
|
|
#define AUDIOHW_MUTE_ON_SRATE_CHANGE
|
|
|
|
#endif
|
|
|
|
|
2020-10-20 21:03:21 +00:00
|
|
|
#if defined(XDUOO_X20)
|
|
|
|
//#define AUDIOHW_NEEDS_INITIAL_UNMUTE
|
|
|
|
#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);
|