[pulseaudio-tickets] [PulseAudio] #839: Pulseaudio tries to rewind on ioplug devices (was: Sink wrongly unloaded or not reloaded)
PulseAudio
trac-noreply at tango.0pointer.de
Mon Jul 12 12:25:38 PDT 2010
#839: Pulseaudio tries to rewind on ioplug devices
----------------------+-----------------------------------------------------
Reporter: mcarans | Owner: lennart
Type: defect | Status: reopened
Milestone: | Component: module-alsa-*
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Changes (by tanuk):
* status: closed => reopened
* resolution: elsewhere =>
Comment:
Reopening the bug, and changing the summary. Rationale below:
Quoting Jaroslav Kysela[1]:
"The rewind/forward implementation in ioplug is actually broken, because
it moves only internal pointer without notification to real external
plugin."
So pulseaudio shouldn't try to rewind when it's using an ioplug device. I
don't know whether it's possible to query alsa about the device type -
maybe it's possible to ask if the device is an ioplug device, in which
case we could set the sink's max rewind size to zero.
Regardless of whether it's possible to query the device type, calling
snd_pcm_rewindable() before calling snd_pcm_rewind() should fix this
problem - presumably ioplug devices will always return zero from
snd_pcm_rewindable(). If that's not the case, then that will need to be
fixed in alsa.
[1] http://thread.gmane.org/gmane.linux.alsa.devel/52773
--
Ticket URL: <http://pulseaudio.org/ticket/839#comment:10>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server
More information about the pulseaudio-bugs
mailing list