diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-12-24 17:59:43 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-12-24 17:59:43 +0000 |
commit | a1d3ed25346ab4174cb7fd066158cebc8e29fc79 (patch) | |
tree | 9418cafbf4dbbc9b34ab31f1fc5123446204f645 /firmware/target/hosted/ypr0/ascodec-target.h | |
parent | 2ec443df12cda09bd5fee6f9857bca17b7e6aa3f (diff) | |
download | rockbox-a1d3ed25346ab4174cb7fd066158cebc8e29fc79.tar.gz rockbox-a1d3ed25346ab4174cb7fd066158cebc8e29fc79.zip |
ypr0: Cleanup and simplify ascodec functions. Fix audiohw_{pre,post}init() not being called.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31423 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted/ypr0/ascodec-target.h')
-rw-r--r-- | firmware/target/hosted/ypr0/ascodec-target.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/target/hosted/ypr0/ascodec-target.h b/firmware/target/hosted/ypr0/ascodec-target.h index f4ecf20a1b..2274d5f073 100644 --- a/firmware/target/hosted/ypr0/ascodec-target.h +++ b/firmware/target/hosted/ypr0/ascodec-target.h | |||
@@ -29,24 +29,12 @@ | |||
29 | #include "adc.h" | 29 | #include "adc.h" |
30 | #include "ascodec.h" | 30 | #include "ascodec.h" |
31 | 31 | ||
32 | /* ioctl parameter struct */ | ||
33 | |||
34 | struct codec_req_struct { | ||
35 | /* This works for every kind of afe.ko module requests */ | ||
36 | unsigned char reg; /* Main register address */ | ||
37 | unsigned char subreg; /* Set this only if you are reading/writing a PMU register*/ | ||
38 | unsigned char value; /* To be read if reading a register; to be set if writing to a register */ | ||
39 | }; | ||
40 | |||
41 | int ascodec_init(void); | 32 | int ascodec_init(void); |
42 | void ascodec_close(void); | 33 | void ascodec_close(void); |
43 | int ascodec_write(unsigned int reg, unsigned int value); | 34 | int ascodec_write(unsigned int reg, unsigned int value); |
44 | int ascodec_read(unsigned int reg); | 35 | int ascodec_read(unsigned int reg); |
45 | void ascodec_write_pmu(unsigned int index, unsigned int subreg, unsigned int value); | 36 | void ascodec_write_pmu(unsigned int index, unsigned int subreg, unsigned int value); |
46 | int ascodec_read_pmu(unsigned int index, unsigned int subreg); | 37 | int ascodec_read_pmu(unsigned int index, unsigned int subreg); |
47 | void ascodec_set(unsigned int reg, unsigned int bits); | ||
48 | void ascodec_clear(unsigned int reg, unsigned int bits); | ||
49 | void ascodec_write_masked(unsigned int reg, unsigned int bits, unsigned int mask); | ||
50 | int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); | 38 | int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); |
51 | unsigned short adc_read(int channel); | 39 | unsigned short adc_read(int channel); |
52 | void ascodec_lock(void); | 40 | void ascodec_lock(void); |