gstreamer 0.10 : High CPU utilization when alsasrc is disconnected

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gstreamer 0.10 : High CPU utilization when alsasrc is disconnected

1,101 Views
karthikuppund
Contributor I

Hi,

I am observing high CPU utilization (~78%) when alsasrc is disconnected. Particularly audiosrc-ring buffer is shooting high. I am using iphone as alsa device.

Below is the pipeline I am running on imx6 board:

gst-launch-0.10 alsasrc device=hw:x,y ! audiconveert ! audioresample ! autoaudiosink

Steps to reproduce:

  1. run gst-launch-0.10 alsasrc device=hw:x,y ! audiconveert ! audioresample ! autoaudiosink
  2. disconnect alsasrc ( iphone in my case)
  3. run top -p <PID of gst-launch-0.10>H

Frequency of reproducibility :ALWAYS

This issue is not observed in gstreamer 1.0. The audiosrc-ring buffer vanishes as soon as alsasrc is disconnected in gstreamer 1.0

Labels (6)
Tags (2)
0 Kudos
Reply
1 Reply

764 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Looks like a bug in alsasrc - perhaps it makes sense to try

the recent BSP or use the gstreamer 1.0

http://www.freescale.com/webapp/Download?colCode=L3.14.38_6UL_LINUX_DOCS&Parent_nodeId=1337699481071...


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply