Commit | Line | Data |
---|---|---|
c0d01382 MCC |
1 | .. include:: <isonum.txt> |
2 | ||
3 | ||
4 | The SI476x Driver | |
5 | ================= | |
6 | ||
7 | Copyright |copy| 2013 Andrey Smirnov <andrew.smirnov@gmail.com> | |
b879a9c2 AS |
8 | |
9 | TODO for the driver | |
c0d01382 | 10 | ------------------- |
b879a9c2 AS |
11 | |
12 | - According to the SiLabs' datasheet it is possible to update the | |
13 | firmware of the radio chip in the run-time, thus bringing it to the | |
14 | most recent version. Unfortunately I couldn't find any mentioning of | |
15 | the said firmware update for the old chips that I tested the driver | |
16 | against, so for chips like that the driver only exposes the old | |
17 | functionality. | |
18 | ||
19 | ||
20 | Parameters exposed over debugfs | |
21 | ------------------------------- | |
22 | SI476x allow user to get multiple characteristics that can be very | |
23 | useful for EoL testing/RF performance estimation, parameters that have | |
24 | very little to do with V4L2 subsystem. Such parameters are exposed via | |
25 | debugfs and can be accessed via regular file I/O operations. | |
26 | ||
27 | The drivers exposes following files: | |
28 | ||
29 | * /sys/kernel/debug/<device-name>/acf | |
30 | This file contains ACF(Automatically Controlled Features) status | |
31 | information. The contents of the file is binary data of the | |
32 | following layout: | |
33 | ||
e6530624 MCC |
34 | .. tabularcolumns:: |p{7ex}|p{12ex}|L| |
35 | ||
f1668f1d | 36 | ============= ============== ==================================== |
e6530624 | 37 | Offset Name Description |
f1668f1d | 38 | ============= ============== ==================================== |
e6530624 | 39 | 0x00 blend_int Flag, set when stereo separation has |
f1668f1d | 40 | crossed below the blend threshold |
e6530624 | 41 | 0x01 hblend_int Flag, set when HiBlend cutoff |
f1668f1d | 42 | frequency is lower than threshold |
e6530624 | 43 | 0x02 hicut_int Flag, set when HiCut cutoff |
f1668f1d | 44 | frequency is lower than threshold |
e6530624 | 45 | 0x03 chbw_int Flag, set when channel filter |
f1668f1d | 46 | bandwidth is less than threshold |
e6530624 | 47 | 0x04 softmute_int Flag indicating that softmute |
f1668f1d MCC |
48 | attenuation has increased above |
49 | softmute threshold | |
50 | 0x05 smute 0 - Audio is not soft muted | |
51 | 1 - Audio is soft muted | |
e6530624 MCC |
52 | 0x06 smattn Soft mute attenuation level in dB |
53 | 0x07 chbw Channel filter bandwidth in kHz | |
54 | 0x08 hicut HiCut cutoff frequency in units of | |
f1668f1d | 55 | 100Hz |
e6530624 | 56 | 0x09 hiblend HiBlend cutoff frequency in units |
f1668f1d | 57 | of 100 Hz |
e6530624 | 58 | 0x10 pilot 0 - Stereo pilot is not present |
f1668f1d | 59 | 1 - Stereo pilot is present |
e6530624 | 60 | 0x11 stblend Stereo blend in % |
f1668f1d | 61 | ============= ============== ==================================== |
b879a9c2 AS |
62 | |
63 | ||
64 | * /sys/kernel/debug/<device-name>/rds_blckcnt | |
65 | This file contains statistics about RDS receptions. It's binary data | |
66 | has the following layout: | |
67 | ||
e6530624 MCC |
68 | .. tabularcolumns:: |p{7ex}|p{12ex}|L| |
69 | ||
f1668f1d | 70 | ============= ============== ==================================== |
e6530624 | 71 | Offset Name Description |
f1668f1d | 72 | ============= ============== ==================================== |
e6530624 MCC |
73 | 0x00 expected Number of expected RDS blocks |
74 | 0x02 received Number of received RDS blocks | |
75 | 0x04 uncorrectable Number of uncorrectable RDS blocks | |
f1668f1d | 76 | ============= ============== ==================================== |
b879a9c2 AS |
77 | |
78 | * /sys/kernel/debug/<device-name>/agc | |
79 | This file contains information about parameters pertaining to | |
80 | AGC(Automatic Gain Control) | |
81 | ||
82 | The layout is: | |
f1668f1d | 83 | |
e6530624 MCC |
84 | .. tabularcolumns:: |p{7ex}|p{12ex}|L| |
85 | ||
f1668f1d | 86 | ============= ============== ==================================== |
e6530624 | 87 | Offset Name Description |
f1668f1d | 88 | ============= ============== ==================================== |
e6530624 | 89 | 0x00 mxhi 0 - FM Mixer PD high threshold is |
f1668f1d MCC |
90 | not tripped |
91 | 1 - FM Mixer PD high threshold is | |
92 | tripped | |
e6530624 MCC |
93 | 0x01 mxlo ditto for FM Mixer PD low |
94 | 0x02 lnahi ditto for FM LNA PD high | |
95 | 0x03 lnalo ditto for FM LNA PD low | |
96 | 0x04 fmagc1 FMAGC1 attenuator resistance | |
f1668f1d | 97 | (see datasheet for more detail) |
e6530624 MCC |
98 | 0x05 fmagc2 ditto for FMAGC2 |
99 | 0x06 pgagain PGA gain in dB | |
100 | 0x07 fmwblang FM/WB LNA Gain in dB | |
f1668f1d | 101 | ============= ============== ==================================== |
b879a9c2 AS |
102 | |
103 | * /sys/kernel/debug/<device-name>/rsq | |
104 | This file contains information about parameters pertaining to | |
105 | RSQ(Received Signal Quality) | |
106 | ||
107 | The layout is: | |
f1668f1d | 108 | |
e6530624 MCC |
109 | .. tabularcolumns:: |p{7ex}|p{12ex}|p{60ex}| |
110 | ||
f1668f1d | 111 | ============= ============== ==================================== |
e6530624 | 112 | Offset Name Description |
f1668f1d | 113 | ============= ============== ==================================== |
e6530624 | 114 | 0x00 multhint 0 - multipath value has not crossed |
f1668f1d MCC |
115 | the Multipath high threshold |
116 | 1 - multipath value has crossed | |
117 | the Multipath high threshold | |
e6530624 MCC |
118 | 0x01 multlint ditto for Multipath low threshold |
119 | 0x02 snrhint 0 - received signal's SNR has not | |
f1668f1d MCC |
120 | crossed high threshold |
121 | 1 - received signal's SNR has | |
122 | crossed high threshold | |
e6530624 MCC |
123 | 0x03 snrlint ditto for low threshold |
124 | 0x04 rssihint ditto for RSSI high threshold | |
125 | 0x05 rssilint ditto for RSSI low threshold | |
126 | 0x06 bltf Flag indicating if seek command | |
f1668f1d | 127 | reached/wrapped seek band limit |
e6530624 MCC |
128 | 0x07 snr_ready Indicates that SNR metrics is ready |
129 | 0x08 rssiready ditto for RSSI metrics | |
130 | 0x09 injside 0 - Low-side injection is being used | |
f1668f1d | 131 | 1 - High-side injection is used |
e6530624 MCC |
132 | 0x10 afcrl Flag indicating if AFC rails |
133 | 0x11 valid Flag indicating if channel is valid | |
134 | 0x12 readfreq Current tuned frequency | |
135 | 0x14 freqoff Signed frequency offset in units of | |
f1668f1d | 136 | 2ppm |
e6530624 MCC |
137 | 0x15 rssi Signed value of RSSI in dBuV |
138 | 0x16 snr Signed RF SNR in dB | |
139 | 0x17 issi Signed Image Strength Signal | |
f1668f1d | 140 | indicator |
e6530624 | 141 | 0x18 lassi Signed Low side adjacent Channel |
f1668f1d | 142 | Strength indicator |
e6530624 MCC |
143 | 0x19 hassi ditto fpr High side |
144 | 0x20 mult Multipath indicator | |
145 | 0x21 dev Frequency deviation | |
146 | 0x24 assi Adjacent channel SSI | |
147 | 0x25 usn Ultrasonic noise indicator | |
148 | 0x26 pilotdev Pilot deviation in units of 100 Hz | |
149 | 0x27 rdsdev ditto for RDS | |
150 | 0x28 assidev ditto for ASSI | |
151 | 0x29 strongdev Frequency deviation | |
152 | 0x30 rdspi RDS PI code | |
f1668f1d | 153 | ============= ============== ==================================== |
b879a9c2 AS |
154 | |
155 | * /sys/kernel/debug/<device-name>/rsq_primary | |
156 | This file contains information about parameters pertaining to | |
157 | RSQ(Received Signal Quality) for primary tuner only. Layout is as | |
158 | the one above. |