]> git.alsa-project.org Git - alsa-gobject.git/commit
timer: user_instance: report error for timer instance not found
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)
commite31639d67d1ec18d07d78db917b99f46b2aba0c2
treeec77aa039494cd04c8f0b3f9cd73900384f7efd0
parenta400f241e9ef72f7383c4d7a1556266898dd9faa
timer: user_instance: report error for timer instance not found

After instantiation and opening character device, application can attach
any timer device to the instance according to the identifier information.
If ALSA timer system has no substance identified by the information,
application receives ENODEV 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