si476x.rst 5.9 KB

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