* do not attach frontend when tuner is not supported
* fix unkown tuner ID log write format
* add prefix for dvb-usb log writings
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
af9035_af9033_config[i].spec_inv = 1;
break;
default:
- warn("tuner ID=%20x not supported, please report!",
+ af9035_config.hw_not_supported = true;
+ warn("tuner ID=%02x not supported, please report!",
tmp);
- ret = -ENODEV;
- goto err;
};
/* tuner IF frequency */
{
int ret;
+ if (af9035_config.hw_not_supported) {
+ ret = -ENODEV;
+ goto err;
+ }
+
if (adap->id == 0) {
ret = af9035_wr_reg(adap->dev, 0x00417f,
af9035_af9033_config[1].i2c_addr);
#ifndef AF9035_H
#define AF9035_H
+/* prefix for dvb-usb log writings */
+#define DVB_USB_LOG_PREFIX "af9035"
+
#include "dvb-usb.h"
struct reg_val {
struct config {
bool dual_mode;
+ bool hw_not_supported;
};
struct fw_segment {