diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2008-05-13 06:19:16 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2008-05-13 06:19:16 +0000 |
commit | 785e7762466eebc23ae678a470239fc65235b4d1 (patch) | |
tree | aec4ceac3517d07fd0ad7acc6441bd88f45d266f /firmware/export/audiohw.h | |
parent | 3e743ec6c9685ef3b7d9729e2b21236bf66bed93 (diff) |
add BALANCE_CAP and CLIPPING_CAP and move some mas35xx code into audio driver mas35xx.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17489 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/audiohw.h')
-rw-r--r-- | firmware/export/audiohw.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index d450613aff..d11a3b5181 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h @@ -26,6 +26,8 @@ /* define some audiohw caps */ #define TREBLE_CAP (1 << 0) #define BASS_CAP (1 << 1) +#define BALANCE_CAP (1 << 2) +#define CLIPPING_CAP (1 << 3) #ifdef HAVE_UDA1380 #include "uda1380.h" @@ -62,6 +64,14 @@ #if (AUDIOHW_CAPS & BASS_CAP) #define AUDIOHW_HAVE_BASS #endif + +#if (AUDIOHW_CAPS & BALANCE_CAP) +#define AUDIOHW_HAVE_BALANCE +#endif + +#if (AUDIOHW_CAPS & CLIPPING_CAP) +#define AUDIOHW_HAVE_CLIPPING +#endif #endif /* AUDIOHW_CAPS */ enum { @@ -144,6 +154,26 @@ void audiohw_postinit(void); */ void audiohw_close(void); +#ifdef AUDIOHW_HAVE_CLIPPING + /** + * Set new volume value + * @param val to set. + * NOTE: AUDIOHW_CAPS need to contain + * CLIPPING_CAP + */ +void audiohw_set_volume(int val); +#endif + +#ifdef AUDIOHW_HAVE_BALANCE +/** + * Set new balance value + * @param val to set. + * NOTE: AUDIOHW_CAPS need to contain + * BALANCE_CAP + */ +void audiohw_set_balance(int val); +#endif + /** * Mute or enable sound. * @param mute true or false. |