1 .. SPDX-License-Identifier: GPL-2.0
8 Documentation missing at the cx88 datasheet
9 -------------------------------------------
11 MO_OUTPUT_FORMAT (0x310164)
15 Previous default from DScaler: 0x1c1f0008
19 Digit 7: 27-24 (0xc = 12 = b1100 )
22 (DScaler apparently set this to 1, resulted in sucky picture)
25 25-16: COMB_RANGE = 0x1f [default] (9 bits -> max 512)
48 0x47 is the sync byte for MPEG-2 transport stream packets.
49 Datasheet incorrectly states to use 47 decimal. 188 is the length.
50 All DVB compliant frontends output packets with this start code.
52 Hauppauge WinTV cx88 IR information
53 -----------------------------------
55 The controls for the mux are GPIO [0,1] for source, and GPIO 2 for muting.
57 ====== ======== =================================================
59 ====== ======== =================================================
63 1 1 Mono tuner bypass or CD passthru (tuner specific)
64 ====== ======== =================================================
66 GPIO 16(I believe) is tied to the IR port (if present).
71 - Register 24'h20004 PCI Interrupt Status
73 - bit [18] IR_SMP_INT Set when 32 input samples have been collected over
74 - gpio[16] pin into GP_SAMPLE register.
76 What's missing from the data sheet:
78 - Setup 4KHz sampling rate (roughly 2x oversampled; good enough for our RC5
80 - set register 0x35C050 to 0xa80a80
82 - set register 0x35C054 to 0x5
83 - enable the IRQ bit 18 in the interrupt mask register (and
84 provide for a handler)
86 GP_SAMPLE register is at 0x35C058
88 Bits are then right shifted into the GP_SAMPLE register at the specified
89 rate; you get an interrupt when a full DWORD is received.
90 You need to recover the actual RC5 bits out of the (oversampled) IR sensor
91 bits. (Hint: look for the 0/1and 1/0 crossings of the RC5 bi-phase data) An
92 actual raw RC5 code will span 2-3 DWORDS, depending on the actual alignment.
94 I'm pretty sure when no IR signal is present the receiver is always in a
95 marking state(1); but stray light, etc can cause intermittent noise values
96 as well. Remember, this is a free running sample of the IR receiver state
97 over time, so don't assume any sample starts at any particular place.
102 This data sheet (google search) seems to have a lovely description of the
104 http://www.atmel.com/dyn/resources/prod_documents/doc2817.pdf
106 This document has more data:
107 http://www.nenya.be/beor/electronics/rc5.htm
109 This document has a how to decode a bi-phase data stream:
110 http://www.ee.washington.edu/circuit_archive/text/ir_decode.txt
112 This document has still more info:
113 http://www.xs4all.nl/~sbp/knowledge/ir/rc5.htm