mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 20:35:42 +02:00
module/alsa: include volume min/max/cur and muted state in info log
This commit is contained in:
parent
64a52656b1
commit
43aeb1c224
1 changed files with 4 additions and 2 deletions
|
@ -97,11 +97,13 @@ run(struct module_run_context *ctx)
|
|||
snd_mixer_selem_id_set_name(sid, m->mixer);
|
||||
snd_mixer_elem_t* elem = snd_mixer_find_selem(handle, sid);
|
||||
|
||||
LOG_INFO("connected to card=%s, mixer=%s", m->card, m->mixer);
|
||||
|
||||
/* Initial state */
|
||||
update_state(mod, elem);
|
||||
|
||||
LOG_INFO("%s,%s: volume min=%ld, max=%ld, current=%ld%s",
|
||||
m->card, m->mixer, m->vol_min, m->vol_max, m->vol_cur,
|
||||
m->muted ? ", muted" : "");
|
||||
|
||||
while (true) {
|
||||
int fd_count = snd_mixer_poll_descriptors_count(handle);
|
||||
assert(fd_count >= 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue