History

ALSA: firewire-motu: enable to read transaction cache via hwdep interface

MOTU FireWire series can transfer messages to registered address. These messages are transferred for the status of internal clock synchronization just after starting streams. When the synchronization is stable, it's 0x01ffffff. Else, it's 0x05ffffff. This commit adds a functionality for user space applications to receive content of the message.

Takashi Sakamoto committed 9 years ago

Commit 5aaab1b1 parent 71c37973 files · +35 −2Browse files

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

Unified · Split

include/uapi/sound/firewire.h+7−0
@@ -10,6 +10,7 @@ · 9 unmodified lines
10#define SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION 0xd1ce004e10#define SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION 0xd1ce004e
11#define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e61747511#define SNDRV_FIREWIRE_EVENT_EFW_RESPONSE 0x4e617475
12#define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c12#define SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE 0x746e736c
13#define SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION 0x64776479
13 14
14struct snd_firewire_event_common {15struct snd_firewire_event_common {
15 unsigned int type; /* SNDRV_FIREWIRE_EVENT_xxx */16 unsigned int type; /* SNDRV_FIREWIRE_EVENT_xxx */
@@ -46,12 +47,18 @@ struct snd_firewire_event_digi00x_message { · 30 unmodified lines
46 __u32 message; /* Digi00x-specific message */47 __u32 message; /* Digi00x-specific message */
47};48};
48 49
50struct snd_firewire_event_motu_notification {
51 unsigned int type;
52 __u32 message; /* MOTU-specific bits. */
53};
54
49union snd_firewire_event {55union snd_firewire_event {
50 struct snd_firewire_event_common common;56 struct snd_firewire_event_common common;
51 struct snd_firewire_event_lock_status lock_status;57 struct snd_firewire_event_lock_status lock_status;
52 struct snd_firewire_event_dice_notification dice_notification;58 struct snd_firewire_event_dice_notification dice_notification;
53 struct snd_firewire_event_efw_response efw_response;59 struct snd_firewire_event_efw_response efw_response;
54 struct snd_firewire_event_digi00x_message digi00x_message;60 struct snd_firewire_event_digi00x_message digi00x_message;
61 struct snd_firewire_event_motu_notification motu_notification;
55};62};
56 63
57 64

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