summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/alsa-controls.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2018-02-19 16:28:11 +1100
committerSolomon Peachy <pizza@shaftnet.org>2020-10-31 14:16:31 +0000
commitdd82f13fa1241266576b508180fcf90b8d9bda2c (patch)
treecdae2331353e4f85a296782b14001d021923ddfc /firmware/target/hosted/alsa-controls.h
parentce9e7e712238dc69a825a49f4f226ff47fbbff69 (diff)
downloadrockbox-dd82f13fa1241266576b508180fcf90b8d9bda2c.tar.gz
rockbox-dd82f13fa1241266576b508180fcf90b8d9bda2c.zip
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
Diffstat (limited to 'firmware/target/hosted/alsa-controls.h')
-rw-r--r--firmware/target/hosted/alsa-controls.h5
1 files changed, 1 insertions, 4 deletions
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 @@
27#include <alloca.h> 27#include <alloca.h>
28 28
29/* open alsa control interface and list all controls, keep control open */ 29/* open alsa control interface and list all controls, keep control open */
30void alsa_controls_init(void); 30void alsa_controls_init(const char *name);
31/* close alsa controls */ 31/* close alsa controls */
32void alsa_controls_close(void); 32void alsa_controls_close(void);
33 33
34/* NOTE: all the following functions panic on error. This behaviour could be changed with the 34/* NOTE: all the following functions panic on error. This behaviour could be changed with the
35 * functions returning proper values but that would make errors happen silently */ 35 * functions returning proper values but that would make errors happen silently */
36 36
37/* find a control element ID by name, return false of not found, the id needs
38 * to be allocated */
39bool alsa_controls_find(snd_ctl_elem_id_t *id, const char *name);
40/* check wether a control exists */ 37/* check wether a control exists */
41bool alsa_has_control(const char *name); 38bool alsa_has_control(const char *name);
42/* find a control element enum index by name, return -1 if not found */ 39/* find a control element enum index by name, return -1 if not found */