[media] mb86a20s: Don't assume a 32.57142MHz clock

Now that some devices initialize register 0x2a with different
values, add the calculus formula, instead of hardcoding it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Mauro Carvalho Chehab
2013-03-04 08:15:49 -03:00
parent 04fa725e7b
commit 0e4bbedd63
2 changed files with 30 additions and 4 deletions
+6 -2
View File
@@ -21,12 +21,16 @@
/**
* struct mb86a20s_config - Define the per-device attributes of the frontend
*
* @fclk: Clock frequency. If zero, assumes the default
* (32.57142 Mhz)
* @demod_address: the demodulator's i2c address
* @is_serial: if true, TS is serial. Otherwise, TS is parallel
*/
struct mb86a20s_config {
u8 demod_address;
bool is_serial;
u32 fclk;
u8 demod_address;
bool is_serial;
};
#if defined(CONFIG_DVB_MB86A20S) || (defined(CONFIG_DVB_MB86A20S_MODULE) \