]> git.alsa-project.org Git - alsa-gobject.git/commit
timer: user_instance: report error for unattached timer instance
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 14 Nov 2020 08:28:09 +0000 (17:28 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 14 Nov 2020 08:28:09 +0000 (17:28 +0900)
commit77bf6e189b85eb7512dead23e83da138ee3ed35d
tree44013b4af038d1f4252d6b42706487b896089beb
parent8bd04c8dc0119ca3f334ceef50db57d4604ab560
timer: user_instance: report error for unattached timer instance

When querying or starting the user instance, the instance should be
attached to any timer device or the other instances. Else, applications
receives EBADFD error.

This commit handles it and report local error.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/timer/alsatimer-enum-types.h
src/timer/user-instance.c
tests/alsatimer-enums