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
1212 #define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e617475
1313 #define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c
1414 #define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION 0x64776479
15+#define SNDRV_FIREWIRE_EVENT_TASCAM_CONTROL 0x7473636d
1516
1617 struct snd_firewire_event_common {
1718 unsigned int type; /* SNDRV_FIREWIRE_EVENT_xxx */
@@ -59,12 +60,18 @@ struct snd_firewire_tascam_change { · 41 unmodified lines
5960 __be32 after;
6061 };
6162
63+struct snd_firewire_event_tascam_control {
64+ unsigned int type;
65+ struct snd_firewire_tascam_change changes[0];
66+};
67+
6268 union snd_firewire_event {
6369 struct snd_firewire_event_common common;
6470 struct snd_firewire_event_lock_status lock_status;
6571 struct snd_firewire_event_dice_notification dice_notification;
6672 struct snd_firewire_event_efw_response efw_response;
6773 struct snd_firewire_event_digi00x_message digi00x_message;
74+ struct snd_firewire_event_tascam_control tascam_control;
6875 struct snd_firewire_event_motu_notification motu_notification;
6976 };
7077

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