ErosQ Native ES9018K2M: Add digital filters capability

Setting not yet hidden for older hardware revision.

Change-Id: Iaaa5727e63c38de578a6bbc73498ae1073180e65
This commit is contained in:
Dana Conrad 2023-12-03 15:07:26 -06:00 committed by Aidan MacDonald
parent a3fe07ff12
commit 8cc7476735
5 changed files with 70 additions and 8 deletions

View file

@ -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);
}
}