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)
commit6a4e89ff0f4e46c1a9d0c28e786952e70516a5f4
tree1b2c205a0d3e081f4ec2fbd44b03c1501f3ba8e3
parent27ec83b5c6ac08599240ec9a95286e79d6ea9e51
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