]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-lib: add a member of frame_multiplier instead of double_pcm_frames
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 19 Sep 2015 02:21:51 +0000 (11:21 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Sep 2015 10:35:46 +0000 (12:35 +0200)
commit45237ff7e40c4588b7c9e2a844af701369500278
tree1b2c205a0d3e081f4ec2fbd44b03c1501f3ba8e3
parent011904d415b4afe63fdf3859bc22c2e06f0638ff
ALSA: firewire-lib: add a member of frame_multiplier instead of double_pcm_frames

In future commit, interface between data block processing layer and packet
stream processing layer is defined. These two layers communicate the
number of data blocks and the number of PCM frames.

The data block processing layer has a responsibility for calculating the
number of PCM frames. Therefore, 'dual wire' of Dice quirk should be
handled in data block processing layer.

This commit adds a member of 'frame_multiplier'. This member represents
the ratio of the number of PCM frames against the number of data blocks.
Usually, the value of this member is 1, while it's 2 in Dice's 'dual wire'.

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