From: Takashi Sakamoto <o-takashi@sakamocchi.jp>
To: Jaroslav Kysela <perex@perex.cz>
Cc: linux-sound@vger.kernel.org, Takashi Iwai <tiwai@suse.de>
Subject: Re: [PATCH 0/2] ALSA: pcm: reinvent the stream synchronization ID API
Date: Tue, 7 May 2024 12:04:42 +0900 [thread overview]
Message-ID: <20240507030442.GC413281@workstation.local> (raw)
In-Reply-To: <20240506151218.377580-1-perex@perex.cz>
On Mon, May 06, 2024 at 05:11:48PM +0200, Jaroslav Kysela wrote:
> Until the commit e11f0f90a626 ("ALSA: pcm: remove SNDRV_PCM_IOCTL1_INFO
> internal command"), there was a possibility to pass information
> about the synchronized streams to the user space. The mentioned
> commit removed blindly the appropriate code with an irrelevant comment.
>
> The revert may be appropriate, but since this API was lost for several
> years without any complains, it's time to improve it. The hardware
> parameters may change the used stream clock source (e.g. USB hardware)
> so move this synchronization ID to hw_params as read-only field.
>
> It seems that pipewire can benefit from this API (disable adaptive
> resampling for perfectly synchronized PCM streams) now.
>
> v1->v2:
> - remove union usage per Takashi's request
> - reduce memory usage
> - use standard ID generation scheme
>
> Jaroslav Kysela (2):
> ALSA: pcm: reinvent the stream synchronization ID API
> ALSA: pcm: optimize and clarify stream sychronization ID API
>
> include/sound/pcm.h | 18 ++++++++++++++++--
> include/uapi/sound/asound.h | 13 ++++---------
> sound/core/pcm_lib.c | 36 ++++++++++++++++++++++++++----------
> sound/core/pcm_native.c | 6 ++++++
> sound/pci/emu10k1/p16v.c | 17 ++++++++++++-----
> 5 files changed, 64 insertions(+), 26 deletions(-)
I reviewed and added some comments per each.
Anyway, we are at the last week of kernel development process. I think
it better to postpone the discussion about this kind of changes until
releasing -rc1, if people working for the task of quality assurance to
the new kernel release.
Regards
Takashi (not this subsystem maintainer) Sakamoto
prev parent reply other threads:[~2024-05-07 3:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 15:11 [PATCH 0/2] ALSA: pcm: reinvent the stream synchronization ID API Jaroslav Kysela
2024-05-06 15:11 ` [PATCH 1/2] " Jaroslav Kysela
2024-05-07 3:04 ` Takashi Sakamoto
2024-05-07 8:38 ` Jaroslav Kysela
2024-05-06 15:11 ` [PATCH 2/2] ALSA: pcm: optimize and clarify stream sychronization " Jaroslav Kysela
2024-05-07 3:04 ` Takashi Sakamoto
2024-05-07 3:04 ` Takashi Sakamoto [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=20240507030442.GC413281@workstation.local \
--to=o-takashi@sakamocchi.jp \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.de \
/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.