All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Paul D. DeRocco" <pderocco@ix.netcom.com>
Cc: Alsa-devel <alsa-devel@alsa-project.org>
Subject: Re: Staying synced after underrun
Date: Tue, 15 May 2012 10:49:34 +0200	[thread overview]
Message-ID: <s5hhavhde1t.wl%tiwai@suse.de> (raw)
In-Reply-To: <D567972935594567ADE30994399E117C@PAULD>

At Tue, 15 May 2012 00:45:54 -0700,
Paul D. DeRocco wrote:
> 
> I'm writing 48KHz stereo to Intel HD audio on my mobo, and I'd like to send
> it in parallel to both the analog and S/PDIF outputs, which share a clock
> source. If I open both devices, configure them with the same buffer space,
> and write the same data with snd_pcm_writei, how should I handle an
> underrun? Call snd_pcm_prepare on both device handles? If so, and the first
> device underruns, should I bother writing the buffer to the second device?

It's no direct answer to your question, but:
Isn't the SPDIF device sent from the same codec as the analog, or it's
over a different codec?  In the former case, turning on "IEC958
Default PCM Playback Switch" mixer will send the stream both to analog
and SPDIF outs.  (When an SPDIF device was opened beforehand, this
will keep the device thus the multiplex won't happen, though.)


Takashi

      parent reply	other threads:[~2012-05-15  8:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15  7:45 Staying synced after underrun Paul D. DeRocco
2012-05-15  8:46 ` Clemens Ladisch
2012-05-15  8:49 ` Takashi Iwai [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=s5hhavhde1t.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=pderocco@ix.netcom.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.