Hello community, here is the log from the commit of package alsa-plugins checked in at Sat Aug 2 02:24:23 CEST 2008. -------- --- alsa-plugins/alsa-plugins.changes 2008-07-16 15:47:41.000000000 +0200 +++ alsa-plugins/alsa-plugins.changes 2008-08-02 02:21:49.735559000 +0200 @@ -1,0 +2,5 @@ +Mon Jul 28 18:18:48 CEST 2008 - tiwai@suse.de + +- fix silent output of short streams (bnc#409645) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ alsa-plugins-a52.spec ++++++ --- /var/tmp/diff_new_pack.k26730/_old 2008-08-02 02:22:04.000000000 +0200 +++ /var/tmp/diff_new_pack.k26730/_new 2008-08-02 02:22:04.000000000 +0200 @@ -17,7 +17,7 @@ Url: http://www.alsa-project.org/ Summary: A52 Encoding Plug-In for the ALSA Library Version: 1.0.17 -Release: 2 +Release: 12 License: GPL v2 or later; LGPL v2.1 or later Group: System/Libraries AutoReqProv: on ++++++ alsa-plugins.spec ++++++ --- /var/tmp/diff_new_pack.k26730/_old 2008-08-02 02:22:04.000000000 +0200 +++ /var/tmp/diff_new_pack.k26730/_new 2008-08-02 02:22:04.000000000 +0200 @@ -17,7 +17,7 @@ Url: http://www.alsa-project.org/ Summary: Extra Plug-Ins for the ALSA Library Version: 1.0.17 -Release: 2 +Release: 14 License: BSD 3-Clause; LGPL v2.1 or later Group: System/Libraries AutoReqProv: on @@ -164,6 +164,8 @@ %{_libdir}/alsa-lib/libasound_module_rate_samplerate*.so %changelog +* Mon Jul 28 2008 tiwai@suse.de +- fix silent output of short streams (bnc#409645) * Wed Jul 16 2008 tiwai@suse.de - don't use assert() for sanity checks (bnc#409532) * Tue Jul 15 2008 tiwai@suse.de ++++++ alsa-plugins-git-fixes.diff ++++++ --- /var/tmp/diff_new_pack.k26730/_old 2008-08-02 02:22:04.000000000 +0200 +++ /var/tmp/diff_new_pack.k26730/_new 2008-08-02 02:22:04.000000000 +0200 @@ -1,8 +1,19 @@ diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c -index e4a6232..efff509 100644 +index e4a6232..7edd157 100644 --- a/pulse/pcm_pulse.c +++ b/pulse/pcm_pulse.c -@@ -83,7 +83,10 @@ static int pulse_start(snd_pcm_ioplug_t *io) +@@ -67,8 +67,8 @@ static void update_ptr(snd_pcm_pulse_t *pcm) + static int pulse_start(snd_pcm_ioplug_t *io) + { + snd_pcm_pulse_t *pcm = io->private_data; +- pa_operation *o; +- int err = 0; ++ pa_operation *o, *u; ++ int err = 0, err_o = 0, err_u = 0; + + assert(pcm); + assert(pcm->p); +@@ -83,13 +83,25 @@ static int pulse_start(snd_pcm_ioplug_t *io) goto finish; o = pa_stream_cork(pcm->stream, 0, pulse_stream_success_cb, pcm->p); @@ -12,9 +23,26 @@ + goto finish; + } - err = pulse_wait_operation(pcm->p, o); - -@@ -122,7 +125,10 @@ static int pulse_stop(snd_pcm_ioplug_t *io) +- err = pulse_wait_operation(pcm->p, o); ++ u = pa_stream_trigger(pcm->stream, pulse_stream_success_cb, pcm->p); ++ if (!u) { ++ pa_operation_unref(o); ++ err = -EIO; ++ goto finish; ++ } ++ ++ err_o = pulse_wait_operation(pcm->p, o); ++ err_u = pulse_wait_operation(pcm->p, u); + + pa_operation_unref(o); ++ pa_operation_unref(u); + +- if (err < 0) { ++ if (err_o < 0 || err_u < 0) { + err = -EIO; + goto finish; + } else +@@ -122,7 +134,10 @@ static int pulse_stop(snd_pcm_ioplug_t *io) goto finish; o = pa_stream_flush(pcm->stream, pulse_stream_success_cb, pcm->p); @@ -26,7 +54,7 @@ err = pulse_wait_operation(pcm->p, o); -@@ -134,7 +140,10 @@ static int pulse_stop(snd_pcm_ioplug_t *io) +@@ -134,7 +149,10 @@ static int pulse_stop(snd_pcm_ioplug_t *io) } o = pa_stream_cork(pcm->stream, 1, pulse_stream_success_cb, pcm->p); @@ -38,7 +66,7 @@ err = pulse_wait_operation(pcm->p, o); -@@ -169,7 +178,10 @@ int pulse_drain(snd_pcm_ioplug_t *io) +@@ -169,7 +187,10 @@ int pulse_drain(snd_pcm_ioplug_t *io) goto finish; o = pa_stream_drain(pcm->stream, pulse_stream_success_cb, pcm->p); @@ -50,3 +78,21 @@ err = pulse_wait_operation(pcm->p, o); +@@ -531,7 +552,7 @@ static int pulse_hw_params(snd_pcm_ioplug_t *io, snd_pcm_hw_params_t *params) + break; + } + } +- ++ + pa_threaded_mainloop_lock(pcm->p->mainloop); + + pcm->frame_size = (snd_pcm_format_physical_width(io->format) * io->channels) / 8; +@@ -749,7 +770,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(pulse) + pcm->io.callback = stream == SND_PCM_STREAM_PLAYBACK ? + &pulse_playback_callback : &pulse_capture_callback; + pcm->io.private_data = pcm; +- ++ + err = snd_pcm_ioplug_create(&pcm->io, name, stream, mode); + if (err < 0) + goto error; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org