From 51ba8b3eee2ccfede2c766494b38b1b3404b95e4 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 10 Oct 2024 13:25:47 -0400 Subject: erosqhosted: Support HW volume control on rev2+ hardware This also adds hwrev info to the debug output. Change-Id: Ia75218cacb8f756a23a77334ea6ab69ac3b20d10 --- firmware/target/hosted/alsa-controls.h | 2 ++ 1 file changed, 2 insertions(+) (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 af3e584cd9..b868ef52fb 100644 --- a/firmware/target/hosted/alsa-controls.h +++ b/firmware/target/hosted/alsa-controls.h @@ -36,6 +36,8 @@ void alsa_controls_close(void); /* check wether a control exists */ bool alsa_has_control(const char *name); +/* find a control element ID by name, return -1 of not found or index into array */ +int alsa_controls_find(const char *name); /* find a control element enum index by name, return -1 if not found */ int alsa_controls_find_enum(const char *name, const char *enum_name); /* set a control, potentially supports several values */ -- cgit v1.2.3