From dd82f13fa1241266576b508180fcf90b8d9bda2c Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 19 Feb 2018 16:28:11 +1100 Subject: 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 --- firmware/target/hosted/sonynwz/debug-nwz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/hosted/sonynwz/debug-nwz.c') diff --git a/firmware/target/hosted/sonynwz/debug-nwz.c b/firmware/target/hosted/sonynwz/debug-nwz.c index c9a430e7c2..859eddb47b 100644 --- a/firmware/target/hosted/sonynwz/debug-nwz.c +++ b/firmware/target/hosted/sonynwz/debug-nwz.c @@ -369,7 +369,7 @@ bool dbg_hw_info_audio(void) { case VOL: vol += inc ? 1 : -1; - pcm_alsa_set_digital_volume(vol, vol); + pcm_set_mixer_volume(vol, vol); break; case ACOUSTIC: audiohw_enable_acoustic(!audiohw_acoustic_enabled()); -- cgit v1.2.3