From: Jaroslav Kysela <perex@perex.cz>
To: Vinod Koul <vinod.koul@linux.intel.com>
Cc: tiwai@suse.de, alsa-devel@alsa-project.org,
broonie@opensource.wolfsonmicro.com, lrg@ti.com
Subject: Re: [PATCH v3 0/3] introduce device_buffer
Date: Fri, 31 Aug 2012 12:41:32 +0200 [thread overview]
Message-ID: <504094DC.1060003@perex.cz> (raw)
In-Reply-To: <1346375684-4145-1-git-send-email-vinod.koul@linux.intel.com>
Date 31.8.2012 03:14, Vinod Koul wrote:
> Old wine in a new bottle with added flavour now.
> Based on our discussions in LPC, now we will report the combined delay value as
> sum of the buffering done in driver and hardware. This is used to report delay
> Additionally we tell pcm what is buffer in device/driver, this is used to check
> for error calulcations
I'm afraid, but this won't work for the mmaped appl_ptr / hw_ptr,
because the checks are done outside the kernel - in alsa-lib. I believe
that this API should be enhanced, too. But the question is, how to pass
two values (hwptr, device_buffer) atomically to the user space without
locks for x86.
Jaroslav
>
> Vinod Koul (3):
> ALSA: pcm - introduce device_buffer
> ASoC: add device_buffer in asoc
> ASoC: mid-x86 - implement buffer query in sst_platform driver
>
> include/sound/pcm.h | 1 +
> include/sound/soc-dai.h | 6 ++++++
> include/sound/soc.h | 6 ++++++
> sound/core/pcm_lib.c | 10 +++++++++-
> sound/soc/mid-x86/sst_platform.c | 23 +++++++++++++++++++++++
> sound/soc/mid-x86/sst_platform.h | 4 +++-
> sound/soc/soc-pcm.c | 13 ++++++++++++-
> 7 files changed, 60 insertions(+), 3 deletions(-)
>
--
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project; Red Hat, Inc.
next prev parent reply other threads:[~2012-08-31 10:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-31 1:14 [PATCH v3 0/3] introduce device_buffer Vinod Koul
2012-08-31 1:14 ` [PATCH 1/3] ALSA: pcm - " Vinod Koul
2012-08-31 2:06 ` Raymond Yau
2012-08-31 15:05 ` Vinod Koul
2012-08-31 10:48 ` Jaroslav Kysela
2012-08-31 15:02 ` Vinod Koul
2012-08-31 1:14 ` [PATCH 2/3] ASoC: add device_buffer in asoc Vinod Koul
2012-08-31 1:14 ` [PATCH 3/3] ASoC: mid-x86 - implement buffer query in sst_platform driver Vinod Koul
2012-08-31 10:41 ` Jaroslav Kysela [this message]
2012-08-31 14:53 ` [PATCH v3 0/3] introduce device_buffer Vinod Koul
2012-09-04 14:24 ` Takashi Iwai
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=504094DC.1060003@perex.cz \
--to=perex@perex.cz \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@ti.com \
--cc=tiwai@suse.de \
--cc=vinod.koul@linux.intel.com \
/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.