All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eliot Blennerhassett <linux@audioscience.com>
To: alsa-devel@alsa-project.org
Subject: linked streams question
Date: Thu, 05 Jul 2007 19:53:36 +1200	[thread overview]
Message-ID: <200707051953.36150.linux@audioscience.com> (raw)

Greetings,

I'm adding linked stream support to my driver (asihpi), and having some 
trouble with the end of playback.

What happens is that the slave streams never transition to SETUP state at the 
end of playback.
(Eg playing 4 channel wav file to 2 linked stereo streams with aplay).

The master stream reaches snd_pcm_drain_done() which then causes 
trigger(stop),  resulting in all linked streams being stopped.
But only the master state is set to SETUP

However, now the slave streams are stopped,  period_elapsed() is not called 
for a final time to (I assme) cause them to transition to the SETUP state.
Eventually I get "playback drain error (DMA or IRQ trouble?)\n"

My workaround is to set the state of each substream to SETUP in the 
trigger-stop operator, but no other driver needs to do this so I think it is 
probably the wrong solution - maybe misses some other cleanup code?  

Any suggestions on the proper way to handle this?

regards

Eliot

             reply	other threads:[~2007-07-05  7:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-05  7:53 Eliot Blennerhassett [this message]
2007-07-06  9:20 ` linked streams question 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=200707051953.36150.linux@audioscience.com \
    --to=linux@audioscience.com \
    --cc=alsa-devel@alsa-project.org \
    /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.