Glitch in audio when ipod is disconnected (Vignesh Raman)

Vignesh Raman rvignesh.raman at gmail.com
Fri Sep 6 21:29:24 PDT 2013


Hi Harish,

On Fri, Sep 6, 2013 at 5:57 PM, harish jenny <harishjennykn at yahoo.com>wrote:

> Hi Vignesh,
>
> I saw your debug logs and found that the error message in the log is err
> == -ENODEV when glitch is coming and
> err = -EPIPE when glitch is not coming.
> The issue is similar to the ones mentioned in
> https://bugzilla.gnome.org/show_bug.cgi?id=690197.
> The fix added in gstreamer will make it  not loop forever if an USB/IPOD
> audio device gets disconnected while in use. It will post an error message
> instead.
>

Thanks for analyzing the logs.

As Tim mentioned only posting error message did not solve the issue. The
glitch was still seen when only that patch (alsa: post error message when
audio device disappears) was applied.

I applied all patches mentioned in bug690197 and tested the issue, the
issue was resolved. So making the ring buffer bail out also is required to
solve this issue.


> You should not be facing this issue in latest gstreamer 1.0.
> If you cannot use 1.0 , you can take the changes manually and test.
>

I manually merged the changes and tested.

Thanks.


>
>
> Thanks & Regards,
> Harish Jenny K N
>
> Message: 5
> Date: Thu, 5 Sep 2013 22:25:34 +0530
> From: Vignesh Raman <rvignesh.raman at gmail.com>
> To: gstreamer-devel at lists.freedesktop.org
> Subject: Re: Glitch in audio when ipod is disconnected
> Message-ID:
>     <CAL8k1Z5Wxa9f9mq2oUwjosSdEWgR7T6Lsx0iPuUCHYqmCp3Kjg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Tim,
>
> On Thu, 2013-09-05 at 08:21 +0530, Vignesh Raman wrote:
> >
> > > This seems to be a race condition between threads, but I'm not sure.
> >
> > Out of curiosity, what makes you suspect it's a race and not e.g. a
> > scheduling issue? (e.g. the capture thread or render thread don't get
> > scheduled for a while, causing the glitch)
> >
>
> Since its a multi threaded application, my guess was it could be a race
> condition between threads.
>
>
> >
> > Have you tried playing with the buffer sizes in sink/src?
> >
>
> The buffer-time (Size of audio buffer in microseconds) of alsa source is
> default set to 200ms. The buffer-time and actual-buffer-time of alsa source
> was changed to 23ms in the application code. The application was also not
> bound to single processor by removing 'taskset' during launching it. With
> this the audio glitch was not seen when ipod is disconnected during
> playback.
>
> But could this be solved in GStreamer, if its really a problem in GStreamer
> ?
>
> There were some patches which address some issues when usb is disconnected,
> https://bugzilla.gnome.org/show_bug.cgi?id=690197
>
> Is the issue mentioned in the bug related to the glitch issue.
>
> I'm also not getting how 'taskset' is actually solving the issue. Does the
> scheduling happen without any delay when taskset is used.
>
> Regards,
> Vignesh.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130905/832a1a75/attachment-0001.html
> >
>
> ------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> End of gstreamer-devel Digest, Vol 32, Issue 12
> ***********************************************
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 
Regards,
Vignesh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130907/8c4add1e/attachment.html>


More information about the gstreamer-devel mailing list