]> git.alsa-project.org Git - alsa-gobject.git/commit
timer: user_instance: report error for timer already attached
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)
commit9c8b8f4e2d4bedbe975e0fb0d9749492ae06c63a
treebfb1fd42ce046c25f2f6d083744c8c39251963bd
parent1ffdb921bef4897863344d905213bdd8d8c8f923
timer: user_instance: report error for timer already attached

After opening character device, applications can select event type. The
operation should be done before attaching to any timer device or the other
instances, Else it fails and returns EBUSY error to the applications.

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