forked from len0rd/rockbox
* Move DSP_CALLBACK_* enum to sound.h
* Add software based volume control for a certain range (SW_VOLUME_MIN -> SW_VOLUME_MAX) * Make Onda VX747 use it * Don't change volume or frequency in Ingenic Jz4740 codec driver when they're already set git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22106 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1ace06a67d
commit
3c7c79189e
6 changed files with 52 additions and 32 deletions
|
|
@ -24,6 +24,19 @@
|
|||
#include <inttypes.h>
|
||||
#include <audiohw.h>
|
||||
|
||||
#if CONFIG_CODEC == SWCODEC
|
||||
enum {
|
||||
DSP_CALLBACK_SET_PRESCALE = 0,
|
||||
DSP_CALLBACK_SET_BASS,
|
||||
DSP_CALLBACK_SET_TREBLE,
|
||||
DSP_CALLBACK_SET_CHANNEL_CONFIG,
|
||||
DSP_CALLBACK_SET_STEREO_WIDTH,
|
||||
#ifdef HAVE_SW_VOLUME_CONTROL
|
||||
DSP_CALLBACK_SET_SW_VOLUME,
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef void sound_set_type(int value);
|
||||
|
||||
const char *sound_unit(int setting);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue