mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
audio: Move hosted audio "codec" drivers into their respective target dirs
They are nearly entirely generic wrappers around ALSA controls, unique per target, and are ripe for further consolidation. Change-Id: I05e4a450e3e89e03616906601c4f8fa46200dff5
This commit is contained in:
parent
d376e0afb7
commit
a79bdaf462
20 changed files with 62 additions and 43 deletions
|
|
@ -1,23 +0,0 @@
|
|||
#ifndef __EROSQLINUX_CODEC__
|
||||
#define __EROSQLINUX_CODEC__
|
||||
|
||||
#define AUDIOHW_CAPS (LINEOUT_CAP)
|
||||
|
||||
/* a small DC offset prevents play/pause clicking due to the DAC auto-muting */
|
||||
#define PCM_DC_OFFSET_VALUE -1
|
||||
|
||||
/*
|
||||
* Note: Maximum volume is set one step below unity in order to
|
||||
* avoid overflowing pcm samples due to our DC Offset.
|
||||
*
|
||||
* The DAC's output is hot enough this should not be an issue.
|
||||
*/
|
||||
AUDIOHW_SETTING(VOLUME, "dB", 0, 2, -74, -2, -40)
|
||||
|
||||
//#define AUDIOHW_NEEDS_INITIAL_UNMUTE
|
||||
|
||||
void audiohw_mute(int mute);
|
||||
void erosq_set_output(int ps);
|
||||
int erosq_get_outputs(void);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue