Explorar el Código

[media] siano: Use the default firmware for Stellar

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>
Mauro Carvalho Chehab hace 12 años
padre
commit
b00ade2bb1
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      drivers/media/usb/siano/smsusb.c

+ 3 - 0
drivers/media/usb/siano/smsusb.c

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