summaryrefslogtreecommitdiff
path: root/firmware/drivers/wm8758.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/wm8758.c')
-rw-r--r--firmware/drivers/wm8758.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/wm8758.c b/firmware/drivers/wm8758.c
index 3867748417..e99711066a 100644
--- a/firmware/drivers/wm8758.c
+++ b/firmware/drivers/wm8758.c
@@ -148,6 +148,11 @@ int wmcodec_set_master_vol(int vol_l, int vol_r)
148 wm8758_write(LOUT1VOL, vol_l); 148 wm8758_write(LOUT1VOL, vol_l);
149 wm8758_write(ROUT1VOL, 0x100 | vol_r); 149 wm8758_write(ROUT1VOL, 0x100 | vol_r);
150 150
151 return 0;
152}
153
154int wmcodec_set_lineout_vol(int vol_l, int vol_r)
155{
151 /* OUT2 */ 156 /* OUT2 */
152 wm8758_write(LOUT2VOL, vol_l); 157 wm8758_write(LOUT2VOL, vol_l);
153 wm8758_write(ROUT2VOL, 0x100 | vol_r); 158 wm8758_write(ROUT2VOL, 0x100 | vol_r);