GNOME Bugzilla – Bug 518474
[oss] caps probing issue with SigmaTel STAC9721
Last modified: 2012-10-23 16:51:28 UTC
GST_DEBUG="*:2,oss*:5" GST_DEBUG_NO_COLOR=1 gst-launch >debug.log 2>&1 osssrc ! osssink see attached log
Created attachment 105865 [details] debug log
Created attachment 105866 [details] [review] add more logging DO we somehow need to reset the state. The first rate check fails with "unsupported rate", all further already fail when setting the format. 0:00:00.265620930 28361 0x804f050 INFO oss gstossmixer.c:86:gst_ossmixer_open: Card name = SigmaTel STAC9721,23 0:00:00.265681440 28361 0x804f050 INFO oss gstossmixer.c:93:gst_ossmixer_open: Opened mixer for device /dev/mixer 0:00:00.265843513 28361 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 1000 0:00:00.266810959 28361 0x804f050 DEBUG oss gstosshelper.c:366:gst_oss_helper_rate_check_rate: unsupported rate 0:00:00.266873196 28361 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 100000 0:00:00.267346665 28361 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format 0:00:00.267394334 28361 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 48000 0:00:00.267860222 28361 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format 0:00:00.267907675 28361 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 8000 0:00:00.268382764 28361 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format 0:00:00.268429919 28361 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 48000 0:00:00.268950817 28361 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format 0:00:00.268999647 28361 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error
Does this also happen with osssrc ! fakesink or audiotestsrc ! audioconvert ! osssink, or only when using both together in a pipeline?
> GST_DEBUG="*:2,oss*:5" GST_DEBUG_NO_COLOR=1 gst-launch osssrc ! fakesink 0:00:00.067777541 10605 0x804f050 DEBUG oss gstossaudio.c:49:plugin_init: binding text domain gst-plugins-good-0.10 to locale dir /usr/share/locale 0:00:00.068061427 10605 0x804f050 DEBUG oss gstosssrc.c:237:gst_oss_src_init: initializing osssrc 0:00:00.082553723 10605 0x804f050 DEBUG oss gstosssrc.c:267:gst_oss_src_getcaps:<osssrc0> device not open, using template caps Setting pipeline to PAUSED ... 0:00:00.088340173 10605 0x804f050 INFO oss gstossmixer.c:86:gst_ossmixer_open: Card name = SigmaTel STAC9721,23 0:00:00.088433201 10605 0x804f050 INFO oss gstossmixer.c:93:gst_ossmixer_open: Opened mixer for device /dev/mixer 0:00:00.088582125 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 1000 0:00:00.091036202 10605 0x804f050 DEBUG oss gstosshelper.c:366:gst_oss_helper_rate_check_rate: unsupported rate: 1000 (1000) 0:00:00.091164678 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 100000 0:00:00.091708476 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 128 (128) 0:00:00.091766358 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 48000 0:00:00.092643762 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 128 (128) 0:00:00.092738601 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 8000 0:00:00.092919675 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 128 (128) 0:00:00.092970497 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 48000 0:00:00.093122614 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 128 (128) 0:00:00.093171941 10605 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error 0:00:00.093221951 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 1000 0:00:00.093372836 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.093421381 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 100000 0:00:00.093571244 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.093619647 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 48000 0:00:00.093769026 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.093817524 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 8000 0:00:00.093966825 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.094015239 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 48000 0:00:00.094164425 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.094212966 10605 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error 0:00:00.094259960 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 1000 0:00:00.094409801 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.094458282 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 100000 0:00:00.094607630 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.094660693 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 48000 0:00:00.095023241 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.095040686 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 8000 0:00:00.095160730 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.095250592 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 48000 0:00:00.095364198 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.095376071 10605 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error 0:00:00.095388019 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 1000 0:00:00.095618809 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.095630893 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 100000 0:00:00.095742721 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.095754431 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 48000 0:00:00.095865902 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.095877921 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 8000 0:00:00.096065046 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.096079888 10605 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 48000 0:00:00.096193286 10605 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.096205121 10605 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error 0:00:00.096216171 10605 0x804f050 WARN oss gstosshelper.c:159:gst_oss_helper_probe_caps: Your OSS device could not be probed correctly 0:00:00.096225757 10605 0x804f050 DEBUG oss gstosshelper.c:162:gst_oss_helper_probe_caps: probed caps: EMPTY 0:00:00.097286922 10605 0x804f050 INFO oss gstosssrc.c:282:gst_oss_src_getcaps:<osssrc0> returning caps EMPTY 0:00:00.097331012 10605 0x804f050 WARN basesrc gstbasesrc.c:2447:gst_base_src_start:<osssrc0> error: Could not negotiate format 0:00:00.097343196 10605 0x804f050 WARN basesrc gstbasesrc.c:2447:gst_base_src_start:<osssrc0> error: Check your filtered caps, if any 0:00:00.097401768 10605 0x804f050 WARN basesrc gstbasesrc.c:2643:gst_base_src_activate_push:<osssrc0> Failed to start in push mode 0:00:00.097414871 10605 0x804f050 WARN GST_PADS gstpad.c:684:gst_pad_set_active:<osssrc0:src> Failed to activate pad ERROR: Pipeline doesn't want to pause. FEHLER: Von Element /pipeline0/osssrc0: Could not negotiate format
> GST_DEBUG="*:2,oss*:5" GST_DEBUG_NO_COLOR=1 gst-launch audiotestsrc ! audioconvert ! osssink 0:00:00.075346885 10614 0x804f050 DEBUG oss gstossaudio.c:49:plugin_init: binding text domain gst-plugins-good-0.10 to locale dir /usr/share/locale 0:00:00.075606568 10614 0x804f050 DEBUG oss gstosssink.c:242:gst_oss_sink_init:<GstOssSink@0x81a2048> initializing osssink Setting pipeline to PAUSED ... 0:00:00.079153338 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 1000 0:00:00.080456194 10614 0x804f050 DEBUG oss gstosshelper.c:366:gst_oss_helper_rate_check_rate: unsupported rate: 1000 (1000) 0:00:00.080570476 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 100000 0:00:00.080847586 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 128 (128) 0:00:00.080899423 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 48000 0:00:00.081054271 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 128 (128) 0:00:00.081103883 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 8000 0:00:00.081257189 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 128 (128) 0:00:00.081305746 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 128, channels 2, rate 48000 0:00:00.081457956 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 128 (128) 0:00:00.081506040 10614 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error 0:00:00.081812182 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 1000 0:00:00.082073654 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.082127181 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 100000 0:00:00.082397113 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.082447850 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 48000 0:00:00.082600372 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.082649083 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 8000 0:00:00.082801097 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.082849627 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 64, channels 2, rate 48000 0:00:00.083001254 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 64 (64) 0:00:00.083049630 10614 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error 0:00:00.083097272 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 1000 0:00:00.083248761 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.083297503 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 100000 0:00:00.083448160 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.083501539 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 48000 0:00:00.083620409 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.083632417 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 8000 0:00:00.083744599 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.083756464 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 16, channels 2, rate 48000 0:00:00.083868109 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 16 (16) 0:00:00.083879811 10614 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error 0:00:00.083890169 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 1000 0:00:00.084079658 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.084094013 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 100000 0:00:00.084206896 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.085256620 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 48000 0:00:00.085420741 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.085434020 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 8000 0:00:00.085546069 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.085799591 10614 0x804f050 LOG oss gstosshelper.c:353:gst_oss_helper_rate_check_rate: checking format 8, channels 2, rate 48000 0:00:00.085996017 10614 0x804f050 DEBUG oss gstosshelper.c:356:gst_oss_helper_rate_check_rate: unsupported format: 8 (8) 0:00:00.086008775 10614 0x804f050 DEBUG oss gstosshelper.c:260:gst_oss_helper_rate_probe_check: unexpected check_rate error 0:00:00.086021326 10614 0x804f050 WARN oss gstosshelper.c:159:gst_oss_helper_probe_caps: Your OSS device could not be probed correctly 0:00:00.086031107 10614 0x804f050 DEBUG oss gstosshelper.c:162:gst_oss_helper_probe_caps: probed caps: EMPTY 0:00:00.086101820 10614 0x804f050 WARN basesrc gstbasesrc.c:2447:gst_base_src_start:<audiotestsrc0> error: Could not negotiate format 0:00:00.086113952 10614 0x804f050 WARN basesrc gstbasesrc.c:2447:gst_base_src_start:<audiotestsrc0> error: Check your filtered caps, if any 0:00:00.086291268 10614 0x804f050 WARN basesrc gstbasesrc.c:2643:gst_base_src_activate_push:<audiotestsrc0> Failed to start in push mode 0:00:00.086306438 10614 0x804f050 WARN GST_PADS gstpad.c:684:gst_pad_set_active:<audiotestsrc0:src> Failed to activate pad ERROR: Pipeline doesn't want to pause. FEHLER: Von Element /pipeline0/audiotestsrc0: Could not negotiate format
Sounds like something only you really can figure out tbh .. maybe a driver problem?
So, what are we going to do about this bug? Closing as NEEDINFO soonish?
Just tried and at least the probalm is still there. And the problem is that sys/oss/gstosshelper.c gst_oss_helper_probe_caps() hard codes channels to 2. I'll try to make a patch.
Reopening as per last comment. Stefan, feel free to assign this bug to yourself to indicate that you're working on a patch :)
*** Bug 538068 has been marked as a duplicate of this bug. ***
Doesn't look like this will ever get fixed, and possibly/likely a driver problem, so let's close it.