All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: alsa-devel@alsa-project.org, clemens@ladisch.de
Subject: Re: [PATCH] ALSA: firewire-lib: support NO_PERIOD_WAKEUP in ALSA PCM runtime
Date: Fri, 28 May 2021 11:07:48 +0200	[thread overview]
Message-ID: <s5hzgwf4463.wl-tiwai@suse.de> (raw)
In-Reply-To: <20210527123253.174315-1-o-takashi@sakamocchi.jp>

On Thu, 27 May 2021 14:32:53 +0200,
Takashi Sakamoto wrote:
> 
> Drivers of ALSA firewire stack can process packets for IT/IR context in
> process context when the process operates ALSA PCM character device by
> calling ioctl(2) with some requests. The ioctl requests are:
> 
>  * SNDRV_PCM_IOCTL_HWSYNC
>  * SNDRV_PCM_IOCTL_SYNC_PTR
>  * SNDRV_PCM_IOCTL_REWIND
>  * SNDRV_PCM_IOCTL_FORWARD
>  * SNDRV_PCM_IOCTL_WRITEI_FRAMES
>  * SNDRV_PCM_IOCTL_READI_FRAMES
>  * SNDRV_PCM_IOCTL_WRITEN_FRAMES
>  * SNDRV_PCM_IOCTL_READN_FRAMES
> 
> This means that general application can process PCM frames apart from
> hardware IRQ invocation, even if they are programmed by either IRQ-based
> scheduling model or Timer-based scheduling model.
> 
> This commit add support for Timer-based scheduling model by allowing
> PCM runtime to suppress both process wakeup per period and scheduling
> hardware IRQ.
> 
> SNDRV_PCM_INFO_BATCH is obsoleted since ALSA IEC 61883-1/6 packet streaming
> engine can report the number of transferred PCM frames within PCM period
> boundary. The granularity equals to SYT_INTERVAL in blocking transmission.
> In non-blocking transmission, it doesn't equal to SYT_INTERVAL but doesn't
> exceed.
> 
> This patch is tested with PulseAudio, and --sched-model option of axfer
> with fix against the issue reported at:
> 
>  * https://lore.kernel.org/alsa-devel/687f9871-7484-1370-04d1-9c968e86f72b@linux.intel.com/#r
> 
> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>

Thanks, applied.


Takashi

      reply	other threads:[~2021-05-28  9:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27 12:32 [PATCH] ALSA: firewire-lib: support NO_PERIOD_WAKEUP in ALSA PCM runtime Takashi Sakamoto
2021-05-28  9:07 ` Takashi Iwai [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hzgwf4463.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    --cc=o-takashi@sakamocchi.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.