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/alsa-controls.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'firmware/target/hosted/alsa-controls.h') diff --git a/firmware/target/hosted/alsa-controls.h b/firmware/target/hosted/alsa-controls.h index 0505ee3dd1..af3e584cd9 100644 --- a/firmware/target/hosted/alsa-controls.h +++ b/firmware/target/hosted/alsa-controls.h @@ -27,16 +27,13 @@ #include /* open alsa control interface and list all controls, keep control open */ -void alsa_controls_init(void); +void alsa_controls_init(const char *name); /* close alsa controls */ void alsa_controls_close(void); /* NOTE: all the following functions panic on error. This behaviour could be changed with the * functions returning proper values but that would make errors happen silently */ -/* find a control element ID by name, return false of not found, the id needs - * to be allocated */ -bool alsa_controls_find(snd_ctl_elem_id_t *id, const char *name); /* check wether a control exists */ bool alsa_has_control(const char *name); /* find a control element enum index by name, return -1 if not found */ -- cgit v1.2.3