diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2015-09-19 11:21:51 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-09-29 12:35:46 +0200 |
commit | 6a4e89ff0f4e46c1a9d0c28e786952e70516a5f4 (patch) | |
tree | 1b2c205a0d3e081f4ec2fbd44b03c1501f3ba8e3 /sound/firewire/amdtp.h | |
parent | 27ec83b5c6ac08599240ec9a95286e79d6ea9e51 (diff) |
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>
Diffstat (limited to 'sound/firewire/amdtp.h')
-rw-r--r-- | sound/firewire/amdtp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/firewire/amdtp.h b/sound/firewire/amdtp.h index 2c9130695780..65229258bd24 100644 --- a/sound/firewire/amdtp.h +++ b/sound/firewire/amdtp.h @@ -162,11 +162,12 @@ struct amdtp_stream { u8 pcm_positions[AMDTP_MAX_CHANNELS_FOR_PCM]; u8 midi_position; - bool double_pcm_frames; void (*transfer_samples)(struct amdtp_stream *s, struct snd_pcm_substream *pcm, __be32 *buffer, unsigned int frames); + + unsigned int frame_multiplier; }; int amdtp_stream_init(struct amdtp_stream *s, struct fw_unit *unit, |