Can't pipe sound to new TI C5535 device

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Can't pipe sound to new TI C5535 device

Wes Miller
Administrator

I just received a new Texas Instruments eZdsp TMX320C5535 card.  It is primarily a USB AC97 card with additional bells and whistles.

When I hook it up to Linux or Mac and use the OS interfaces (Sound Preferences, etc.) to select it, it plays and records sound quite nicely.  Gstreamer sees it as the default sound sink and  gst-launch audiotestsrc ! alsasink works as expected.  On linux is shows up as /dev/audio1

On linux, looking with aplay I see this:

   $ aplay -l
   **** List of PLAYBACK Hardware Devices ****
   card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
     Subdevices: 1/1
     Subdevice #0: subdevice #0
   card 1: U0x4510x9010 [USB Device 0x451:0x9010], device 0: USB Audio [USB Audio]
     Subdevices: 1/1
     Subdevice #0: subdevice #0

and

   $ aplay -L
   pulse
       Playback/recording through the PulseAudio sound server
   front:CARD=Intel,DEV=0
       HDA Intel, STAC92xx Analog
       Front speakers
   surround40:CARD=Intel,DEV=0
       HDA Intel, STAC92xx Analog
       4.0 Surround output to Front and Rear speakers
   surround41:CARD=Intel,DEV=0
       HDA Intel, STAC92xx Analog
       4.1 Surround output to Front, Rear and Subwoofer speakers
   surround50:CARD=Intel,DEV=0
       HDA Intel, STAC92xx Analog
       5.0 Surround output to Front, Center and Rear speakers
   surround51:CARD=Intel,DEV=0
       HDA Intel, STAC92xx Analog
       5.1 Surround output to Front, Center, Rear and Subwoofer speakers
   surround71:CARD=Intel,DEV=0
       HDA Intel, STAC92xx Analog
       7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
   front:CARD=U0x4510x9010,DEV=0
       USB Device 0x451:0x9010, USB Audio
       Front speakers
   surround40:CARD=U0x4510x9010,DEV=0
       USB Device 0x451:0x9010, USB Audio
       4.0 Surround output to Front and Rear speakers
   surround41:CARD=U0x4510x9010,DEV=0
       USB Device 0x451:0x9010, USB Audio
       4.1 Surround output to Front, Rear and Subwoofer speakers
   surround50:CARD=U0x4510x9010,DEV=0
       USB Device 0x451:0x9010, USB Audio
       5.0 Surround output to Front, Center and Rear speakers
   surround51:CARD=U0x4510x9010,DEV=0
       USB Device 0x451:0x9010, USB Audio
       5.1 Surround output to Front, Center, Rear and Subwoofer speakers
   surround71:CARD=U0x4510x9010,DEV=0
       USB Device 0x451:0x9010, USB Audio
       7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
   iec958:CARD=U0x4510x9010,DEV=0
       USB Device 0x451:0x9010, USB Audio
       IEC958 (S/PDIF) Digital Audio Output


When I use Gstreamer 0.10.28 with it, I get the following error:


   $ gst-launch audiotestsrc ! alsasink device=hw:1,0
   Setting pipeline to PAUSED ...
   Pipeline is PREROLLING ...
   ERROR: from element /GstPipeline:pipeline0/GstAlsaSink:alsasink0: Could not get/set settings from/on resource.
   Additional debug info:
   gstalsasink.c(499): set_hwparams (): /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
   Rate doesn't match (requested 44100Hz, get 0Hz)
   ERROR: pipeline doesn't want to preroll.
   Setting pipeline to NULL ...
   Freeing pipeline ...

If I just shove some sound out to the device as seen in /dev, I do get output, sort of a choppy suare wave:

   Gst-launch audiotestsrc ! Filesink location="/dev/audio1"

What  am I missing here?  

Wesley





CONFIDENTIALITY NOTE:

This e-mail and any attachments are confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you for your cooperation.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Can't pipe sound to new TI C5535 device

Stefan Sauer
Am 12.03.2012 22:18, schrieb Wesley J. Miller:

>
> I just received a new Texas Instruments eZdsp TMX320C5535 card.  It is primarily
> a USB AC97 card with additional bells and whistles.
>
> When I hook it up to Linux or Mac and use the OS interfaces (Sound Preferences,
> etc.) to select it, it plays and records sound quite nicely.  Gstreamer sees it
> as the default sound sink and  /gst-launch audiotestsrc ! alsasink/ works as
> expected.  On linux is shows up as /dev/audio1
>
> On linux, looking with aplay I see this:
>
>    $ aplay -l
>    **** List of PLAYBACK Hardware Devices ****
>    card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
>      Subdevices: 1/1
>      Subdevice #0: subdevice #0
>    card 1: U0x4510x9010 [USB Device 0x451:0x9010], device 0: USB Audio [USB Audio]
>      Subdevices: 1/1
>      Subdevice #0: subdevice #0
>
> and
>
>    $ aplay -L
>    pulse
>        Playback/recording through the PulseAudio sound server
>    front:CARD=Intel,DEV=0
>        HDA Intel, STAC92xx Analog
>        Front speakers
>    surround40:CARD=Intel,DEV=0
>        HDA Intel, STAC92xx Analog
>        4.0 Surround output to Front and Rear speakers
>    surround41:CARD=Intel,DEV=0
>        HDA Intel, STAC92xx Analog
>        4.1 Surround output to Front, Rear and Subwoofer speakers
>    surround50:CARD=Intel,DEV=0
>        HDA Intel, STAC92xx Analog
>        5.0 Surround output to Front, Center and Rear speakers
>    surround51:CARD=Intel,DEV=0
>        HDA Intel, STAC92xx Analog
>        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
>    surround71:CARD=Intel,DEV=0
>        HDA Intel, STAC92xx Analog
>        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
>    front:CARD=U0x4510x9010,DEV=0
>        USB Device 0x451:0x9010, USB Audio
>        Front speakers
>    surround40:CARD=U0x4510x9010,DEV=0
>        USB Device 0x451:0x9010, USB Audio
>        4.0 Surround output to Front and Rear speakers
>    surround41:CARD=U0x4510x9010,DEV=0
>        USB Device 0x451:0x9010, USB Audio
>        4.1 Surround output to Front, Rear and Subwoofer speakers
>    surround50:CARD=U0x4510x9010,DEV=0
>        USB Device 0x451:0x9010, USB Audio
>        5.0 Surround output to Front, Center and Rear speakers
>    surround51:CARD=U0x4510x9010,DEV=0
>        USB Device 0x451:0x9010, USB Audio
>        5.1 Surround output to Front, Center, Rear and Subwoofer speakers
>    surround71:CARD=U0x4510x9010,DEV=0
>        USB Device 0x451:0x9010, USB Audio
>        7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
>    iec958:CARD=U0x4510x9010,DEV=0
>        USB Device 0x451:0x9010, USB Audio
>        IEC958 (S/PDIF) Digital Audio Output
>
>
> When I use Gstreamer 0.10.28 with it, I get the following error:
>
>
>    $ gst-launch audiotestsrc ! alsasink device=hw:1,0


