Commit Graph

9 Commits

Author SHA1 Message Date
Geoffrey D. Bennett
3f7a4c2063 Allow for boolean controls that are backwards
Gen 1 has playback controls (0 = off, 1 = on), not mute controls
(0 = not muted, 1 = muted) like the Gen 2+ do.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett
111ec1154d Add support for volatile buttons to widget-boolean.c
Will be used by Gen 1 support.
2024-03-31 03:29:10 +10:30
Geoffrey D. Bennett
05e9d9e0a2 Fix widget-boolean.c to free data on button destruction 2024-03-31 03:17:35 +10:30
Geoffrey D. Bennett
099e50b91e Remove bool_text from struct alsa_elem
Store the text in the boolean/dual widget private data.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
b2823e79be Bump copyright year 2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
47034d7901 Remove widgets from struct alsa_elem and add data to callbacks
Rather than having widget/widget2/widget_callback fields in the struct
alsa_elem, have a list of callbacks and allow private data to be
passed to callbacks.
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
2eb8e0b7cb Make boolean widget boolify value from alsa_get_elem_value()
Make sure the value is 0/1 as it's used as an index into
elem->bool_text[].
2024-02-05 20:03:10 +10:30
Sebastian Kaminski
50b7531dd2 Prevent the boolean widget from changing size when toggled
When the label of the button for the boolean widget changes, the size
of the button was also changing. This commit sets the minimum size of
the widget so that it will accommodate both labels.
2022-04-02 23:14:50 +10:30
Geoffrey D. Bennett
17b4d2f055 Initial revision 2022-03-14 09:24:43 +10:30