media: cx231xx: Set mfe_shared if second frontend found
authorBrad Love <brad@nextdimension.cc>
Tue, 6 Mar 2018 19:14:59 +0000 (14:14 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Mar 2018 09:01:05 +0000 (04:01 -0500)
If frontend[1] exists, then enable the dvb adapter mfe lock system.

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/cx231xx/cx231xx-dvb.c

index 680c175..3a5ed2a 100644 (file)
@@ -504,6 +504,9 @@ static int register_dvb(struct cx231xx_dvb *dvb,
                                dev->name, result);
                        goto fail_frontend1;
                }
+
+               /* MFE lock */
+               dvb->adapter.mfe_shared = 1;
        }
 
        /* register demux stuff */