Skip to content

Commit f4588cc

Browse files
takaswietiwai
authored andcommitted
ALSA: fireface: start IR context immediately
In the latter models of RME Fireface series, device start to transfer packets several dozens of milliseconds. On the other hand, ALSA fireface driver starts IR context 2 milliseconds after the start. This results in loss to handle incoming packets on the context. This commit changes to start IR context immediately instead of postponement. For Fireface 800, this affects nothing because the device transfer packets 100 milliseconds or so after the start and this is within wait timeout. Cc: <stable@vger.kernel.org> Fixes: acfedcb ("ALSA: firewire-lib: postpone to start IR context") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20200510074301.116224-3-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent bbd6aac commit f4588cc

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎sound/firewire/fireface/ff-stream.c‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ int snd_ff_stream_start_duplex(struct snd_ff *ff, unsigned int rate)
184184
*/
185185
if (!amdtp_stream_running(&ff->rx_stream)) {
186186
int spd = fw_parent_device(ff->unit)->max_speed;
187-
unsigned int ir_delay_cycle;
188187

189188
err = ff->spec->protocol->begin_session(ff, rate);
190189
if (err < 0)
@@ -200,14 +199,7 @@ int snd_ff_stream_start_duplex(struct snd_ff *ff, unsigned int rate)
200199
if (err < 0)
201200
goto error;
202201

203-
// The device postpones start of transmission mostly for several
204-
// cycles after receiving packets firstly.
205-
if (ff->spec->protocol == &snd_ff_protocol_ff800)
206-
ir_delay_cycle = 800; // = 100 msec
207-
else
208-
ir_delay_cycle = 16; // = 2 msec
209-
210-
err = amdtp_domain_start(&ff->domain, ir_delay_cycle);
202+
err = amdtp_domain_start(&ff->domain, 0);
211203
if (err < 0)
212204
goto error;
213205

0 commit comments

Comments
 (0)