diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-03-10 08:58:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-10 10:26:25 -0400 |
commit | 5b1274efe2a24eb5a85a00cc48c334b1cdfc75aa (patch) | |
tree | df94c26c208fe040fb450227b69f432bebecc671 /sound/firewire | |
parent | a1f3f1ca66bd12c339b17a0c2ef93a093f90a277 (diff) |
Revert "ALSA: dice: fix wrong offsets for Dice interface"
This reverts commit 8cdebf71098c07168ef6335e2f1f35d85dbe3049.
The reverted commit breaks out-stream functionality of Dice driver.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
-rw-r--r-- | sound/firewire/dice/dice-interface.h | 18 | ||||
-rw-r--r-- | sound/firewire/dice/dice-proc.c | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sound/firewire/dice/dice-interface.h b/sound/firewire/dice/dice-interface.h index de7602bd69b5..27b044f84c81 100644 --- a/sound/firewire/dice/dice-interface.h +++ b/sound/firewire/dice/dice-interface.h | |||
@@ -299,23 +299,23 @@ | |||
299 | #define RX_ISOCHRONOUS 0x008 | 299 | #define RX_ISOCHRONOUS 0x008 |
300 | 300 | ||
301 | /* | 301 | /* |
302 | * Index of first quadlet to be interpreted; read/write. If > 0, that many | ||
303 | * quadlets at the beginning of each data block will be ignored, and all the | ||
304 | * audio and MIDI quadlets will follow. | ||
305 | */ | ||
306 | #define RX_SEQ_START 0x00c | ||
307 | |||
308 | /* | ||
302 | * The number of audio channels; read-only. There will be one quadlet per | 309 | * The number of audio channels; read-only. There will be one quadlet per |
303 | * channel. | 310 | * channel. |
304 | */ | 311 | */ |
305 | #define RX_NUMBER_AUDIO 0x00c | 312 | #define RX_NUMBER_AUDIO 0x010 |
306 | 313 | ||
307 | /* | 314 | /* |
308 | * The number of MIDI ports, 0-8; read-only. If > 0, there will be one | 315 | * The number of MIDI ports, 0-8; read-only. If > 0, there will be one |
309 | * additional quadlet in each data block, following the audio quadlets. | 316 | * additional quadlet in each data block, following the audio quadlets. |
310 | */ | 317 | */ |
311 | #define RX_NUMBER_MIDI 0x010 | 318 | #define RX_NUMBER_MIDI 0x014 |
312 | |||
313 | /* | ||
314 | * Index of first quadlet to be interpreted; read/write. If > 0, that many | ||
315 | * quadlets at the beginning of each data block will be ignored, and all the | ||
316 | * audio and MIDI quadlets will follow. | ||
317 | */ | ||
318 | #define RX_SEQ_START 0x014 | ||
319 | 319 | ||
320 | /* | 320 | /* |
321 | * Names of all audio channels; read-only. Quadlets are byte-swapped. Names | 321 | * Names of all audio channels; read-only. Quadlets are byte-swapped. Names |
diff --git a/sound/firewire/dice/dice-proc.c b/sound/firewire/dice/dice-proc.c index ecfe20fd4de5..f5c1d1bced59 100644 --- a/sound/firewire/dice/dice-proc.c +++ b/sound/firewire/dice/dice-proc.c | |||
@@ -99,9 +99,9 @@ static void dice_proc_read(struct snd_info_entry *entry, | |||
99 | } tx; | 99 | } tx; |
100 | struct { | 100 | struct { |
101 | u32 iso; | 101 | u32 iso; |
102 | u32 seq_start; | ||
102 | u32 number_audio; | 103 | u32 number_audio; |
103 | u32 number_midi; | 104 | u32 number_midi; |
104 | u32 seq_start; | ||
105 | char names[RX_NAMES_SIZE]; | 105 | char names[RX_NAMES_SIZE]; |
106 | u32 ac3_caps; | 106 | u32 ac3_caps; |
107 | u32 ac3_enable; | 107 | u32 ac3_enable; |
@@ -204,10 +204,10 @@ static void dice_proc_read(struct snd_info_entry *entry, | |||
204 | break; | 204 | break; |
205 | snd_iprintf(buffer, "rx %u:\n", stream); | 205 | snd_iprintf(buffer, "rx %u:\n", stream); |
206 | snd_iprintf(buffer, " iso channel: %d\n", (int)buf.rx.iso); | 206 | snd_iprintf(buffer, " iso channel: %d\n", (int)buf.rx.iso); |
207 | snd_iprintf(buffer, " sequence start: %u\n", buf.rx.seq_start); | ||
207 | snd_iprintf(buffer, " audio channels: %u\n", | 208 | snd_iprintf(buffer, " audio channels: %u\n", |
208 | buf.rx.number_audio); | 209 | buf.rx.number_audio); |
209 | snd_iprintf(buffer, " midi ports: %u\n", buf.rx.number_midi); | 210 | snd_iprintf(buffer, " midi ports: %u\n", buf.rx.number_midi); |
210 | snd_iprintf(buffer, " sequence start: %u\n", buf.rx.seq_start); | ||
211 | if (quadlets >= 68) { | 211 | if (quadlets >= 68) { |
212 | dice_proc_fixup_string(buf.rx.names, RX_NAMES_SIZE); | 212 | dice_proc_fixup_string(buf.rx.names, RX_NAMES_SIZE); |
213 | snd_iprintf(buffer, " names: %s\n", buf.rx.names); | 213 | snd_iprintf(buffer, " names: %s\n", buf.rx.names); |