diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-11-06 23:12:11 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-06 23:12:11 +0000 |
| commit | 8051a0b724bff718ce99acc0c45dd561d8d798d7 (patch) | |
| tree | a09a44c1aeed92c313880671140c1f06c7a169e3 /apps/plugins/alpine_cdc.c | |
| parent | 4d9be96a819206534594f79e856fbbd7880588d4 (diff) | |
| download | rockbox-8051a0b724bff718ce99acc0c45dd561d8d798d7.zip rockbox-8051a0b724bff718ce99acc0c45dd561d8d798d7.tar.gz rockbox-8051a0b724bff718ce99acc0c45dd561d8d798d7.tar.bz2 rockbox-8051a0b724bff718ce99acc0c45dd561d8d798d7.tar.xz | |
Sound settings rework: * Put all fixed parameters (unit, decimals, step, min, max, default, set function) for the individual settings into one structure array. * Use the new individual sound setting functions where appropriate. * Added dummy sound setting functions and defined the codec type for the sims. Fixes wrong sound settings ranges in the simulators. * Code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7770 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/alpine_cdc.c')
| -rw-r--r-- | apps/plugins/alpine_cdc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/alpine_cdc.c b/apps/plugins/alpine_cdc.c index 5dd8b4a..be13775 100644 --- a/apps/plugins/alpine_cdc.c +++ b/apps/plugins/alpine_cdc.c @@ -1045,9 +1045,11 @@ void sound_neutral(void) rb->sound_set(SOUND_TREBLE, 0); rb->sound_set(SOUND_BALANCE, 0); rb->sound_set(SOUND_VOLUME, 92); /* 0 dB */ +#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) rb->sound_set(SOUND_LOUDNESS, 0); rb->sound_set(SOUND_SUPERBASS, 0); rb->sound_set(SOUND_AVC, 0); +#endif } /* return to user settings */ @@ -1057,9 +1059,11 @@ void sound_normal(void) rb->sound_set(SOUND_TREBLE, rb->global_settings->treble); rb->sound_set(SOUND_BALANCE, rb->global_settings->balance); rb->sound_set(SOUND_VOLUME, rb->global_settings->volume); +#if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) rb->sound_set(SOUND_LOUDNESS, rb->global_settings->loudness); rb->sound_set(SOUND_SUPERBASS, rb->global_settings->superbass); rb->sound_set(SOUND_AVC, rb->global_settings->avc); +#endif } /* the thread running it all */ |