From: Bradford Love Date: Thu, 12 Mar 2026 21:35:24 +0000 (-0500) Subject: media: xc5000: Add rf strength function X-Git-Tag: v7.1-rc1~169^2~144 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bad32ae441e3969b34e032e2578a6b30858a5a96;p=thirdparty%2Flinux.git media: xc5000: Add rf strength function Without a rf strength function implemented, analog lock cannot be detected by standardized command line tools. Signed-off-by: Bradford Love Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/tuners/xc5000.c b/drivers/media/tuners/xc5000.c index a28481edd22ed..1a9c4574a8e8e 100644 --- a/drivers/media/tuners/xc5000.c +++ b/drivers/media/tuners/xc5000.c @@ -1333,6 +1333,15 @@ static int xc5000_set_config(struct dvb_frontend *fe, void *priv_cfg) } +static int xc5000_get_rf_strength(struct dvb_frontend *fe, u16 *rssi) +{ + struct xc5000_priv *priv = fe->tuner_priv; + + dprintk(1, "%s()\n", __func__); + + return xc_get_lock_status(priv, rssi); +} + static const struct dvb_tuner_ops xc5000_tuner_ops = { .info = { .name = "Xceive XC5000", @@ -1353,7 +1362,8 @@ static const struct dvb_tuner_ops xc5000_tuner_ops = { .get_frequency = xc5000_get_frequency, .get_if_frequency = xc5000_get_if_frequency, .get_bandwidth = xc5000_get_bandwidth, - .get_status = xc5000_get_status + .get_status = xc5000_get_status, + .get_rf_strength = xc5000_get_rf_strength, }; struct dvb_frontend *xc5000_attach(struct dvb_frontend *fe,