]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-lib: calculate the length of packet payload in packet handler
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 22 May 2019 14:17:04 +0000 (23:17 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 May 2019 10:19:39 +0000 (12:19 +0200)
commit20f2f5f5dc0e4dd839c180d03d77c02fc080315d
tree06c0b294ef92c96ca78af620c4cfd063680ae80e
parentc3e05d27206a975e04636de43207367dbccfa374
ALSA: firewire-lib: calculate the length of packet payload in packet handler

In current packet handler, the length of payload is given as an argument
of callback function, however this value is just required to process
payload of transferred isoc packet, thus just for IR context.

This commit replaces the argument for payload of packet with the
argument of context header. As a result, the length of payload is
computed in packet handler for IR context.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c
sound/firewire/amdtp-stream.h