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/target/hosted/pcm-alsa.h | |
parent | 6459fa0765745e951a6731974164bbcdc9551dfe (diff) | |
download | rockbox-e43726df2cd1cb8275234d60b818d417cfe730b5.tar.gz rockbox-e43726df2cd1cb8275234d60b818d417cfe730b5.tar.bz2 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/target/hosted/pcm-alsa.h')
-rw-r--r-- | firmware/target/hosted/pcm-alsa.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/hosted/pcm-alsa.h b/firmware/target/hosted/pcm-alsa.h index a2514494de..b746f0d259 100644 --- a/firmware/target/hosted/pcm-alsa.h +++ b/firmware/target/hosted/pcm-alsa.h @@ -22,10 +22,12 @@ #include <config.h> -#ifdef SONY_NWZ_LINUX +#if defined(SONY_NWZ_LINUX) || defined(HAVE_FIIO_LINUX_CODEC) /* Set the PCM volume in dB: each sample with have this volume applied digitally * before being sent to ALSA. Volume must satisfy -43 <= dB <= 0 */ -void pcm_alsa_set_digital_volume(int vol_db); +void pcm_alsa_set_digital_volume(int vol_db_l, int vol_db_r); #endif +int pcm_alsa_get_rate(void); + #endif /* __PCM_ALSA_RB_H__ */ |