Commit graph

8 commits

Author SHA1 Message Date
Daniel Eklöf
42104db1ca modules: move files back to a common directory (again) 2019-01-12 21:24:20 +01:00
Daniel Eklöf
8809cbb481 Put each module in its own subdirectory 2019-01-12 11:19:57 +01:00
Daniel Eklöf
54798567c0 module/alsa: track all channels
Warn if volume and/or muted state is inconsistent (as we only expose a
single volume/muted state).

Also, don't query for current volume if max == 0 (i.e. typically a
digital output).

Finally, make absolutely sure that volume min is really less (or
equal) to volume max, and that the current volume level is between min
and max.
2019-01-09 18:50:26 +01:00
Daniel Eklöf
efe3dd06ab alsa: initialize values, fixes valgrind warning
When snd_mixer_selem_get_*() fails, the values were left
uninitialized, trigger a valgrind warning.

In addition to fixing this, the error(s) are now logged (but only as
warnings, as they are not fatal).
2019-01-07 18:29:03 +01:00
Daniel Eklöf
43aeb1c224 module/alsa: include volume min/max/cur and muted state in info log 2019-01-02 18:14:26 +01:00
Daniel Eklöf
64a52656b1 module/alsa: log info message when up and running 2019-01-02 18:11:39 +01:00
Daniel Eklöf
2d5d1d5a46 module/alsa: disable debug logging 2019-01-02 18:08:32 +01:00
Daniel Eklöf
0d8704737e module/alsa: monitors volume and muted state of selected card/mixer 2019-01-02 18:07:16 +01:00