diff options
author | Brandon Low <lostlogic@rockbox.org> | 2006-03-27 14:46:15 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2006-03-27 14:46:15 +0000 |
commit | 5c950f438097359991bdc76d7d6b0fac05c7f967 (patch) | |
tree | fad0c2c5d85a802b766dcfa1ac9cce29a27e63c2 /firmware/drivers | |
parent | 0468064c28a79a05a0823651dbddcf7959f598fb (diff) | |
download | rockbox-5c950f438097359991bdc76d7d6b0fac05c7f967.tar.gz rockbox-5c950f438097359991bdc76d7d6b0fac05c7f967.zip |
Reduce the appearance of volume change clicks by using the wmcodec's zero-cross detect feature
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9290 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/wm8758.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/wm8758.c b/firmware/drivers/wm8758.c index 893b6e7c10..f3310f3ed6 100644 --- a/firmware/drivers/wm8758.c +++ b/firmware/drivers/wm8758.c | |||
@@ -145,8 +145,8 @@ void wmcodec_enable_output(bool enable) | |||
145 | int wmcodec_set_master_vol(int vol_l, int vol_r) | 145 | int wmcodec_set_master_vol(int vol_l, int vol_r) |
146 | { | 146 | { |
147 | /* OUT1 */ | 147 | /* OUT1 */ |
148 | wm8758_write(LOUT1VOL, vol_l); | 148 | wm8758_write(LOUT1VOL, 0x080 | vol_l); |
149 | wm8758_write(ROUT1VOL, 0x100 | vol_r); | 149 | wm8758_write(ROUT1VOL, 0x180 | vol_r); |
150 | 150 | ||
151 | return 0; | 151 | return 0; |
152 | } | 152 | } |