diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-11-20 10:28:53 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2007-11-20 10:28:53 +0000 |
commit | 41a67a7e905ff0ef7b968353bfe37c6865fc146e (patch) | |
tree | 5cc52676612583b59f871f13389d693a0a8100ef /firmware | |
parent | 43cb7c3549bfe033ecc5d8371abdfd2ac5222e0d (diff) |
get rid of audiohw_reset
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15720 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/audio/as3514.c | 2 | ||||
-rw-r--r-- | firmware/drivers/audio/tlv320.c | 8 | ||||
-rw-r--r-- | firmware/drivers/audio/uda1380.c | 4 | ||||
-rw-r--r-- | firmware/drivers/audio/wm8751.c | 3 | ||||
-rw-r--r-- | firmware/drivers/audio/wm8758.c | 2 | ||||
-rw-r--r-- | firmware/drivers/audio/wm8975.c | 3 | ||||
-rw-r--r-- | firmware/export/as3514.h | 1 | ||||
-rw-r--r-- | firmware/export/tlv320.h | 1 | ||||
-rw-r--r-- | firmware/export/uda1380.h | 1 | ||||
-rw-r--r-- | firmware/export/wm8721.h | 1 | ||||
-rw-r--r-- | firmware/export/wm8731.h | 1 | ||||
-rw-r--r-- | firmware/export/wm8751.h | 1 | ||||
-rw-r--r-- | firmware/export/wm8758.h | 1 | ||||
-rw-r--r-- | firmware/export/wm8975.h | 1 |
14 files changed, 2 insertions, 28 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index f88cafe25c..2dc1513668 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c @@ -125,8 +125,6 @@ int sound_val2phys(int setting, int value) return result; } -void audiohw_reset(void); - /* * Initialise the PP I2C and I2S. */ diff --git a/firmware/drivers/audio/tlv320.c b/firmware/drivers/audio/tlv320.c index d57bef9d96..3059b5a075 100644 --- a/firmware/drivers/audio/tlv320.c +++ b/firmware/drivers/audio/tlv320.c @@ -118,14 +118,6 @@ void audiohw_postinit(void) } /** - * Resets tlv320 to default values - */ -void audiohw_reset(void) -{ - tlv320_write_reg(REG_RR, RR_RESET); -} - -/** * Sets internal sample rate for DAC and ADC relative to MCLK * Selection for frequency: * Fs: tlv: with: diff --git a/firmware/drivers/audio/uda1380.c b/firmware/drivers/audio/uda1380.c index f5b637eaa4..e5481a5cd0 100644 --- a/firmware/drivers/audio/uda1380.c +++ b/firmware/drivers/audio/uda1380.c @@ -201,7 +201,7 @@ void audiohw_enable_output(bool enable) } } -void audiohw_reset(void) +static void reset(void) { #ifdef IRIVER_H300_SERIES int mask = set_irq_level(HIGHEST_IRQ_LEVEL); @@ -261,7 +261,7 @@ void audiohw_init(void) recgain_mic = 0; recgain_line = 0; - audiohw_reset(); + reset(); if (audiohw_set_regs() == -1) { diff --git a/firmware/drivers/audio/wm8751.c b/firmware/drivers/audio/wm8751.c index 6358484c06..138f3c3174 100644 --- a/firmware/drivers/audio/wm8751.c +++ b/firmware/drivers/audio/wm8751.c @@ -104,9 +104,6 @@ static int adaptivebass2hw(int value) } #endif - -void audiohw_reset(void); - /* Reset and power up the WM8751 */ void audiohw_preinit(void) { diff --git a/firmware/drivers/audio/wm8758.c b/firmware/drivers/audio/wm8758.c index 30740d5fed..1cfac7c7cb 100644 --- a/firmware/drivers/audio/wm8758.c +++ b/firmware/drivers/audio/wm8758.c @@ -74,8 +74,6 @@ int tenthdb2mixer(int db) return -db * 2 / 5; } -void audiohw_reset(void); - #define IPOD_PCM_LEVEL 0x65 /* -6dB */ //#define BASSCTRL 0x diff --git a/firmware/drivers/audio/wm8975.c b/firmware/drivers/audio/wm8975.c index a069d159e5..7732c39cc6 100644 --- a/firmware/drivers/audio/wm8975.c +++ b/firmware/drivers/audio/wm8975.c @@ -70,9 +70,6 @@ int tenthdb2mixer(int db) return 0; } - -void audiohw_reset(void); - #define IPOD_PCM_LEVEL 0x65 /* -6dB */ diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h index 82be135f98..088d55141a 100644 --- a/firmware/export/as3514.h +++ b/firmware/export/as3514.h @@ -24,7 +24,6 @@ extern int tenthdb2master(int db); -extern void audiohw_reset(void); extern void audiohw_enable_output(bool enable); extern int audiohw_set_master_vol(int vol_l, int vol_r); extern int audiohw_set_lineout_vol(int vol_l, int vol_r); diff --git a/firmware/export/tlv320.h b/firmware/export/tlv320.h index 94c51aaf76..87b29dd422 100644 --- a/firmware/export/tlv320.h +++ b/firmware/export/tlv320.h @@ -27,7 +27,6 @@ extern int tenthdb2master(int db); /*** definitions ***/ -extern void audiohw_reset(void); /** * Sets internal sample rate for DAC and ADC relative to MCLK * Selection for frequency: diff --git a/firmware/export/uda1380.h b/firmware/export/uda1380.h index 2f35b29325..28da424660 100644 --- a/firmware/export/uda1380.h +++ b/firmware/export/uda1380.h @@ -27,7 +27,6 @@ extern int tenthdb2master(int db); extern int tenthdb2mixer(int db); -extern void audiohw_reset(void); extern void audiohw_enable_output(bool enable); extern int audiohw_set_master_vol(int vol_l, int vol_r); extern int audiohw_set_mixer_vol(int channel1, int channel2); diff --git a/firmware/export/wm8721.h b/firmware/export/wm8721.h index bb4c8b01d3..25338af737 100644 --- a/firmware/export/wm8721.h +++ b/firmware/export/wm8721.h @@ -27,7 +27,6 @@ extern int tenthdb2master(int db); extern int tenthdb2mixer(int db); -extern void audiohw_reset(void); extern void audiohw_enable_output(bool enable); extern int audiohw_set_master_vol(int vol_l, int vol_r); extern void audiohw_set_nsorder(int order); diff --git a/firmware/export/wm8731.h b/firmware/export/wm8731.h index 3dc82b6d76..1ee616619a 100644 --- a/firmware/export/wm8731.h +++ b/firmware/export/wm8731.h @@ -27,7 +27,6 @@ extern int tenthdb2master(int db); extern int tenthdb2mixer(int db); -extern void audiohw_reset(void); extern void audiohw_preinit(void); extern void audiohw_postinit(void); extern int audiohw_set_master_vol(int vol_l, int vol_r); diff --git a/firmware/export/wm8751.h b/firmware/export/wm8751.h index 23966fd568..5ad0a01a84 100644 --- a/firmware/export/wm8751.h +++ b/firmware/export/wm8751.h @@ -26,7 +26,6 @@ extern int tenthdb2master(int db); extern int tenthdb2mixer(int db); -extern void audiohw_reset(void); extern void audiohw_preinit(void); extern void audiohw_enable_output(bool enable); extern int audiohw_set_master_vol(int vol_l, int vol_r); diff --git a/firmware/export/wm8758.h b/firmware/export/wm8758.h index 62fb04a7e0..6d3220a5fc 100644 --- a/firmware/export/wm8758.h +++ b/firmware/export/wm8758.h @@ -27,7 +27,6 @@ extern int tenthdb2master(int db); extern int tenthdb2mixer(int db); -extern void audiohw_reset(void); extern void audiohw_enable_output(bool enable); extern int audiohw_set_master_vol(int vol_l, int vol_r); extern int audiohw_set_lineout_vol(int vol_l, int vol_r); diff --git a/firmware/export/wm8975.h b/firmware/export/wm8975.h index ab162fcab6..d77d61e8a0 100644 --- a/firmware/export/wm8975.h +++ b/firmware/export/wm8975.h @@ -27,7 +27,6 @@ extern int tenthdb2master(int db); extern int tenthdb2mixer(int db); -extern void audiohw_reset(void); extern void audiohw_enable_output(bool enable); extern int audiohw_set_master_vol(int vol_l, int vol_r); extern int audiohw_set_lineout_vol(int vol_l, int vol_r); |