summaryrefslogtreecommitdiff
path: root/firmware/drivers/wm8975.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-03-22 13:04:49 +0000
committerThom Johansen <thomj@rockbox.org>2006-03-22 13:04:49 +0000
commit473fc2ba74dd7e35027c3b7066e34069df5254de (patch)
tree28975e5505477a3ec79332cb8a61b305023e89d9 /firmware/drivers/wm8975.c
parentce6527b7d2a346e1cd6f1e8cc809608adf15982d (diff)
downloadrockbox-473fc2ba74dd7e35027c3b7066e34069df5254de.tar.gz
rockbox-473fc2ba74dd7e35027c3b7066e34069df5254de.zip
Fixed line out volume for 4G, Nano and 5G Ipods. Partial patch #4814 by
Ralf Herz. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9181 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/wm8975.c')
-rw-r--r--firmware/drivers/wm8975.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/wm8975.c b/firmware/drivers/wm8975.c
index 51c12f1505..64a123b883 100644
--- a/firmware/drivers/wm8975.c
+++ b/firmware/drivers/wm8975.c
@@ -176,6 +176,11 @@ int wmcodec_set_master_vol(int vol_l, int vol_r)
176 wm8975_write(LOUT1VOL, vol_l); 176 wm8975_write(LOUT1VOL, vol_l);
177 wm8975_write(ROUT1VOL, 0x100 | vol_r); 177 wm8975_write(ROUT1VOL, 0x100 | vol_r);
178 178
179 return 0;
180}
181
182int wmcodec_set_lineout_vol(int vol_l, int vol_r)
183{
179 /* OUT2 */ 184 /* OUT2 */
180 wm8975_write(LOUT2VOL, vol_l); 185 wm8975_write(LOUT2VOL, vol_l);
181 wm8975_write(ROUT2VOL, 0x100 | vol_r); 186 wm8975_write(ROUT2VOL, 0x100 | vol_r);