Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] dvb-frontends/cxd2841er: more configurable TSBITS

Bits 3 and 4 of the TSCONFIG register are important for certain hardware
constellations, in that they need to be zeroed. Add a configuration flag
to toggle this.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Acked-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Daniel Scheller and committed by
Mauro Carvalho Chehab
bf51bbb0 14fd8629

+5
+4
drivers/media/dvb-frontends/cxd2841er.c
··· 3794 3794 cxd2841er_set_reg_bits(priv, I2C_SLVT, 0xc4, 3795 3795 ((priv->flags & CXD2841ER_TS_SERIAL) ? 0x80 : 0x00), 0x80); 3796 3796 3797 + /* clear TSCFG bits 3+4 */ 3798 + if (priv->flags & CXD2841ER_TSBITS) 3799 + cxd2841er_set_reg_bits(priv, I2C_SLVT, 0xc4, 0x00, 0x18); 3800 + 3797 3801 cxd2841er_init_stats(fe); 3798 3802 3799 3803 return 0;
+1
drivers/media/dvb-frontends/cxd2841er.h
··· 31 31 #define CXD2841ER_EARLY_TUNE 16 /* bit 4 */ 32 32 #define CXD2841ER_NO_WAIT_LOCK 32 /* bit 5 */ 33 33 #define CXD2841ER_NO_AGCNEG 64 /* bit 6 */ 34 + #define CXD2841ER_TSBITS 128 /* bit 7 */ 34 35 35 36 enum cxd2841er_xtal { 36 37 SONY_XTAL_20500, /* 20.5 MHz */