diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-04 15:15:49 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-04 23:37:07 +0400 |
commit | 0e4bbedd638d6d13b0cfe2c95c75fc3736daec94 (patch) | |
tree | bdc113859e2503e298a1d066d6cc0c329507e8a5 /drivers/media/dvb-frontends/mb86a20s.h | |
parent | 04fa725e7b1c22c583dd71a8cd85b8d997edfce3 (diff) | |
download | linux-0e4bbedd638d6d13b0cfe2c95c75fc3736daec94.tar.xz |
[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>
Diffstat (limited to 'drivers/media/dvb-frontends/mb86a20s.h')
-rw-r--r-- | drivers/media/dvb-frontends/mb86a20s.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/mb86a20s.h b/drivers/media/dvb-frontends/mb86a20s.h index bf22e77888b9..1a7dea2b237a 100644 --- a/drivers/media/dvb-frontends/mb86a20s.h +++ b/drivers/media/dvb-frontends/mb86a20s.h @@ -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) \ |