diff options
author | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2013-06-02 23:03:26 +0400 |
---|---|---|
committer | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2013-11-05 09:59:45 +0400 |
commit | 3a97e12fc58bd413c81d827c7b32a8cfd08b4d2b (patch) | |
tree | 4a827d570ab32161783d9327a748d87f601605c5 /firmware/target/arm/rk27xx/ma/audio-ma.c | |
parent | a170c99170589488531f7f576ad5e248b1c7c589 (diff) | |
download | rockbox-3a97e12fc58bd413c81d827c7b32a8cfd08b4d2b.tar.gz rockbox-3a97e12fc58bd413c81d827c7b32a8cfd08b4d2b.zip |
Introduce HiFi E.T. MA8/MA8C ports.
HiFi E.T. MA8 is almost the same as MA9 except
another DAC(pcm1792 in ma8, df1704 in ma9).
MA8 has ILI9342 lcd, MA8C has ILI9342C lcd.
Change-Id: If2ac04f5a3382590b2a392c46286559f54b2ed6a
Diffstat (limited to 'firmware/target/arm/rk27xx/ma/audio-ma.c')
-rw-r--r-- | firmware/target/arm/rk27xx/ma/audio-ma.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/rk27xx/ma/audio-ma.c b/firmware/target/arm/rk27xx/ma/audio-ma.c index 92cea307b2..f842824c26 100644 --- a/firmware/target/arm/rk27xx/ma/audio-ma.c +++ b/firmware/target/arm/rk27xx/ma/audio-ma.c | |||
@@ -29,21 +29,25 @@ void df1704_set_ml_dir(const int dir) | |||
29 | { | 29 | { |
30 | pca9555_write_config(dir<<8, (1<<8)); | 30 | pca9555_write_config(dir<<8, (1<<8)); |
31 | } | 31 | } |
32 | void pcm1792_set_ml_dir (const int) __attribute__((alias("df1704_set_ml_dir"))); | ||
32 | 33 | ||
33 | void df1704_set_ml(const int val) | 34 | void df1704_set_ml(const int val) |
34 | { | 35 | { |
35 | pca9555_write_output(val<<8, 1<<8); | 36 | pca9555_write_output(val<<8, 1<<8); |
36 | } | 37 | } |
38 | void pcm1792_set_ml (const int) __attribute__((alias("df1704_set_ml"))); | ||
37 | 39 | ||
38 | void df1704_set_mc(const int val) | 40 | void df1704_set_mc(const int val) |
39 | { | 41 | { |
40 | pca9555_write_output(val<<1, 1<<1); | 42 | pca9555_write_output(val<<1, 1<<1); |
41 | } | 43 | } |
44 | void pcm1792_set_mc (const int) __attribute__((alias("df1704_set_mc"))); | ||
42 | 45 | ||
43 | void df1704_set_md(const int val) | 46 | void df1704_set_md(const int val) |
44 | { | 47 | { |
45 | pca9555_write_output(val<<0, 1<<0); | 48 | pca9555_write_output(val<<0, 1<<0); |
46 | } | 49 | } |
50 | void pcm1792_set_md (const int) __attribute__((alias("df1704_set_md"))); | ||
47 | 51 | ||
48 | static void pop_ctrl(const int val) | 52 | static void pop_ctrl(const int val) |
49 | { | 53 | { |
@@ -60,7 +64,6 @@ static void dac_enable(const int val) | |||
60 | pca9555_write_output(val<<4, 1<<4); | 64 | pca9555_write_output(val<<4, 1<<4); |
61 | } | 65 | } |
62 | 66 | ||
63 | |||
64 | void audiohw_postinit(void) | 67 | void audiohw_postinit(void) |
65 | { | 68 | { |
66 | pop_ctrl(0); | 69 | pop_ctrl(0); |