diff mbox series

ALSA: firewire-lib: fix isoc cycle count to which rx packet is scheduled

Message ID 20190829143808.8131-1-o-takashi@sakamocchi.jp (mailing list archive)
State New, archived
Headers show
Series ALSA: firewire-lib: fix isoc cycle count to which rx packet is scheduled | expand

Commit Message

Takashi Sakamoto Aug. 29, 2019, 2:38 p.m. UTC
When introducing the list of packet descriptor, for rx packet, the
calculation of scheduled isoc cycle is omitted. This commit fixes the
bug.

Fixes: f4f6ae7b7c1f ("ALSA: firewire-lib: use packet descriptor for IT context")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
 sound/firewire/amdtp-stream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai Aug. 29, 2019, 3:25 p.m. UTC | #1
On Thu, 29 Aug 2019 16:38:08 +0200,
Takashi Sakamoto wrote:
> 
> When introducing the list of packet descriptor, for rx packet, the
> calculation of scheduled isoc cycle is omitted. This commit fixes the
> bug.
> 
> Fixes: f4f6ae7b7c1f ("ALSA: firewire-lib: use packet descriptor for IT context")
> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>

Applied, thanks.


Takashi
diff mbox series

Patch

diff --git a/sound/firewire/amdtp-stream.c b/sound/firewire/amdtp-stream.c
index 1a92855c7647..88270257e896 100644
--- a/sound/firewire/amdtp-stream.c
+++ b/sound/firewire/amdtp-stream.c
@@ -732,7 +732,7 @@  static void generate_ideal_pkt_descs(struct amdtp_stream *s,
 		struct pkt_desc *desc = descs + i;
 		unsigned int index = (s->packet_index + i) % QUEUE_LENGTH;
 
-		desc->cycle = compute_cycle_count(*ctx_header);
+		desc->cycle = compute_it_cycle(*ctx_header);
 		desc->syt = calculate_syt(s, desc->cycle);
 		desc->data_blocks = calculate_data_blocks(s, desc->syt);