mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
ErosQ Native ES9018K2M: Add digital filters capability
Setting not yet hidden for older hardware revision. Change-Id: Iaaa5727e63c38de578a6bbc73498ae1073180e65
This commit is contained in:
parent
a3fe07ff12
commit
8cc7476735
5 changed files with 70 additions and 8 deletions
|
|
@ -162,7 +162,7 @@ void audiohw_set_volume(int vol_l, int vol_r)
|
|||
/* set software volume just below unity due to
|
||||
* DAC offset. We don't want to overflow the PCM system. */
|
||||
pcm_set_master_volume(-1, -1);
|
||||
es9018k2m_set_volume(l, r);
|
||||
es9018k2m_set_volume_async(l, r);
|
||||
}
|
||||
else /* PCM5102A */
|
||||
{
|
||||
|
|
@ -171,4 +171,12 @@ void audiohw_set_volume(int vol_l, int vol_r)
|
|||
|
||||
pcm_set_master_volume(l, r);
|
||||
}
|
||||
}
|
||||
|
||||
void audiohw_set_filter_roll_off(int value)
|
||||
{
|
||||
if (es9018k2m_present_flag)
|
||||
{
|
||||
es9018k2m_set_filter_roll_off(value);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue