History

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.

Takashi Sakamoto committed 7 years ago

Commit a8c0d131 parent afb8e2d3 files · +72 −2Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/sound/firewire.h+7−0
@@ -12,6 +12,7 @@ · 11 unmodified lines
12#define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e61747512#define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e617475
13#define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c13#define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c
14#define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION 0x6477647914#define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION 0x64776479
15#define SNDRV_FIREWIRE_EVENT_TASCAM_CONTROL 0x7473636d
15 16
16struct snd_firewire_event_common {17struct snd_firewire_event_common {
17 unsigned int type; /* SNDRV_FIREWIRE_EVENT_xxx */18 unsigned int type; /* SNDRV_FIREWIRE_EVENT_xxx */
@@ -59,12 +60,18 @@ struct snd_firewire_tascam_change { · 41 unmodified lines
59 __be32 after;60 __be32 after;
60};61};
61 62
63struct snd_firewire_event_tascam_control {
64 unsigned int type;
65 struct snd_firewire_tascam_change changes[0];
66};
67
62union snd_firewire_event {68union snd_firewire_event {
63 struct snd_firewire_event_common common;69 struct snd_firewire_event_common common;
64 struct snd_firewire_event_lock_status lock_status;70 struct snd_firewire_event_lock_status lock_status;
65 struct snd_firewire_event_dice_notification dice_notification;71 struct snd_firewire_event_dice_notification dice_notification;
66 struct snd_firewire_event_efw_response efw_response;72 struct snd_firewire_event_efw_response efw_response;
67 struct snd_firewire_event_digi00x_message digi00x_message;73 struct snd_firewire_event_digi00x_message digi00x_message;
74 struct snd_firewire_event_tascam_control tascam_control;
68 struct snd_firewire_event_motu_notification motu_notification;75 struct snd_firewire_event_motu_notification motu_notification;
69};76};
70 77

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t