[media] siano: Use the default firmware for Stellar
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 12 Sep 2013 20:04:07 +0000 (17:04 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 14 Oct 2013 09:41:10 +0000 (06:41 -0300)
The Stellar firmware load routine is different. Improve it to use
the default firmware, if no modprobe parameter tells otherwise.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Tested-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/siano/smsusb.c

index 33f3575101948238f5eaf6193a1f82966d820620..05bd91a60c09fe91d535aad8323cf0a49b48fe16 100644 (file)
@@ -245,6 +245,9 @@ static int smsusb1_load_firmware(struct usb_device *udev, int id, int board_id)
        int rc, dummy;
        char *fw_filename;
 
+       if (id < 0)
+               id = sms_get_board(board_id)->default_mode;
+
        if (id < DEVICE_MODE_DVBT || id > DEVICE_MODE_DVBT_BDA) {
                sms_err("invalid firmware id specified %d", id);
                return -EINVAL;