alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Takashi Iwai <tiwai@suse.de>
Cc: ALSA Development Mailing List <alsa-devel@alsa-project.org>,
	General PulseAudio Discussion
	<pulseaudio-discuss@lists.freedesktop.org>
Subject: Re: [alsa-devel] [PATCH] alsa: Disable timer-scheduling for PCMs with the BATCH flag
Date: Tue, 03 Dec 2013 13:42:04 +0100	[thread overview]
Message-ID: <529DD19C.8080501@ladisch.de> (raw)
In-Reply-To: <s5hwqjm46iv.wl%tiwai@suse.de>

Takashi Iwai wrote:
> Clemens Ladisch wrote:
>> Takashi Iwai wrote:
>>> Raymond Yau wrote:
>>>> usb-audio seem update when each URB send/receive (in 1ms intervals)
>>
>> The default is to use larger intervals.
>>
>>> The usb-audio driver behaved in a BATCH way in the very early version,
>>> but it was improved.
>>
>> The delay reporting is more precise, but the DMA position still jumps
>> for each URB.
>>
>>> So we can get rid of the flag from this driver now.
>>
>> How well does timer-scheduling work with large URBs?
>
> I thought PCM runtime delay should give the accurate sample position,
> irrespective to URB size?

The position of the sample that is currently being played is accurate
(rounded to a USB frame).  The DMA position, however, changes only in
URB-sized increments.  (And that is accurate too, because it describes
exactly how the data is copied out of the buffer.)

> It should suffice for PA to control via timer scheduling.

Large jumps in the DMA position mean that there is a large part of the
buffer which cannot be safely changed by PA.  If this is why PA wants to
disable tsched, then the BATCH flag should stay.


Regards,
Clemens

  reply	other threads:[~2013-12-03 12:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1385831244-30750-1-git-send-email-lars@metafoo.de>
     [not found] ` <CAN8cciYz=ZFJNW_FNqKTceCV4S=pz3CwkbwKcTeZb4AM=7bWzw@mail.gmail.com>
     [not found]   ` <529C5980.60408@metafoo.de>
2013-12-03  0:47     ` [PATCH] alsa: Disable timer-scheduling for PCMs with the BATCH flag Raymond Yau
2013-12-03  8:24       ` [alsa-devel] " Takashi Iwai
2013-12-03  9:02         ` Clemens Ladisch
2013-12-03  9:40           ` Takashi Iwai
2013-12-03 12:42             ` Clemens Ladisch [this message]
     [not found] ` <1386327965.2937.0.camel@tkkaskin-mobl2.ger.corp.intel.com>
2013-12-09  5:23   ` [pulseaudio-discuss] " Raymond Yau
2013-12-14  6:16     ` Tanu Kaskinen

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=529DD19C.8080501@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=pulseaudio-discuss@lists.freedesktop.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).