summaryrefslogtreecommitdiffstats
path: root/binding/radio_impl.h
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-01-03 01:26:11 -0500
committerScott Murray <scott.murray@konsulko.com>2019-01-04 22:19:49 +0000
commit6e70d2b8b821622ae81796a6f1d3f7f3881610a2 (patch)
treead1bd2ee626608181d4dcb7adc6075b3efe97c1b /binding/radio_impl.h
parent6098681d92e9087627d4ba2d90ae826a6f579d0b (diff)
Add audio role open/close support
Rework things so that the 4A audio role is only opened while playing, and closed when stopped. Further work will need to be done to handle the possibility of the output device changing on subsequent opens, both the RTL SDR and Kingfisher case have complications around doing so: - The RTL SDR helper application needs to be enhanced to add an output setting command. Killing it and starting it again would also work, but likely will add noticeable UI latency. - On the Kingfisher, the binding currently has no control over the output used for the loopback, as it is being set up down in the soft-mixer based on HAL values. Change-Id: I4aa83c937972ec5d91f7b78421a11148c7fe0afc Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit f1d5902c92eafd3aad62e29298502603a9b56d81)
Diffstat (limited to 'binding/radio_impl.h')
-rw-r--r--binding/radio_impl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/binding/radio_impl.h b/binding/radio_impl.h
index 49efe24..0216f69 100644
--- a/binding/radio_impl.h
+++ b/binding/radio_impl.h
@@ -41,7 +41,9 @@ typedef enum {
typedef struct {
char *name;
- int (*init)(const char *output);
+ int (*init)(void);
+
+ void (*set_output)(const char *output);
uint32_t (*get_frequency)(void);