diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-11-23 07:13:07 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-11-23 17:31:15 +0300 |
commit | a8c0d13267a4151b2ff124cde6331ec28ed0d55e (patch) | |
tree | fa16772e9c438408d90c4239b7cfe3be4cc67c04 /sound/firewire/tascam/amdtp-tascam.c | |
parent | afb8e2daa031b39900488515a73c0998491ac4b8 (diff) | |
download | linux-a8c0d13267a4151b2ff124cde6331ec28ed0d55e.tar.xz |
ALSA: firewire-tascam: notify events of change of state for userspace applications
In former commits, ALSA firewire-tascam driver queues events to notify
change of state of control surface to userspace via ALSA hwdep
interface.
This commit implements actual notification of the events. The events are
not governed by real time, thus no need to care underrun.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/tascam/amdtp-tascam.c')
-rw-r--r-- | sound/firewire/tascam/amdtp-tascam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/firewire/tascam/amdtp-tascam.c b/sound/firewire/tascam/amdtp-tascam.c index 0e8088c9ada9..a52d1f76c610 100644 --- a/sound/firewire/tascam/amdtp-tascam.c +++ b/sound/firewire/tascam/amdtp-tascam.c @@ -156,6 +156,8 @@ static void read_status_messages(struct amdtp_stream *s, if (++tscm->push_pos >= SND_TSCM_QUEUE_COUNT) tscm->push_pos = 0; spin_unlock_irq(&tscm->lock); + + wake_up(&tscm->hwdep_wait); } } |