diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2009-03-21 00:13:20 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2009-03-21 00:13:20 +0000 |
commit | 1a6bcfa2c1545fc66aac40c88dba3a6f804d6227 (patch) | |
tree | 11069b2e03848d5e928fa98d7201fb64f75ef389 /firmware/drivers/audio | |
parent | d63a8fcb7b0f4835a5acdb6c0dcb0783b6d3bba7 (diff) | |
download | rockbox-1a6bcfa2c1545fc66aac40c88dba3a6f804d6227.tar.gz rockbox-1a6bcfa2c1545fc66aac40c88dba3a6f804d6227.zip |
D2: Enable FM radio (based on FS#10035 by Michael Burtin with some changes by myself). Also updates the LV24020 driver to add optional logf debugging.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20420 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio')
-rw-r--r-- | firmware/drivers/audio/wm8985.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8985.c b/firmware/drivers/audio/wm8985.c index f7b2e510ae..d59d2d3230 100644 --- a/firmware/drivers/audio/wm8985.c +++ b/firmware/drivers/audio/wm8985.c | |||
@@ -186,6 +186,13 @@ void audiohw_set_lineout_vol(int vol_l, int vol_r) | |||
186 | wmcodec_write(ROUT2VOL, 0x100 | vol_r); | 186 | wmcodec_write(ROUT2VOL, 0x100 | vol_r); |
187 | } | 187 | } |
188 | 188 | ||
189 | void audiohw_set_aux_vol(int vol_l, int vol_r) | ||
190 | { | ||
191 | /* OUTMIX */ | ||
192 | wmcodec_write(LOUTMIX, 0x111 | (vol_l << 5) ); | ||
193 | wmcodec_write(ROUTMIX, 0x111 | (vol_r << 5) ); | ||
194 | } | ||
195 | |||
189 | void audiohw_set_bass(int value) | 196 | void audiohw_set_bass(int value) |
190 | { | 197 | { |
191 | eq1_reg = (eq1_reg & ~EQ_GAIN_MASK) | EQ_GAIN_VALUE(value); | 198 | eq1_reg = (eq1_reg & ~EQ_GAIN_MASK) | EQ_GAIN_VALUE(value); |