diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-09-30 22:12:35 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-01 11:56:57 -0400 |
commit | e43726df2cd1cb8275234d60b818d417cfe730b5 (patch) | |
tree | 6f1fb0659dccaafd47394c7de860d4dc3e46b0a4 /firmware/export/audiohw.h | |
parent | 6459fa0765745e951a6731974164bbcdc9551dfe (diff) | |
download | rockbox-e43726df2cd1cb8275234d60b818d417cfe730b5.tar.gz rockbox-e43726df2cd1cb8275234d60b818d417cfe730b5.zip |
hosted pcm-alsa improvements
* xduoo x3ii/x20: Better line out support
* less granular volume settings (too many steps before)
* Better handling of swiching sample rates
* Log actual sample rate in debug menu
Most credit goes to Roman Stolyarov
Additional integration [re]work by myself
Change-Id: I63af3740678cf2ed3170f61534e1029c81826bb6
Diffstat (limited to 'firmware/export/audiohw.h')
-rw-r--r-- | firmware/export/audiohw.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 490c8fc571..34a253e893 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -223,7 +223,7 @@ struct sound_settings_info | |||
223 | #elif defined(HAVE_ROCKER_CODEC) | 223 | #elif defined(HAVE_ROCKER_CODEC) |
224 | #include "rocker_codec.h" | 224 | #include "rocker_codec.h" |
225 | #elif defined(HAVE_XDUOO_LINUX_CODEC) | 225 | #elif defined(HAVE_XDUOO_LINUX_CODEC) |
226 | #include "rocker_codec.h" | 226 | #include "xduoolinux_codec.h" |
227 | #endif | 227 | #endif |
228 | 228 | ||
229 | /* convert caps into defines */ | 229 | /* convert caps into defines */ |
@@ -452,6 +452,10 @@ void audiohw_set_volume(int vol_l, int vol_r); | |||
452 | void audiohw_set_lineout_volume(int vol_l, int vol_r); | 452 | void audiohw_set_lineout_volume(int vol_l, int vol_r); |
453 | #endif | 453 | #endif |
454 | 454 | ||
455 | #ifdef AUDIOHW_HAVE_SET_OUTPUT | ||
456 | void audiohw_set_output(void); | ||
457 | #endif | ||
458 | |||
455 | #ifndef AUDIOHW_HAVE_CLIPPING | 459 | #ifndef AUDIOHW_HAVE_CLIPPING |
456 | #if defined(AUDIOHW_HAVE_BASS) || defined(AUDIOHW_HAVE_TREBLE) \ | 460 | #if defined(AUDIOHW_HAVE_BASS) || defined(AUDIOHW_HAVE_TREBLE) \ |
457 | || defined(AUDIOHW_HAVE_EQ) | 461 | || defined(AUDIOHW_HAVE_EQ) |