From 3a97e12fc58bd413c81d827c7b32a8cfd08b4d2b Mon Sep 17 00:00:00 2001 From: Andrew Ryabinin Date: Sun, 2 Jun 2013 23:03:26 +0400 Subject: 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 --- firmware/target/arm/rk27xx/ma/audio-ma.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/rk27xx/ma/audio-ma.c') 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) { pca9555_write_config(dir<<8, (1<<8)); } +void pcm1792_set_ml_dir (const int) __attribute__((alias("df1704_set_ml_dir"))); void df1704_set_ml(const int val) { pca9555_write_output(val<<8, 1<<8); } +void pcm1792_set_ml (const int) __attribute__((alias("df1704_set_ml"))); void df1704_set_mc(const int val) { pca9555_write_output(val<<1, 1<<1); } +void pcm1792_set_mc (const int) __attribute__((alias("df1704_set_mc"))); void df1704_set_md(const int val) { pca9555_write_output(val<<0, 1<<0); } +void pcm1792_set_md (const int) __attribute__((alias("df1704_set_md"))); static void pop_ctrl(const int val) { @@ -60,7 +64,6 @@ static void dac_enable(const int val) pca9555_write_output(val<<4, 1<<4); } - void audiohw_postinit(void) { pop_ctrl(0); -- cgit v1.2.3