Skip to content

Commit b157064

Browse files
committed
ALSA: firewire: Fix C++ style comments in uapi header
UAPI headers are built with -std=c90 and C++ style comments are explicitly prohibited. The recent commit overlooked the rule and caused the error at header installation. This patch corrects those. Fixes: bea36af ("ALSA: firewire-motu: add message parser to gather meter information in register DSP model") Fixes: 90b28f3 ("ALSA: firewire-motu: add message parser for meter information in command DSP model") Fixes: 634ec0b ("ALSA: firewire-motu: notify event for parameter change in register DSP model") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20211018113812.0a16efb0@canb.auug.org.au Link: https://lore.kernel.org/r/20211018063700.30834-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 2d9ea39 commit b157064

1 file changed

Lines changed: 37 additions & 33 deletions

File tree

‎include/uapi/sound/firewire.h‎

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ struct snd_firewire_event_tascam_control {
6868

6969
struct snd_firewire_event_motu_register_dsp_change {
7070
unsigned int type;
71-
__u32 count; // The number of changes.
72-
__u32 changes[]; // Encoded event for change of register DSP.
71+
__u32 count; /* The number of changes. */
72+
__u32 changes[]; /* Encoded event for change of register DSP. */
7373
};
7474

7575
union snd_firewire_event {
@@ -119,25 +119,27 @@ struct snd_firewire_tascam_state {
119119
__be32 data[SNDRV_FIREWIRE_TASCAM_STATE_COUNT];
120120
};
121121

122-
// In below MOTU models, software is allowed to control their DSP by accessing to registers.
123-
// - 828mk2
124-
// - 896hd
125-
// - Traveler
126-
// - 8 pre
127-
// - Ultralite
128-
// - 4 pre
129-
// - Audio Express
130-
//
131-
// On the other hand, the status of DSP is split into specific messages included in the sequence of
132-
// isochronous packet. ALSA firewire-motu driver gathers the messages and allow userspace applications
133-
// to read it via ioctl. In 828mk2, 896hd, and Traveler, hardware meter for all of physical inputs
134-
// are put into the message, while one pair of physical outputs is selected. The selection is done by
135-
// LSB one byte in asynchronous write quadlet transaction to 0x'ffff'f000'0b2c.
136-
//
137-
// I note that V3HD/V4HD uses asynchronous transaction for the purpose. The destination address is
138-
// registered to 0x'ffff'f000'0b38 and '0b3c by asynchronous write quadlet request. The size of
139-
// message differs between 23 and 51 quadlets. For the case, the number of mixer bus can be extended
140-
// up to 12.
122+
/*
123+
* In below MOTU models, software is allowed to control their DSP by accessing to registers.
124+
* - 828mk2
125+
* - 896hd
126+
* - Traveler
127+
* - 8 pre
128+
* - Ultralite
129+
* - 4 pre
130+
* - Audio Express
131+
*
132+
* On the other hand, the status of DSP is split into specific messages included in the sequence of
133+
* isochronous packet. ALSA firewire-motu driver gathers the messages and allow userspace applications
134+
* to read it via ioctl. In 828mk2, 896hd, and Traveler, hardware meter for all of physical inputs
135+
* are put into the message, while one pair of physical outputs is selected. The selection is done by
136+
* LSB one byte in asynchronous write quadlet transaction to 0x'ffff'f000'0b2c.
137+
*
138+
* I note that V3HD/V4HD uses asynchronous transaction for the purpose. The destination address is
139+
* registered to 0x'ffff'f000'0b38 and '0b3c by asynchronous write quadlet request. The size of
140+
* message differs between 23 and 51 quadlets. For the case, the number of mixer bus can be extended
141+
* up to 12.
142+
*/
141143

142144
#define SNDRV_FIREWIRE_MOTU_REGISTER_DSP_METER_COUNT 40
143145

@@ -219,18 +221,20 @@ struct snd_firewire_motu_register_dsp_parameter {
219221
__u8 reserved[64];
220222
};
221223

222-
// In below MOTU models, software is allowed to control their DSP by command in frame of
223-
// asynchronous transaction to 0x'ffff'0001'0000:
224-
//
225-
// - 828 mk3 (FireWire only and Hybrid)
226-
// - 896 mk3 (FireWire only and Hybrid)
227-
// - Ultralite mk3 (FireWire only and Hybrid)
228-
// - Traveler mk3
229-
// - Track 16
230-
//
231-
// On the other hand, the states of hardware meter is split into specific messages included in the
232-
// sequence of isochronous packet. ALSA firewire-motu driver gathers the message and allow userspace
233-
// application to read it via ioctl.
224+
/*
225+
* In below MOTU models, software is allowed to control their DSP by command in frame of
226+
* asynchronous transaction to 0x'ffff'0001'0000:
227+
*
228+
* - 828 mk3 (FireWire only and Hybrid)
229+
* - 896 mk3 (FireWire only and Hybrid)
230+
* - Ultralite mk3 (FireWire only and Hybrid)
231+
* - Traveler mk3
232+
* - Track 16
233+
*
234+
* On the other hand, the states of hardware meter is split into specific messages included in the
235+
* sequence of isochronous packet. ALSA firewire-motu driver gathers the message and allow userspace
236+
* application to read it via ioctl.
237+
*/
234238

235239
#define SNDRV_FIREWIRE_MOTU_COMMAND_DSP_METER_COUNT 400
236240

0 commit comments

Comments
 (0)