All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: David Henningsson <david.henningsson@canonical.com>
Cc: 'ALSA Development Mailing List' <alsa-devel@alsa-project.org>,
	Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: Re: USB Audio questions
Date: Tue, 16 Aug 2011 08:47:04 +0200	[thread overview]
Message-ID: <4E4A1268.9030003@ladisch.de> (raw)
In-Reply-To: <4E4A008D.60907@canonical.com>

David Henningsson wrote:
> On 08/15/2011 10:31 PM, Pierre-Louis Bossart wrote:
> > - Increasing the number of packets/urbs solves my power issue but not the
> > synchronization issue. If I reduce the number of urbs to reduce the
> > interrupt rate, then the accuracy of the hw_pointer is decreased big time
> > and it becomes difficult to synchronize with video.
> 
> I think the same thing is a problem for quite a few other devices as
> well

Yes; sometimes, the period interrupt is the only information from which
the driver can derive the position.

> I wonder if we need some kind of "pointer granularity" variable
> to be exported through the ALSA API?

This is certainly possible, and by putting it into the hw_params, it
would be possible to model any dependencies between granularity and
period size.  However, this isn't quite at the top of my steadily-growing
ToDo list.

> a call to hw_pointer could return hw_pointer and time,

After calling snd_pcm_status(), you have snd_pcm_status_get_avail() and
snd_pcm_status_get_(h)tstamp().

> and then PulseAudio etc could use that for extrapolation

IIRC PA does exactly this if it detects that the pointer values don't
increase smoothly.


Regards,
Clemens

  reply	other threads:[~2011-08-16  6:47 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15 18:15 [PATCH 1/4] ASoC: DAPM: Allow multiple mixer sources to be routed via the same switch Lars-Peter Clausen
2011-08-15 18:15 ` Lars-Peter Clausen
2011-08-15 18:15 ` [PATCH 2/4] ASoC: Add ADAU1373 codec support Lars-Peter Clausen
2011-08-15 20:31   ` USB Audio questions Pierre-Louis Bossart
     [not found]   ` <4e498227.854fdf0a.0dd4.6281SMTPIN_ADDED@mx.google.com>
2011-08-15 20:55     ` Daniel Mack
2011-08-15 21:48       ` Pierre-Louis Bossart
     [not found]   ` <000001cc5b8a$4a6577c0$df306740$@bossart@linux.intel.com>
2011-08-16  5:30     ` David Henningsson
2011-08-16  6:47       ` Clemens Ladisch [this message]
2011-08-16  6:37     ` Clemens Ladisch
2011-08-16  7:30       ` Daniel Mack
2011-08-16 15:46         ` Clemens Ladisch
2011-08-16 15:38       ` Pierre-Louis Bossart
     [not found]       ` <20110816145353.GB5233@xanatos>
2011-08-16 15:44         ` Pierre-Louis Bossart
     [not found]       ` <000601cc5c2a$87a26350$96e729f0$@bossart@linux.intel.com>
2011-08-16 16:09         ` Clemens Ladisch
2011-08-16 17:19           ` Pierre-Louis Bossart
     [not found]           ` <000001cc5c38$b07abee0$11703ca0$@bossart@linux.intel.com>
2011-08-17  6:29             ` Clemens Ladisch
2011-08-17 15:21               ` Pierre-Louis Bossart
2011-08-19 22:02               ` Pierre-Louis Bossart
2011-08-16 20:41         ` Torsten Schenk
2011-08-16 22:11           ` Pavel Hofman
2011-08-17  6:36             ` Clemens Ladisch
     [not found]           ` <000001cc5c5a$e7d5c3e0$b7814ba0$@bossart@linux.intel.com>
2011-08-16 22:13             ` Torsten Schenk
2011-08-16 15:54   ` [PATCH 2/4] ASoC: Add ADAU1373 codec support Mark Brown
2011-08-16 15:54     ` Mark Brown
2011-08-15 18:15 ` [PATCH 3/4] ASoC: Blackfin: ADAU1373 eval board support Lars-Peter Clausen
2011-08-15 18:15   ` Lars-Peter Clausen
2011-08-16 15:54   ` Mark Brown
2011-08-16 15:54     ` Mark Brown
2011-08-15 18:15 ` [PATCH 4/4] Blackfin: bf537: Stamp: Register ASoC EVAL-ADAU1373 board driver Lars-Peter Clausen
2011-08-15 18:15   ` Lars-Peter Clausen
2011-08-16 15:56   ` Mark Brown
2011-08-16 15:56     ` Mark Brown
2011-08-18 13:52     ` Lars-Peter Clausen
2011-08-18 13:52       ` Lars-Peter Clausen
2011-08-15 23:25 ` [PATCH 1/4] ASoC: DAPM: Allow multiple mixer sources to be routed via the same switch Mark Brown

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=4E4A1268.9030003@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=david.henningsson@canonical.com \
    --cc=pierre-louis.bossart@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.