]> Pileus Git - ~andy/linux/commitdiff
[media] smsusb: fix the default delivery system setting
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 1 Mar 2012 10:25:39 +0000 (07:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 1 Mar 2012 10:29:02 +0000 (07:29 -0300)
There are two issues on the default delivery system setting for smsusb:

1) instead of filling the delivery system for the per-client
   frontend.ops, it were changing the global structure;

2) The client->frontend.ops copy were keeping the previous value
   of the template. So, the first time the device was inserted,
   it was using the wrong value.

Reported-by: Eddi De Pieri <eddi@depieri.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/siano/smsdvb.c

index 654685c9303e58e8eff7edd15c50aae0c6daeaec..e2dc80da82cce83bf8742ec180406b22014772a6 100644 (file)
@@ -872,11 +872,11 @@ static int smsdvb_hotplug(struct smscore_device_t *coredev,
        switch (smscore_get_device_mode(coredev)) {
        case DEVICE_MODE_DVBT:
        case DEVICE_MODE_DVBT_BDA:
-               smsdvb_fe_ops.delsys[0] = SYS_DVBT;
+               client->frontend.ops.delsys[0] = SYS_DVBT;
                break;
        case DEVICE_MODE_ISDBT:
        case DEVICE_MODE_ISDBT_BDA:
-               smsdvb_fe_ops.delsys[0] = SYS_ISDBT;
+               client->frontend.ops.delsys[0] = SYS_ISDBT;
                break;
        }