summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/tsc2100.c
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2011-02-06 19:33:40 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2011-02-06 19:33:40 +0000
commit50c547c640b46fa54da0b7767ef3ee57ef89270d (patch)
treea99cd5bc8f33bdf2c1550e2afb3b937880e89931 /firmware/drivers/audio/tsc2100.c
parentfafd50938c94a317fe85138e7173a68e8cd4bac7 (diff)
M:Robe 500 and TSC2100: Add more to the initialization. Some GPIO initializations are now removed - this will be hanled by the OF or bootloader (when loading from flash).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29220 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/tsc2100.c')
-rw-r--r--firmware/drivers/audio/tsc2100.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/audio/tsc2100.c b/firmware/drivers/audio/tsc2100.c
index cc6a7eed7d..88327767df 100644
--- a/firmware/drivers/audio/tsc2100.c
+++ b/firmware/drivers/audio/tsc2100.c
@@ -117,7 +117,7 @@ void audiohw_close(void)
void audiohw_set_frequency(int fsel)
{
int reg_val;
- reg_val = tsc2100_readreg(TSAC1_PAGE, TSAC1_ADDRESS);
+ reg_val = tsc2100_readreg(CONTROL_PAGE2, TSAC1_ADDRESS);
reg_val &= ~(0x07<<3);
@@ -137,5 +137,5 @@ void audiohw_set_frequency(int fsel)
break;
}
- tsc2100_writereg(TSAC1_PAGE, TSAC1_ADDRESS, reg_val);
+ tsc2100_writereg(CONTROL_PAGE2, TSAC1_ADDRESS, reg_val);
}