When loading BASE firmware, we must use std = 0.
Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
unsigned int type = 0;
struct firmware_properties new_fw;
u16 version, hwmodel;
unsigned int type = 0;
struct firmware_properties new_fw;
u16 version, hwmodel;
tuner_dbg("%s called\n", __FUNCTION__);
tuner_dbg("%s called\n", __FUNCTION__);
- rc = load_firmware(fe, BASE | new_fw.type, &new_fw.id);
+ /* BASE firmwares are all std0 */
+ std0 = 0;
+ rc = load_firmware(fe, BASE | new_fw.type, &std0);
if (rc < 0) {
tuner_err("Error %d while loading base firmware\n",
rc);
if (rc < 0) {
tuner_err("Error %d while loading base firmware\n",
rc);
/* Load INIT1, if needed */
tuner_dbg("Load init1 firmware, if exists\n");
/* Load INIT1, if needed */
tuner_dbg("Load init1 firmware, if exists\n");
- rc = load_firmware(fe, BASE | INIT1 | new_fw.type, &new_fw.id);
+ rc = load_firmware(fe, BASE | INIT1 | new_fw.type, &std0);
if (rc < 0 && rc != -ENOENT) {
tuner_err("Error %d while loading init1 firmware\n",
rc);
if (rc < 0 && rc != -ENOENT) {
tuner_err("Error %d while loading init1 firmware\n",
rc);