* error in snd_pcm_drain()
@ 2007-07-05 7:37 Eliot Blennerhassett
2007-07-05 15:32 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Eliot Blennerhassett @ 2007-07-05 7:37 UTC (permalink / raw)
To: alsa-devel
Maybe an error in snd_pcm_drain - not sure what effect it might have...
snd_pcm_group_for_each_entry(s, substream) {
runtime = s->runtime;
...
}
up_read(&snd_pcm_link_rwsem);
snd_pcm_stream_lock_irq(substream);
/* pcm_native.c around line 1491: */
/* error? runtime has been changed by group_for_each
should use substream->runtime instead?
*/
/* resume pause */
if (runtime->status->state == SNDRV_PCM_STATE_PAUSED)
snd_pcm_pause(substream, 0);
--
Eliot
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: error in snd_pcm_drain()
2007-07-05 7:37 error in snd_pcm_drain() Eliot Blennerhassett
@ 2007-07-05 15:32 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2007-07-05 15:32 UTC (permalink / raw)
To: Eliot Blennerhassett; +Cc: alsa-devel
At Thu, 05 Jul 2007 19:37:41 +1200,
Eliot Blennerhassett wrote:
>
> Maybe an error in snd_pcm_drain - not sure what effect it might have...
>
> snd_pcm_group_for_each_entry(s, substream) {
> runtime = s->runtime;
> ...
> }
> up_read(&snd_pcm_link_rwsem);
> snd_pcm_stream_lock_irq(substream);
>
> /* pcm_native.c around line 1491: */
> /* error? runtime has been changed by group_for_each
> should use substream->runtime instead?
> */
Maybe a bit safer, but in the end it's same because the status of
linked streams should be identical.
Takashi
>
> /* resume pause */
> if (runtime->status->state == SNDRV_PCM_STATE_PAUSED)
> snd_pcm_pause(substream, 0);
>
>
> --
> Eliot
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-05 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-05 7:37 error in snd_pcm_drain() Eliot Blennerhassett
2007-07-05 15:32 ` Takashi Iwai
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.