[media] STV0900: Query DVB frontend delivery capabilities
authorManu Abraham <abraham.manu@gmail.com>
Thu, 17 Nov 2011 08:10:49 +0000 (05:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 12 Dec 2011 17:04:34 +0000 (15:04 -0200)
Override default delivery system information provided by FE_GET_INFO, so
that applications can enumerate delivery systems provided by the frontend.

Signed-off-by: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stv0900_core.c

index 0ca316d6fffacf68733df21fe3e5419149b8ea0f..2b8d78c7cdb121aa1fd61cac3739a6472df7b30b 100644 (file)
@@ -985,7 +985,16 @@ static int stb0900_get_property(struct dvb_frontend *fe,
                                struct dtv_property *tvp)
 {
        dprintk("%s(..)\n", __func__);
-
+       switch (tvp->cmd) {
+       case DTV_ENUM_DELSYS:
+               tvp->u.buffer.data[0] = SYS_DSS;
+               tvp->u.buffer.data[1] = SYS_DVBS;
+               tvp->u.buffer.data[2] = SYS_DVBS2;
+               tvp->u.buffer.len = 3;
+               break;
+       default:
+               break;
+       }
        return 0;
 }