2 /***************************************************************************
4 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
5 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
6 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
7 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
11 * Copyright (C) 2007 Jonathan Gordon
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License
15 * as published by the Free Software Foundation; either version 2
16 * of the License, or (at your option) any later version.
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
21 ****************************************************************************/
31 #include "sound_menu.h"
33 #include "exported_menus.h"
34 #include "menu_common.h"
36 /***********************************/
38 MENUITEM_SETTING(volume
, &global_settings
.volume
, NULL
);
39 MENUITEM_SETTING(bass
, &global_settings
.bass
,
40 #ifdef HAVE_SW_TONE_CONTROLS
47 MENUITEM_SETTING(bass_cutoff
, &global_settings
.bass_cutoff
, NULL
);
49 MENUITEM_SETTING(treble
, &global_settings
.treble
,
50 #ifdef HAVE_SW_TONE_CONTROLS
57 MENUITEM_SETTING(treble_cutoff
, &global_settings
.treble_cutoff
, NULL
);
59 MENUITEM_SETTING(balance
, &global_settings
.balance
, NULL
);
60 MENUITEM_SETTING(channel_config
, &global_settings
.channel_config
,
61 #if CONFIG_CODEC == SWCODEC
67 MENUITEM_SETTING(stereo_width
, &global_settings
.stereo_width
,
68 #if CONFIG_CODEC == SWCODEC
75 #if CONFIG_CODEC == SWCODEC
76 /* Crossfeed Submenu */
77 MENUITEM_SETTING(crossfeed
, &global_settings
.crossfeed
, lowlatency_callback
);
78 MENUITEM_SETTING(crossfeed_direct_gain
,
79 &global_settings
.crossfeed_direct_gain
, lowlatency_callback
);
80 MENUITEM_SETTING(crossfeed_cross_gain
,
81 &global_settings
.crossfeed_cross_gain
, lowlatency_callback
);
82 MENUITEM_SETTING(crossfeed_hf_attenuation
,
83 &global_settings
.crossfeed_hf_attenuation
, lowlatency_callback
);
84 MENUITEM_SETTING(crossfeed_hf_cutoff
,
85 &global_settings
.crossfeed_hf_cutoff
, lowlatency_callback
);
86 MAKE_MENU(crossfeed_menu
,ID2P(LANG_CROSSFEED
), NULL
, Icon_NOICON
,
87 &crossfeed
, &crossfeed_direct_gain
, &crossfeed_cross_gain
,
88 &crossfeed_hf_attenuation
, &crossfeed_hf_cutoff
);
90 MENUITEM_SETTING(dithering_enabled
,
91 &global_settings
.dithering_enabled
, lowlatency_callback
);
94 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
95 MENUITEM_SETTING(loudness
, &global_settings
.loudness
, NULL
);
96 MENUITEM_SETTING(avc
, &global_settings
.avc
, NULL
);
97 MENUITEM_SETTING(superbass
, &global_settings
.superbass
, NULL
);
98 MENUITEM_SETTING(mdb_enable
, &global_settings
.mdb_enable
, NULL
);
99 MENUITEM_SETTING(mdb_strength
, &global_settings
.mdb_strength
, NULL
);
100 MENUITEM_SETTING(mdb_harmonics
, &global_settings
.mdb_harmonics
, NULL
);
101 MENUITEM_SETTING(mdb_center
, &global_settings
.mdb_center
, NULL
);
102 MENUITEM_SETTING(mdb_shape
, &global_settings
.mdb_shape
, NULL
);
107 MAKE_MENU(sound_settings
, ID2P(LANG_SOUND_SETTINGS
), NULL
, Icon_Audio
,
117 &balance
,&channel_config
,&stereo_width
118 #if CONFIG_CODEC == SWCODEC
119 ,&crossfeed_menu
, &equalizer_menu
, &dithering_enabled
121 #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F)
122 ,&loudness
,&avc
,&superbass
,&mdb_enable
,&mdb_strength
123 ,&mdb_harmonics
,&mdb_center
,&mdb_shape