* Support for Synchronous Audio
@ 2015-04-17 8:07 Anoop Rajan
2015-04-17 9:07 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Anoop Rajan @ 2015-04-17 8:07 UTC (permalink / raw)
To: alsa-devel
Hi All,
My self Anoop, an audio frame work developer, but a newbie to linux ALSA.
We have requirements to play synchronous multi-room audio with very minimal node to node latency(<100 us).( Node to node latency: How much one speaker is out of sync with other). Right now we have logic in user space to synchronize the audio using time stamps derived from a common clock, but the node to node latency is over 1ms. Though I make sure that I start the PCM from user layer synchronously, the actual I2S out is out of sync(in consistent values ranging from 100 to 1ms). I beleive the un-deterministic path delay from user to ALSA buffer, big ALSA buffer(8k Samples), scheduling variances(high priority/interrupt preemption) all might have added to this increased latency.
Rather than fine tuning the above discrepancies , I was thinking about some designs to pass the audio frames with time stamps to kernel layer and to implement some logic in kernel (before pushing to DMA) to present the audio at exact stamped time to have a better node to node latency.
Before doing that I was trying to find out what ALSA supports for this requirement and from web could see various comments regarding this (proposal to snd_pcm_start_at()<http://mailman.alsa-project.org/pipermail/alsa-devel/2014-October/082091.html>) and further proposed discussions on Audio mini summit, but I couldn't find further information's on it.
Would you please guide me. Does ALSA provides some means to achieve minimal Node to Node latency? would you please provide some pointers/documents to me to understand better.
Thanks,
Anoop
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Support for Synchronous Audio
2015-04-17 8:07 Support for Synchronous Audio Anoop Rajan
@ 2015-04-17 9:07 ` Clemens Ladisch
2015-04-17 10:28 ` Anoop Rajan
0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2015-04-17 9:07 UTC (permalink / raw)
To: Anoop Rajan, alsa-devel
Anoop Rajan wrote:
> We have requirements to play synchronous multi-room audio with very
> minimal node to node latency(<100 us). [...] Though I make sure that
> I start the PCM from user layer synchronously
How? With snd_pcm_link()?
What hardware are you using?
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Support for Synchronous Audio
2015-04-17 9:07 ` Clemens Ladisch
@ 2015-04-17 10:28 ` Anoop Rajan
2015-04-18 10:36 ` Clemens Ladisch
0 siblings, 1 reply; 4+ messages in thread
From: Anoop Rajan @ 2015-04-17 10:28 UTC (permalink / raw)
To: Clemens Ladisch; +Cc: alsa-devel
Hi Clemens,
As I told we support synchronous multiroom audio, where in one speaker(master) streams the audio to others nodes(slave) over the network. Master speaker future timestamps the audio and re-transmits to all other nodes based on a common reference clock maintained. Our stack implements the logic to present the audio synchronously to ALSA monitoring the stamped time.We are not using snd_pcm_link().
We use MT-7620 SOC from Mediatek.
Thanks,
Anoop
________________________________________
From: Clemens Ladisch <clemens@ladisch.de>
Sent: 17 April 2015 14:37
To: Anoop Rajan; alsa-devel@alsa-project.org
Subject: Re: [alsa-devel] Support for Synchronous Audio
Anoop Rajan wrote:
> We have requirements to play synchronous multi-room audio with very
> minimal node to node latency(<100 us). [...] Though I make sure that
> I start the PCM from user layer synchronously
How? With snd_pcm_link()?
What hardware are you using?
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Support for Synchronous Audio
2015-04-17 10:28 ` Anoop Rajan
@ 2015-04-18 10:36 ` Clemens Ladisch
0 siblings, 0 replies; 4+ messages in thread
From: Clemens Ladisch @ 2015-04-18 10:36 UTC (permalink / raw)
To: Anoop Rajan; +Cc: alsa-devel
Anoop Rajan wrote:
> As I told we support synchronous multiroom audio, where in one speaker
> (master) streams the audio to others nodes(slave) over the network.
> Master speaker future timestamps the audio and re-transmits to all
> other nodes based on a common reference clock maintained. Our stack
> implements the logic to present the audio synchronously to ALSA
> monitoring the stamped time.We are not using snd_pcm_link().
Well, snd_pcm_link() would work only on a single computer.
> We use MT-7620 SOC from Mediatek.
What sound hardware and driver are you using?
Regards,
Clemens
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-18 10:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-17 8:07 Support for Synchronous Audio Anoop Rajan
2015-04-17 9:07 ` Clemens Ladisch
2015-04-17 10:28 ` Anoop Rajan
2015-04-18 10:36 ` Clemens Ladisch
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.