From cdbf33adf719a54221f4f5aac4b15b0dfe54d24d Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 22 May 2007 15:56:05 +0000 Subject: * move audio settings into audio codec drivers * add mas35xx driver for all mas35xx targets. Later mas35xx code from sound.c will move to this new driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13464 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/sound.h | 37 ++----------------------------------- 1 file changed, 2 insertions(+), 35 deletions(-) (limited to 'firmware/export/sound.h') diff --git a/firmware/export/sound.h b/firmware/export/sound.h index b060b97312..d405e99fbf 100644 --- a/firmware/export/sound.h +++ b/firmware/export/sound.h @@ -34,45 +34,12 @@ #include "tlv320.h" #elif defined(HAVE_AS3514) #include "as3514.h" +#elif defined(HAVE_MAS35XX) +#include "mas35xx.h" #endif extern void audiohw_postinit(void); -enum { - SOUND_VOLUME = 0, - SOUND_BASS, - SOUND_TREBLE, - SOUND_BALANCE, - SOUND_CHANNELS, - SOUND_STEREO_WIDTH, -#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) - SOUND_LOUDNESS, - SOUND_AVC, - SOUND_MDB_STRENGTH, - SOUND_MDB_HARMONICS, - SOUND_MDB_CENTER, - SOUND_MDB_SHAPE, - SOUND_MDB_ENABLE, - SOUND_SUPERBASS, -#endif -#if CONFIG_CODEC == MAS3587F || defined(HAVE_UDA1380) || defined(HAVE_TLV320)\ - || defined(HAVE_WM8975) || defined(HAVE_WM8758) || defined(HAVE_WM8731) - SOUND_LEFT_GAIN, - SOUND_RIGHT_GAIN, - SOUND_MIC_GAIN, -#endif -}; - -enum { - SOUND_CHAN_STEREO = 0, - SOUND_CHAN_MONO, - SOUND_CHAN_CUSTOM, - SOUND_CHAN_MONO_LEFT, - SOUND_CHAN_MONO_RIGHT, - SOUND_CHAN_KARAOKE, - SOUND_CHAN_NUM_MODES -}; - typedef void sound_set_type(int value); const char *sound_unit(int setting); -- cgit v1.2.3