alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ALSA: firewire: use .ack callback of PCM operation for packet processing
@ 2017-06-07  0:38 Takashi Sakamoto
  2017-06-07  0:38 ` [PATCH 1/2] ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback Takashi Sakamoto
  2017-06-07  0:38 ` [PATCH 2/2] ALSA: fireface: constify ALSA specific operations Takashi Sakamoto
  0 siblings, 2 replies; 23+ messages in thread
From: Takashi Sakamoto @ 2017-06-07  0:38 UTC (permalink / raw)
  To: clemens, tiwai; +Cc: alsa-devel, ffado-devel

Hi,

In recent work for ALSA PCM core, driver-side implementation for
'struct snd_pcm_ops.ack'  is called when appl_ptr in intermediate PCM
buffer is changed, except for a case that mapped page frame is used
for the buffer and userspace applications doesn't voluntarily notify
the change.

In packet-oriented drivers, this callback is useful for the timing to
queue packets for data transmission with burstness. If things works well,
reduction of latency between PCM frame queueing and actual data
transmission. This patchset is for the purpose, additionally including
minor code refactoring. 

Major use case of ALSA PCM interface is memory mapped I/O and this
patchset adds no advantage in this case due to design of the .ack
callback, as I described.

Takashi Sakamoto (2):
  ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback
  ALSA: fireface: constify ALSA specific operations

 sound/firewire/amdtp-stream.c            | 19 ++++++++++
 sound/firewire/amdtp-stream.h            |  1 +
 sound/firewire/bebob/bebob_pcm.c         | 16 +++++++++
 sound/firewire/dice/dice-pcm.c           | 18 ++++++++++
 sound/firewire/digi00x/digi00x-pcm.c     | 16 +++++++++
 sound/firewire/fireface/ff-midi.c        | 22 ++++++------
 sound/firewire/fireface/ff-pcm.c         | 62 +++++++++++++++++++-------------
 sound/firewire/fireworks/fireworks_pcm.c | 16 +++++++++
 sound/firewire/motu/motu-pcm.c           | 16 +++++++++
 sound/firewire/oxfw/oxfw-pcm.c           | 16 +++++++++
 sound/firewire/tascam/tascam-pcm.c       | 16 +++++++++
 11 files changed, 182 insertions(+), 36 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2017-06-18 12:29 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-07  0:38 [PATCH 0/3] ALSA: firewire: use .ack callback of PCM operation for packet processing Takashi Sakamoto
2017-06-07  0:38 ` [PATCH 1/2] ALSA: firewire: process packets in 'struct snd_pcm_ops.ack' callback Takashi Sakamoto
2017-06-07  5:59   ` Takashi Iwai
2017-06-07 21:20     ` Takashi Iwai
2017-06-09  3:42       ` Vinod Koul
2017-06-09  6:53         ` Takashi Iwai
2017-06-09  7:01           ` Takashi Sakamoto
2017-06-09  7:05             ` Takashi Iwai
2017-06-12 22:49       ` Takashi Sakamoto
2017-06-13 12:03         ` Takashi Iwai
2017-06-14 14:34           ` Takashi Sakamoto
2017-06-14 14:52             ` Takashi Iwai
2017-06-15  2:32               ` Takashi Sakamoto
2017-06-15  8:48                 ` Takashi Iwai
2017-06-15 17:56                   ` Takashi Sakamoto
2017-06-15 19:06                     ` Takashi Iwai
2017-06-16 15:00                       ` Takashi Sakamoto
2017-06-16 15:08                         ` Takashi Sakamoto
2017-06-16 15:45                         ` Takashi Iwai
2017-06-18 10:13                           ` Takashi Sakamoto
2017-06-18 12:29                             ` Takashi Iwai
2017-06-07  0:38 ` [PATCH 2/2] ALSA: fireface: constify ALSA specific operations Takashi Sakamoto
2017-06-07  5:59   ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).