diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2013-04-15 12:39:04 -0400 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2013-04-15 12:39:04 -0400 |
| commit | 0971f576341cf38c04d2d9735f0a385e62974108 (patch) | |
| tree | 0cf2d7c7ffd3915217b26927e76f2073cdd795ae /firmware/drivers | |
| parent | 0c7b7873984e04941c9f21fa272638018fdb9a16 (diff) | |
| download | rockbox-0971f576341cf38c04d2d9735f0a385e62974108.zip rockbox-0971f576341cf38c04d2d9735f0a385e62974108.tar.gz rockbox-0971f576341cf38c04d2d9735f0a385e62974108.tar.bz2 rockbox-0971f576341cf38c04d2d9735f0a385e62974108.tar.xz | |
Hopefully knock out most of the red and yellow from 0c7b787.
Change-Id: Ib8dd0d011b11ee3eded3025308f19ddb5d151b59
Diffstat (limited to 'firmware/drivers')
| -rw-r--r-- | firmware/drivers/audio/ak4537.c | 2 | ||||
| -rw-r--r-- | firmware/drivers/audio/as3514.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/audio/cs42l55.c | 4 | ||||
| -rw-r--r-- | firmware/drivers/audio/rk27xx_codec.c | 2 | ||||
| -rw-r--r-- | firmware/drivers/audio/tsc2100.c | 2 | ||||
| -rw-r--r-- | firmware/drivers/audio/uda1341.c | 2 | ||||
| -rw-r--r-- | firmware/drivers/audio/wm8758.c | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/firmware/drivers/audio/ak4537.c b/firmware/drivers/audio/ak4537.c index 4a9010d..6f4e85a 100644 --- a/firmware/drivers/audio/ak4537.c +++ b/firmware/drivers/audio/ak4537.c @@ -207,7 +207,7 @@ void audiohw_close(void) akcodec_close(); /* target-specific */ } -void audiohw_set_master_vol(int vol_l, int vol_r) +void audiohw_set_volume(int vol_l, int vol_r) { vol_l = vol_tenthdb2hw(vol_l); vol_r = vol_tenthdb2hw(vol_r); diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index b9118f9..e1c7f65 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c @@ -240,7 +240,7 @@ void audiohw_postinit(void) audiohw_mute(false); } -void audiohw_set_master_vol(int vol_l, int vol_r) +void audiohw_set_volume(int vol_l, int vol_r) { unsigned int hph_r, hph_l; unsigned int mix_l, mix_r; @@ -298,7 +298,7 @@ void audiohw_set_lineout_volume(int vol_l, int vol_r) { #ifdef HAVE_AS3543 /* line out volume is set in the same registers */ - audiohw_set_master_volume(vol_l, vol_r); + audiohw_set_volume(vol_l, vol_r); #else vol_l = vol_tenthdb2hw(vol_l); vol_r = vol_tenthdb2hw(vol_r); diff --git a/firmware/drivers/audio/cs42l55.c b/firmware/drivers/audio/cs42l55.c index 75fcd80..6c6e17a 100644 --- a/firmware/drivers/audio/cs42l55.c +++ b/firmware/drivers/audio/cs42l55.c @@ -111,7 +111,7 @@ void audiohw_postinit(void) audiohw_mute(false); } -void audiohw_set_master_vol(int vol_l, int vol_r) +void audiohw_set_volume(int vol_l, int vol_r) { vol_l = vol_tenthdb2hw(vol_l); vol_r = vol_tenthdb2hw(vol_r); @@ -121,7 +121,7 @@ void audiohw_set_master_vol(int vol_l, int vol_r) vol_r << HPBCTL_HPBVOL_SHIFT); } -void audiohw_set_lineout_vol(int vol_l, int vol_r) +void audiohw_set_lineout_volume(int vol_l, int vol_r) { vol_l = vol_tenthdb2hw(vol_l); vol_r = vol_tenthdb2hw(vol_r); diff --git a/firmware/drivers/audio/rk27xx_codec.c b/firmware/drivers/audio/rk27xx_codec.c index aada17c..8f294ba 100644 --- a/firmware/drivers/audio/rk27xx_codec.c +++ b/firmware/drivers/audio/rk27xx_codec.c @@ -133,7 +133,7 @@ void audiohw_set_frequency(int fsel) codec_write(CCR2, values_freq[fsel]); } -void audiohw_set_master_vol(int vol_l, int vol_r) +void audiohw_set_volume(int vol_l, int vol_r) { vol_l = vol_tenthdb2hw(vol_l); vol_r = vol_tenthdb2hw(vol_r); diff --git a/firmware/drivers/audio/tsc2100.c b/firmware/drivers/audio/tsc2100.c index 41327ae..fda192a 100644 --- a/firmware/drivers/audio/tsc2100.c +++ b/firmware/drivers/audio/tsc2100.c @@ -74,7 +74,7 @@ void audiohw_postinit(void) audiohw_mute(false); } -void audiohw_set_master_volume(int vol_l, int vol_r) +void audiohw_set_volume(int vol_l, int vol_r) { vol_l = vol_tenthdb2hw(vol_l); vol_r = vol_tenthdb2hw(vol_r); diff --git a/firmware/drivers/audio/uda1341.c b/firmware/drivers/audio/uda1341.c index ac3bced..e15cd39 100644 --- a/firmware/drivers/audio/uda1341.c +++ b/firmware/drivers/audio/uda1341.c @@ -166,7 +166,7 @@ void audiohw_init(void) audiohw_set_bass (0); audiohw_set_treble (0); - audiohw_set_master_vol (26, 26); /* -25 dB */ + audiohw_set_volume (-250); /* -25 dB */ } void audiohw_postinit(void) diff --git a/firmware/drivers/audio/wm8758.c b/firmware/drivers/audio/wm8758.c index 3e0c88c..387a1a4 100644 --- a/firmware/drivers/audio/wm8758.c +++ b/firmware/drivers/audio/wm8758.c @@ -134,7 +134,7 @@ void audiohw_postinit(void) audiohw_mute(false); } -void audiohw_set_master_vol(int vol_l, int vol_r) +void audiohw_set_volume(int vol_l, int vol_r) { int dac_l, amp_l, dac_r, amp_r; get_volume_params(vol_l, &dac_l, &_l); |