All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH alsa-lib 00/12] pcm: hw: optimization for v2.0.14 of PCM protocol/interface
@ 2017-06-29 23:58 Takashi Sakamoto
  2017-06-29 23:58 ` [PATCH alsa-lib 01/12] pcm: hw: fix to initialize function local variable Takashi Sakamoto
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Takashi Sakamoto @ 2017-06-29 23:58 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel

Hi,

This patchset is an optimization for version 2.0.14 of ALSA PCM
protocol/interface.

In this version, for some devices/drivers, applications are disallowed
to map control data of runtime of PCM substream. On the other hand,
mapping status data is still available.

In current implementation of alsa-lib, execution of ioctl(2) with
SNDRV_PCM_IOCTL_SYNC_PTR is still done without enough care of the
change. For example, even if status data is successfully mapped,
the ioctl is executed to query the status data. This is inefficient.

This patchset is to arrange the execution.

Takashi Sakamoto (12):
  pcm: hw: fix to initialize function local variable
  pcm: hw: add a helper function just to query status/control data of
    PCM substream
  pcm: hw: use heler function to query status/control data after
    reading/writing PCM frames
  pcm: hw: use helper function to query status/control data after
    HW_PARAMS call
  pcm: hw: use helper function to query status/control data after
    PREPARE/RESET call
  pcm: hw: use helper function to query status/control data after
    REWIND/FORWARD call
  pcm: hw: use helper function to query status/control data for
    calculation of available space on PCM buffer
  pcm: hw: add a helper function to request hwsync without side-effects
  pcm: hw: add a helper function to issue appl_ptr without sub-effects
  pcm: hw: add a helper function to issue avail_min without sub-effects
  pcm: hw: remove superfluous code to call of SNDRV_PCM_IOCTL_SYNC_PTR
    in snd_pcm_hw_forward()
  pcm: hw: minor refactoring for initialization of control data

 src/pcm/pcm_hw.c | 109 ++++++++++++++++++++++++++++++++++++++-----------------
 1 file changed, 75 insertions(+), 34 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2017-06-30  6:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29 23:58 [PATCH alsa-lib 00/12] pcm: hw: optimization for v2.0.14 of PCM protocol/interface Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 01/12] pcm: hw: fix to initialize function local variable Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 02/12] pcm: hw: add a helper function just to query status/control data of PCM substream Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 03/12] pcm: hw: use heler function to query status/control data after reading/writing PCM frames Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 04/12] pcm: hw: use helper function to query status/control data after HW_PARAMS call Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 05/12] pcm: hw: use helper function to query status/control data after PREPARE/RESET call Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 06/12] pcm: hw: use helper function to query status/control data after REWIND/FORWARD call Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 07/12] pcm: hw: use helper function to query status/control data for calculation of available space on PCM buffer Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 08/12] pcm: hw: add a helper function to request hwsync without side-effects Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 09/12] pcm: hw: add a helper function to issue appl_ptr without sub-effects Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 10/12] pcm: hw: add a helper function to issue avail_min " Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 11/12] pcm: hw: remove superfluous code to call of SNDRV_PCM_IOCTL_SYNC_PTR in snd_pcm_hw_forward() Takashi Sakamoto
2017-06-29 23:58 ` [PATCH alsa-lib 12/12] pcm: hw: minor refactoring for initialization of control data Takashi Sakamoto
2017-06-30  6:43 ` [PATCH alsa-lib 00/12] pcm: hw: optimization for v2.0.14 of PCM protocol/interface Takashi Sakamoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.