Does gst-launch audiotestsrc ! audioresample ! alsasink device=hw:1,0 work?

>    Setting pipeline to PAUSED ...
>    Pipeline is PREROLLING ...
>    ERROR: from element /GstPipeline:pipeline0/GstAlsaSink:alsasink0: Could not
> get/set settings from/on resource.
>    Additional debug info:
>    gstalsasink.c(499): set_hwparams ():
> /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
>    Rate doesn't match (requested 44100Hz, get 0Hz)

I guess it only support 48000, you could also try this to confirm:

gst-launch audiotestsrc ! audio/x-raw-int,rate=48000 ! alsasink device=hw:1,0

Stefan

>    ERROR: pipeline doesn't want to preroll.
>    Setting pipeline to NULL ...
>    Freeing pipeline ...
>
> If I just shove some sound out to the device as seen in /dev, I do get output,
> sort of a choppy suare wave:
>
>    Gst-launch audiotestsrc ! Filesink location="/dev/audio1"
>
> What  am I missing here?  
>
> Wesley
>
>
>
>
> --------------------------------------------------------------------------------
> CONFIDENTIALITY NOTE:
>
> This e-mail and any attachments are confidential. If you are not the intended
> recipient, be aware that any disclosure, copying, distribution or use of this
> e-mail or any attachment is prohibited. If you have received this e-mail in
> error, please notify us immediately by returning it to the sender and delete
> this copy from your system. Thank you for your cooperation.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Can't pipe sound to new TI C5535 device

Tim-Philipp Müller-2
In reply to this post by Wes Miller
On Mon, 2012-03-12 at 17:18 -0400, Wesley J. Miller wrote:

Hi,

>    gstalsasink.c(499): set_hwparams
> (): /GstPipeline:pipeline0/GstAlsaSink:alsasink0:
>    Rate doesn't match (requested 44100Hz, get 0Hz)

There are some patches in git (and the latest -base release, 0.10.36)
that might fix this:

http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/ext/alsa?id=8d29fe88345621032b277c0a21afdf94bb8e09fd
http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/ext/alsa?id=361f2b169cacc92699c8a4acb55e27ef29afc113

Cheers
 -Tim


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Can't pipe sound to new TI C5535 device

Wes Miller
Administrator
Stefan and Tim-Phillip,

Sorry for the long delay in responding.  Pesky managers; always wanting you to do something else....

Anyway, Stefan,

     gst-launch audiotestsrc ! audioresample ! alsasink device=hw:1,0

also fails with the same mismatched speed error.  I suspect I need to use Tim-Phillip's approach and update from 10.28 to 10.36.  I was hoping to avoid a complete rebuild of gst, base, good, bad, ugly, etc. but the default apt  version for 10.04 Ubuntu is 10.28 and the latest install packages at the developer's apt repository is 10.35.  

So, since I have no idea how to use a patch in a git, is it possible to install the 10.35 release and then patch/build  just the src for whatever needs patched?  

Thanks,

Wes
Reply | Threaded
Open this post in threaded view
|

Re: Can't pipe sound to new TI C5535 device

Stefan Sauer
On 03/27/2012 07:38 PM, Wes Miller wrote:

> Stefan and Tim-Phillip,
>
> Sorry for the long delay in responding.  Pesky managers; always wanting you
> to do something else....
>
> Anyway, Stefan,
>
>      gst-launch audiotestsrc ! audioresample ! alsasink device=hw:1,0
>
> also fails with the same mismatched speed error.  I suspect I need to use
> Tim-Phillip's approach and update from 10.28 to 10.36.  I was hoping to
> avoid a complete rebuild of gst, base, good, bad, ugly, etc. but the default
> apt  version for 10.04 Ubuntu is 10.28 and the latest install packages at
> the developer's apt repository is 10.35.  
>
> So, since I have no idea how to use a patch in a git, is it possible to
> install the 10.35 release and then patch/build  just the src for whatever
> needs patched?  
if the element in question is not using any API from a newer gstreamer
core (or any of the base libraries), you can of course just copy the
diff the version you are using against the latest version in git and use
that as a patch in your build. This might be appropriate if you are
getting close to a product release. Otherwise I would recommend to
update the libraries instead.

Stefan

> Thanks,
>
> Wes
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Can-t-pipe-sound-to-new-TI-C5535-device-tp4467434p4509621.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel