diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-04-26 21:40:00 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-04-26 21:40:00 +0000 |
commit | b09d3aec392538ca0934644ff6357c41aaa4c323 (patch) | |
tree | 0603cf4ef59e84ee4e0c172e3b418d8dccac664c /firmware/sound.c | |
parent | fa5cd0d3bf744f75be0593a7e2c2083810f16c21 (diff) | |
download | rockbox-b09d3aec392538ca0934644ff6357c41aaa4c323.tar.gz rockbox-b09d3aec392538ca0934644ff6357c41aaa4c323.zip |
Add MPIO HD200 port - changed files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25724 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/sound.c')
-rw-r--r-- | firmware/sound.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/firmware/sound.c b/firmware/sound.c index d64dfcfdb9..4f95b6ed50 100644 --- a/firmware/sound.c +++ b/firmware/sound.c | |||
@@ -235,11 +235,12 @@ static void set_prescaled_volume(void) | |||
235 | dac_volume(tenthdb2reg(l), tenthdb2reg(r), false); | 235 | dac_volume(tenthdb2reg(l), tenthdb2reg(r), false); |
236 | #elif defined(HAVE_UDA1380) || defined(HAVE_WM8975) || defined(HAVE_WM8758) \ | 236 | #elif defined(HAVE_UDA1380) || defined(HAVE_WM8975) || defined(HAVE_WM8758) \ |
237 | || defined(HAVE_WM8711) || defined(HAVE_WM8721) || defined(HAVE_WM8731) \ | 237 | || defined(HAVE_WM8711) || defined(HAVE_WM8721) || defined(HAVE_WM8731) \ |
238 | || defined(HAVE_WM8751) || defined(HAVE_AS3514) || defined(HAVE_TSC2100) \ | 238 | || defined(HAVE_WM8750) || defined(HAVE_WM8751) || defined(HAVE_AS3514) \ |
239 | || defined(HAVE_AK4537) || defined(HAVE_UDA1341) | 239 | || defined(HAVE_TSC2100) || defined(HAVE_AK4537) || defined(HAVE_UDA1341) |
240 | audiohw_set_master_vol(tenthdb2master(l), tenthdb2master(r)); | 240 | audiohw_set_master_vol(tenthdb2master(l), tenthdb2master(r)); |
241 | #if defined(HAVE_WM8975) || defined(HAVE_WM8758) \ | 241 | #if defined(HAVE_WM8975) || defined(HAVE_WM8758) \ |
242 | || (defined(HAVE_WM8751) && !defined(MROBE_100)) || defined(HAVE_WM8985) | 242 | || defined(HAVE_WM8750) || (defined(HAVE_WM8751) && !defined(MROBE_100)) \ |
243 | || defined(HAVE_WM8985) | ||
243 | audiohw_set_lineout_vol(tenthdb2master(0), tenthdb2master(0)); | 244 | audiohw_set_lineout_vol(tenthdb2master(0), tenthdb2master(0)); |
244 | #endif | 245 | #endif |
245 | 246 | ||
@@ -295,7 +296,7 @@ void sound_set_bass(int value) | |||
295 | return; | 296 | return; |
296 | 297 | ||
297 | #if !defined(AUDIOHW_HAVE_CLIPPING) | 298 | #if !defined(AUDIOHW_HAVE_CLIPPING) |
298 | #if defined(HAVE_WM8751) | 299 | #if defined(HAVE_WM8750) || defined(HAVE_WM8751) |
299 | current_bass = value; | 300 | current_bass = value; |
300 | #else | 301 | #else |
301 | current_bass = value * 10; | 302 | current_bass = value * 10; |
@@ -319,7 +320,7 @@ void sound_set_treble(int value) | |||
319 | return; | 320 | return; |
320 | 321 | ||
321 | #if !defined(AUDIOHW_HAVE_CLIPPING) | 322 | #if !defined(AUDIOHW_HAVE_CLIPPING) |
322 | #if defined(HAVE_WM8751) | 323 | #if defined(HAVE_WM8750) || defined(HAVE_WM8751) |
323 | current_treble = value; | 324 | current_treble = value; |
324 | #else | 325 | #else |
325 | current_treble = value * 10; | 326 | current_treble = value * 10; |