]> 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)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 14 Nov 2020 08:28:09 +0000 (17:28 +0900)
commit9215477f3a2072d2052779df8bb3d321acbc4a17
treebfb1fd42ce046c25f2f6d083744c8c39251963bd
parent77bf6e189b85eb7512dead23e83da138ee3ed35d
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