From 05e8488ad8f3ff849ab63f2273e44132c64fbfcd Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Wed, 14 May 2008 21:35:19 +0000 Subject: Introduce PRESCALER_CAP and move some driver specific code to the correct place. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17516 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/audiohw.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'firmware/export/audiohw.h') diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index d11a3b5181..4c9271e03e 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h @@ -28,6 +28,7 @@ #define BASS_CAP (1 << 1) #define BALANCE_CAP (1 << 2) #define CLIPPING_CAP (1 << 3) +#define PRESCALER_CAP (1 << 4) #ifdef HAVE_UDA1380 #include "uda1380.h" @@ -72,6 +73,10 @@ #if (AUDIOHW_CAPS & CLIPPING_CAP) #define AUDIOHW_HAVE_CLIPPING #endif + +#if (AUDIOHW_CAPS & PRESCALER_CAP) +#define AUDIOHW_HAVE_PRESCALER +#endif #endif /* AUDIOHW_CAPS */ enum { @@ -164,6 +169,16 @@ void audiohw_close(void); void audiohw_set_volume(int val); #endif +#ifdef AUDIOHW_HAVE_PRESCALER +/** + * Set new prescaler value. + * @param val to set. + * NOTE: AUDIOHW_CAPS need to contain + * PRESCALER_CAP + */ +void audiohw_set_prescaler(int val); +#endif + #ifdef AUDIOHW_HAVE_BALANCE /** * Set new balance value -- cgit v1.2.3