nwz/alsa: various improvements

Also audiohw driver to specific device name, rewrite alsa controls code to
cache more data, thus making the code easier and use less stack. Avoid using
short/long in pcm alsa code since it's the wrong size on 64-bit (simulator
for example)

Change-Id: Ibc1ec44396e37b6cbdedbcf37300878638e5d2d3
This commit is contained in:
Amaury Pouly 2018-02-19 16:28:11 +11:00 committed by Solomon Peachy
parent ce9e7e7122
commit dd82f13fa1
10 changed files with 122 additions and 93 deletions

View file

@ -25,7 +25,7 @@
#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_l, int vol_db_r);
void pcm_set_mixer_volume(int vol_db_l, int vol_db_r);
#endif
/* These two should be invoked in your audiohw_preinit() call! */