]> 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)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Sun, 15 Nov 2020 00:19:56 +0000 (09:19 +0900)
commit1ffdb921bef4897863344d905213bdd8d8c8f923
tree44013b4af038d1f4252d6b42706487b896089beb
parente31639d67d1ec18d07d78db917b99f46b2aba0c2
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