please open and edit linux-tbs-drivers/linux/drivers/media/common/saa716x/saa716x_tbs.c
there are two places can be changed.
1)change:
static struct saa716x_config saa716x_tbs6991se_config = {
.model_name = SAA716x_MODEL_TURBOSIGHT_TBS6991SE,
.dev_type = SAA716x_DEV_TURBOSIGHT_TBS6991SE,
.boot_mode = SAA716x_EXT_BOOT,
.load_config = &load_config_tbs6991se,
.adapters = 2,
.frontend_attach = saa716x_tbs6991se_frontend_attach,
.irq_handler = saa716x_tbs6991se_pci_irq,
.i2c_rate[0] = SAA716x_I2C_RATE_400,
.i2c_rate[1] = SAA716x_I2C_RATE_400,
.adap_config = {
{
/* adapter 0 */
.ts_port = 1
},
{
/* adapter 1 */
.ts_port = 3
},
}
};
to :
static struct saa716x_config saa716x_tbs6991se_config = {
.model_name = SAA716x_MODEL_TURBOSIGHT_TBS6991SE,
.dev_type = SAA716x_DEV_TURBOSIGHT_TBS6991SE,
.boot_mode = SAA716x_EXT_BOOT,
.load_config = &load_config_tbs6991se,
.adapters = 1,
.frontend_attach = saa716x_tbs6991se_frontend_attach,
.irq_handler = saa716x_tbs6991se_pci_irq,
.i2c_rate[0] = SAA716x_I2C_RATE_400,
.i2c_rate[1] = SAA716x_I2C_RATE_400,
.adap_config = {
{
/* adapter 0 */
.ts_port = 1
},
}
};
2) in
static int saa716x_tbs6991se_frontend_attach(struct saa716x_adapter *adapter, int count)
{
.................
change:
if (count == 0 || count == 1) {
to
if (count == 0 ) { // simple don't deal with adapter 1
.....................
}
maybe you only need do 2) is ok, please have a try