GNOME Bugzilla – Bug 157957
[alsa] sinesrc ! alsasink failes with nforce2 (snd-intel8x0) using dmix
Last modified: 2004-12-22 21:47:04 UTC
gst-launch-0.8 sinesrc ! alsasink fails with (after a very short beep): gst-launch-0.8: pcm.c:2094: snd_pcm_wait: Assertion `err == 1' failed. I am attaching debug logs (--gst-debug=alsa:5) and my asoundrc
Created attachment 33676 [details] my .asoundrc BTW I am running kernel 2.6.9 and alsa-lib 1.0.6
Debug logs follow: INFO (0x80508b8 - 305607:09:48.832714000) alsa(29654) gstalsa.c(1321):gst_alsa_open_audio: Opening alsa device "default"... LOG (0x80508b8 - 305607:09:48.999988000) alsa(29654) gstalsa.c(876):gst_alsa_get_caps:<alsasink0> get_caps returns audio/x-alaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-mulaw, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-raw-float, buffer-frames=(int)[ 0, 2147483647 ], width=(int){ 32, 64 }, endianness=(int)1234, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean){ false, true }, endianness=(int){ 1234, 4321 }, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-raw-int, width=(int)32, depth=(int)24, signed=(boolean){ false, true }, endianness=(int){ 1234, 4321 }, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-raw-int, width=(int)32, depth=(int)32, signed=(boolean){ false, true }, endianness=(int){ 1234, 4321 }, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-raw-int, width=(int)24, depth=(int)24, signed=(boolean){ false, true }, endianness=(int){ 1234, 4321 }, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-raw-int, width=(int)24, depth=(int)20, signed=(boolean){ false, true }, endianness=(int){ 1234, 4321 }, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-raw-int, width=(int)24, depth=(int)18, signed=(boolean){ false, true }, endianness=(int){ 1234, 4321 }, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ]; audio/x-raw-int, width=(int)8, depth=(int)8, signed=(boolean){ true, false }, rate=(int)[ 8000, 192000 ], channels=(int)[ 1, 32 ] DEBUG (0x80508b8 - 305607:09:49.001296000) alsa(29654) gstalsa.c(1019):gst_alsa_link: found format S16_LE INFO (0x80508b8 - 305607:09:49.001369000) alsa(29654) gstalsa.c(1399):gst_alsa_probe_hw_params: Probing format: S16_LE 44100Hz, 1 channels INFO (0x80508b8 - 305607:09:49.002242000) alsa(29654) gstalsa.c(1467):gst_alsa_set_hw_params: Preparing format: S16_LE 44100Hz, 1 channels LOG (0x80508b8 - 305607:09:49.004035000) alsa(29654) gstalsasink.c(386):gst_alsa_sink_loop:<alsasink0> pulled data 0x805e4b8 from pad 0 LOG (0x80508b8 - 305607:09:49.004182000) alsa(29654) gstalsasink.c(391):gst_alsa_sink_loop:<alsasink0> pulled data 0x805e4b8 is an event, checking LOG (0x80508b8 - 305607:09:49.004251000) alsa(29654) gstalsasink.c(209):gst_alsa_sink_check_event:<alsasink0> checking event 0x805e4b8 of type 16 on sink pad 0 INFO (0x80508b8 - 305607:09:49.004318000) alsa(29654) gstalsasink.c(253):gst_alsa_sink_check_event:<alsasink0> got an unknown event (Type: 16) LOG (0x80508b8 - 305607:09:49.004383000) alsa(29654) gstalsasink.c(257):gst_alsa_sink_check_event:<alsasink0> unreffing event 0x805e4b8 of type 16 with refcount 1 LOG (0x80508b8 - 305607:09:49.004593000) alsa(29654) gstalsasink.c(386):gst_alsa_sink_loop:<alsasink0> pulled data 0x805e4b8 from pad 0 LOG (0x80508b8 - 305607:09:49.004662000) alsa(29654) gstalsasink.c(391):gst_alsa_sink_loop:<alsasink0> pulled data 0x805e4b8 is an event, checking LOG (0x80508b8 - 305607:09:49.004727000) alsa(29654) gstalsasink.c(209):gst_alsa_sink_check_event:<alsasink0> checking event 0x805e4b8 of type 4 on sink pad 0 LOG (0x80508b8 - 305607:09:49.004802000) alsa(29654) gstalsasink.c(257):gst_alsa_sink_check_event:<alsasink0> unreffing event 0x805e4b8 of type 4 with refcount 1 LOG (0x80508b8 - 305607:09:49.004871000) alsa(29654) gstalsasink.c(386):gst_alsa_sink_loop:<alsasink0> pulled data 0x8063fcc from pad 0 DEBUG (0x80508b8 - 305607:09:49.005133000) alsa(29654) gstalsasink.c(163):gst_alsa_sink_flush_one_pad:<alsasink0> flushing pad 0 DEBUG (0x80508b8 - 305607:09:49.005602000) alsa(29654) gstalsasink.c(167):gst_alsa_sink_flush_one_pad:<alsasink0> unreffing gst data 0x8063fcc LOG (0x80508b8 - 305607:09:49.005853000) alsa(29654) gstalsasink.c(386):gst_alsa_sink_loop:<alsasink0> pulled data 0x8063fcc from pad 0 DEBUG (0x80508b8 - 305607:09:49.006049000) alsa(29654) gstalsasink.c(163):gst_alsa_sink_flush_one_pad:<alsasink0> flushing pad 0 DEBUG (0x80508b8 - 305607:09:49.006116000) alsa(29654) gstalsasink.c(167):gst_alsa_sink_flush_one_pad:<alsasink0> unreffing gst data 0x8063fcc LOG (0x80508b8 - 305607:09:49.006314000) alsa(29654) gstalsasink.c(386):gst_alsa_sink_loop:<alsasink0> pulled data 0x8063fcc from pad 0 DEBUG (0x80508b8 - 305607:09:49.006503000) alsa(29654) gstalsasink.c(163):gst_alsa_sink_flush_one_pad:<alsasink0> flushing pad 0 DEBUG (0x80508b8 - 305607:09:49.006569000) alsa(29654) gstalsasink.c(167):gst_alsa_sink_flush_one_pad:<alsasink0> unreffing gst data 0x8063fcc LOG (0x80508b8 - 305607:09:49.006766000) alsa(29654) gstalsasink.c(386):gst_alsa_sink_loop:<alsasink0> pulled data 0x8063fcc from pad 0 DEBUG (0x80508b8 - 305607:09:49.006844000) alsa(29654) gstalsa.c(1227):gst_alsa_start: Setting state to RUNNING DEBUG (0x80508b8 - 305607:09:49.027671000) alsa(29654) gstalsasink.c(163):gst_alsa_sink_flush_one_pad:<alsasink0> flushing pad 0 DEBUG (0x80508b8 - 305607:09:49.027801000) alsa(29654) gstalsasink.c(167):gst_alsa_sink_flush_one_pad:<alsasink0> unreffing gst data 0x8063fcc LOG (0x80508b8 - 305607:09:49.028028000) alsa(29654) gstalsasink.c(386):gst_alsa_sink_loop:<alsasink0> pulled data 0x8063fcc from pad 0 WARN (0x80508b8 - 305607:09:49.028123000) alsa(29654) pcm.c(824):snd_pcm_sw_params: alsalib error: snd_pcm_sw_params: params->avail_min problem for start_threshold
gst-launch -v produces: gst-launch-0.8 -v sinesrc ! alsasink RUNNING pipeline ... /pipeline0/sinesrc0.src: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)1 /pipeline0/alsasink0.sink: caps = audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)1 /pipeline0/sinesrc0.src: active = TRUE /pipeline0/alsasink0.sink: active = TRUE gst-launch-0.8: pcm.c:2094: snd_pcm_wait: Assertion `err == 1' failed. Aborted
*** This bug has been marked as a duplicate of 151520 ***