diff options
Diffstat (limited to 'firmware/sound.c')
-rw-r--r-- | firmware/sound.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/firmware/sound.c b/firmware/sound.c index 71bdc25003..6fe6115406 100644 --- a/firmware/sound.c +++ b/firmware/sound.c | |||
@@ -145,6 +145,9 @@ int sound_current(int setting) | |||
145 | #if defined(AUDIOHW_HAVE_FILTER_ROLL_OFF) | 145 | #if defined(AUDIOHW_HAVE_FILTER_ROLL_OFF) |
146 | SOUND_CUR_SET(FILTER_ROLL_OFF, global_settings.roll_off) | 146 | SOUND_CUR_SET(FILTER_ROLL_OFF, global_settings.roll_off) |
147 | #endif | 147 | #endif |
148 | #if defined(AUDIOHW_HAVE_POWER_MODE) | ||
149 | SOUND_CUR_SET(POWER_MODE, global_settings.power_mode) | ||
150 | #endif | ||
148 | 151 | ||
149 | #if 0 /*WRONG -- these need to index the hw_eq_bands[AUDIOHW_EQ_BAND_NUM] struct*/ | 152 | #if 0 /*WRONG -- these need to index the hw_eq_bands[AUDIOHW_EQ_BAND_NUM] struct*/ |
150 | /* Hardware EQ tone controls */ | 153 | /* Hardware EQ tone controls */ |
@@ -425,6 +428,16 @@ void sound_set_filter_roll_off(int value) | |||
425 | } | 428 | } |
426 | #endif | 429 | #endif |
427 | 430 | ||
431 | #if defined(AUDIOHW_HAVE_POWER_MODE) | ||
432 | void sound_set_power_mode(int value) | ||
433 | { | ||
434 | if (!audio_is_initialized) | ||
435 | return; | ||
436 | |||
437 | audiohw_set_power_mode(value); | ||
438 | } | ||
439 | #endif | ||
440 | |||
428 | #if defined(AUDIOHW_HAVE_EQ) | 441 | #if defined(AUDIOHW_HAVE_EQ) |
429 | int sound_enum_hw_eq_band_setting(unsigned int band, | 442 | int sound_enum_hw_eq_band_setting(unsigned int band, |
430 | unsigned int band_setting) | 443 | unsigned int band_setting) |