diff options
author | Dana Conrad <dconrad@fastmail.com> | 2023-12-03 15:07:26 -0600 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2024-01-02 08:19:23 -0500 |
commit | 8cc7476735dd3f9f9e3f5b1356eadc4ef40c23b4 (patch) | |
tree | 23891c54ebb8e6adaea8b8382830c7e29ad7475d /firmware/target/mips/ingenic_x1000 | |
parent | a3fe07ff128e521051aee8bc91add071724d6538 (diff) | |
download | rockbox-8cc7476735dd3f9f9e3f5b1356eadc4ef40c23b4.tar.gz rockbox-8cc7476735dd3f9f9e3f5b1356eadc4ef40c23b4.zip |
ErosQ Native ES9018K2M: Add digital filters capability
Setting not yet hidden for older hardware revision.
Change-Id: Iaaa5727e63c38de578a6bbc73498ae1073180e65
Diffstat (limited to 'firmware/target/mips/ingenic_x1000')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/erosqnative/audiohw-erosqnative.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_x1000/erosqnative/audiohw-erosqnative.c b/firmware/target/mips/ingenic_x1000/erosqnative/audiohw-erosqnative.c index 1e3e7f0b7f..df97aba0c8 100644 --- a/firmware/target/mips/ingenic_x1000/erosqnative/audiohw-erosqnative.c +++ b/firmware/target/mips/ingenic_x1000/erosqnative/audiohw-erosqnative.c | |||
@@ -162,7 +162,7 @@ void audiohw_set_volume(int vol_l, int vol_r) | |||
162 | /* set software volume just below unity due to | 162 | /* set software volume just below unity due to |
163 | * DAC offset. We don't want to overflow the PCM system. */ | 163 | * DAC offset. We don't want to overflow the PCM system. */ |
164 | pcm_set_master_volume(-1, -1); | 164 | pcm_set_master_volume(-1, -1); |
165 | es9018k2m_set_volume(l, r); | 165 | es9018k2m_set_volume_async(l, r); |
166 | } | 166 | } |
167 | else /* PCM5102A */ | 167 | else /* PCM5102A */ |
168 | { | 168 | { |
@@ -171,4 +171,12 @@ void audiohw_set_volume(int vol_l, int vol_r) | |||
171 | 171 | ||
172 | pcm_set_master_volume(l, r); | 172 | pcm_set_master_volume(l, r); |
173 | } | 173 | } |
174 | } | ||
175 | |||
176 | void audiohw_set_filter_roll_off(int value) | ||
177 | { | ||
178 | if (es9018k2m_present_flag) | ||
179 | { | ||
180 | es9018k2m_set_filter_roll_off(value); | ||
181 | } | ||
174 | } \ No newline at end of file | 182 | } \ No newline at end of file |