mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
ma9: Slightly change df1704 driver API.
This change should be done for easier integration of ma8 port.
This commit is contained in:
parent
d602717735
commit
a170c99170
3 changed files with 9 additions and 10 deletions
|
|
@ -55,7 +55,7 @@ static void amp_enable(const int val)
|
|||
pca9555_write_output(val<<3, 1<<3);
|
||||
}
|
||||
|
||||
static void df1704_enable(const int val)
|
||||
static void dac_enable(const int val)
|
||||
{
|
||||
pca9555_write_output(val<<4, 1<<4);
|
||||
}
|
||||
|
|
@ -65,21 +65,21 @@ void audiohw_postinit(void)
|
|||
{
|
||||
pop_ctrl(0);
|
||||
sleep(HZ/4);
|
||||
df1704_enable(1);
|
||||
dac_enable(1);
|
||||
amp_enable(1);
|
||||
sleep(HZ/100);
|
||||
df1704_init();
|
||||
audiohw_init();
|
||||
sleep(HZ/4);
|
||||
pop_ctrl(1);
|
||||
}
|
||||
|
||||
void audiohw_close(void)
|
||||
{
|
||||
df1704_mute();
|
||||
audiohw_mute();
|
||||
pop_ctrl(0);
|
||||
sleep(HZ/5);
|
||||
amp_enable(0);
|
||||
df1704_enable(0);
|
||||
dac_enable(0);
|
||||
sleep(HZ/5);
|
||||
pop_ctrl(1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue