d87a50586d
This patch adds support for Si2147-A30 tuner. Fairly trivial, no firmware needed for this tuner. However, command 14 00 02 07 01 00 seems to be mandatory. On Si2157 and Si2158 the value 0x0100 is the default value, so this patch does not impact the existing tuners/devices. On Si2147 the default is 0x0000 and I can't get a lock with that value. While here, fix the return length of the previous set command to 4 bytes. Signed-off-by: Olli Salonen <olli.salonen@iki.fi> Acked-by: Antti Palosaari <crope@iki.fi> Reviewed-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
39 lines
897 B
C
39 lines
897 B
C
/*
|
|
* Silicon Labs Si2147/2157/2158 silicon tuner driver
|
|
*
|
|
* Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef SI2157_H
|
|
#define SI2157_H
|
|
|
|
#include <linux/kconfig.h>
|
|
#include "dvb_frontend.h"
|
|
|
|
/*
|
|
* I2C address
|
|
* 0x60
|
|
*/
|
|
struct si2157_config {
|
|
/*
|
|
* frontend
|
|
*/
|
|
struct dvb_frontend *fe;
|
|
|
|
/*
|
|
* Spectral Inversion
|
|
*/
|
|
bool inversion;
|
|
};
|
|
|
|
#endif
|