After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787719 - v4l2radio: add signal strength property
v4l2radio: add signal strength property
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
unspecified
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-15 10:53 UTC by triniton
Modified: 2018-11-03 15:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.98 KB, patch)
2017-09-15 10:53 UTC, triniton
needs-work Details | Review

Description triniton 2017-09-15 10:53:47 UTC
Created attachment 359843 [details] [review]
patch

I need signal strength value from v4l2radio because need to implement station scannig in my application.
Comment 1 Nicolas Dufresne (ndufresne) 2017-09-15 13:21:14 UTC
Someone using v4l2radio, that's a surprise, that might impair my plan to make it a bin and wrap alsa/pulse source inside of it .... Do you mind letting us know which hardware has a driver for that ?

Thanks for your patch, I'll have a look.
Comment 2 Nicolas Dufresne (ndufresne) 2017-09-15 13:50:27 UTC
Review of attachment 359843 [details] [review]:

::: sys/v4l2/gstv4l2radio.c
@@ +62,3 @@
   ARG_DEVICE,
+  ARG_FREQUENCY,
+  ARG_SIGNAL_STRENGTH

That's nice, you added an enum, but it won't show up if you don't call g_object_class_install_property() in the class init. Did you tested your patch ?

@@ +483,3 @@
       }
       break;
+    case ARG_SIGNAL_STRENGTH:

Some GST_OBJECT_LOCK() all over maybe ? Can you really set the signal strenght ? What those it means ?
Comment 3 Nicolas Dufresne (ndufresne) 2017-09-15 13:51:10 UTC
V4L2 API already offer seeking, don't you want to expose the V4L2 API instead ?
Comment 4 triniton 2017-09-15 14:57:41 UTC
USB and PCI FM tuners are very similar to TV tuners, in fact, many TV tuner cards have an FM tuner built in. Or for testing only: The Virtual Video Test Driver (vivid) https://www.kernel.org/doc/html/v4.12/media/v4l-drivers/vivid.html

No, I not test patch, is made in haste.

PS. Another useful thing would be to use it GstDeviceMonitor to list and monitor v4l2 radio devices.
Comment 5 Nicolas Dufresne (ndufresne) 2017-09-15 15:02:35 UTC
(In reply to triniton from comment #4)
> PS. Another useful thing would be to use it GstDeviceMonitor to list and
> monitor v4l2 radio devices.

https://bugzilla.gnome.org/show_bug.cgi?id=743108
Comment 6 Nicolas Dufresne (ndufresne) 2017-09-15 15:06:07 UTC
The reason this was kept low interest is that there is very few real driver for that, the element does not produce audio, a lot of these USB dongle in fact support SDR stream and often are access via libusb/rtl instead of a v4l2 driver.

One should maybe upstream this plugin at some point:

https://github.com/PDXostc/fmradioservice/tree/master/gst-sdr-j-fm

Works with most DVB T receiver that advertise FM support.
Comment 8 Nicolas Dufresne (ndufresne) 2017-09-15 16:25:46 UTC
With upstream kernel drivers ?

So, are you going to update and test your patch ? Untested patches aren't really welcome.
Comment 10 triniton 2017-09-15 17:25:54 UTC
My card is PCI TV Tuner with FM Radio based on SAA7134 and work fine with gst v4l2radio, I also have a lot of friends who have a FM chip build-in TV card.
Comment 11 GStreamer system administrator 2018-11-03 15:22:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/403.