Kconfig.projbuild 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. menu "Squeezelite-ESP32"
  2. menu "Logging"
  3. config LOGGING_SLIMPROTO
  4. string "logging level for slimproto "
  5. default "info"
  6. help
  7. Set logging level info|debug|sdebug
  8. config LOGGING_STREAM
  9. string "logging level for stream "
  10. default "info"
  11. help
  12. Set logging level info|debug|sdebug
  13. config LOGGING_DECODE
  14. string "logging level for decode"
  15. default "info"
  16. help
  17. Set logging level info|debug|sdebug
  18. config LOGGING_OUTPUT
  19. string "logging level for output"
  20. default "info"
  21. help
  22. Set logging level info|debug|sdebug
  23. endmenu
  24. menu "Wifi Configuration"
  25. config WIFI_SSID
  26. string "WiFi SSID"
  27. default "myssid"
  28. help
  29. SSID (network name) for the example to connect to.
  30. config WIFI_PASSWORD
  31. string "WiFi Password"
  32. default "mypassword"
  33. help
  34. WiFi password (WPA or WPA2) for the example to use.
  35. choice SCAN_METHOD
  36. prompt "scan method"
  37. default WIFI_FAST_SCAN
  38. help
  39. scan method for the esp32 to use
  40. config WIFI_FAST_SCAN
  41. bool "fast"
  42. config WIFI_ALL_CHANNEL_SCAN
  43. bool "all"
  44. endchoice
  45. choice SORT_METHOD
  46. prompt "sort method"
  47. default WIFI_CONNECT_AP_BY_SIGNAL
  48. help
  49. sort method for the esp32 to use
  50. config WIFI_CONNECT_AP_BY_SIGNAL
  51. bool "rssi"
  52. config WIFI_CONNECT_AP_BY_SECURITY
  53. bool "authmode"
  54. endchoice
  55. config FAST_SCAN_THRESHOLD
  56. bool "fast scan threshold"
  57. default y
  58. help
  59. wifi fast scan threshold
  60. config FAST_SCAN_MINIMUM_SIGNAL
  61. int "fast scan minimum rssi"
  62. depends on FAST_SCAN_THRESHOLD
  63. range -127 0
  64. default -127
  65. help
  66. rssi is use to measure the signal
  67. choice FAST_SCAN_WEAKEST_AUTHMODE
  68. prompt "fast scan weakest authmode"
  69. depends on FAST_SCAN_THRESHOLD
  70. default EXAMPLE_OPEN
  71. config EXAMPLE_OPEN
  72. bool "open"
  73. config EXAMPLE_WEP
  74. bool "wep"
  75. config EXAMPLE_WPA
  76. bool "wpa"
  77. config EXAMPLE_WPA2
  78. bool "wpa2"
  79. endchoice
  80. endmenu
  81. menu "Audio CODEC libraries"
  82. config INCLUDE_FLAC
  83. bool "FLAC"
  84. default 1
  85. help
  86. Include FLAC library for flc decoding.
  87. config INCLUDE_FAAD
  88. bool "FAAD"
  89. default 1
  90. help
  91. Include FAAD library for aac decoding.
  92. config INCLUDE_MAD
  93. bool "MAD"
  94. default 1
  95. help
  96. Include mad library for mp3 decoding.
  97. config INCLUDE_VORBIS
  98. bool "VORBIS"
  99. default 1
  100. help
  101. Include vorbis/ogg library for ogg/vorbis decoding.
  102. config INCLUDE_ALAC
  103. bool "ALAC"
  104. default 1
  105. help
  106. Include alac library for alac decoding.
  107. config INCLUDE_OPUS
  108. bool "OPUS"
  109. default 1
  110. help
  111. Include opus library for opus decoding.
  112. endmenu
  113. menu "Audio Output"
  114. choice OUTPUT_TYPE
  115. prompt "Output Type"
  116. default BASIC_I2C_BT
  117. help
  118. Type of hardware platform
  119. config SQUEEZEAMP
  120. bool "SqueezeAMP (TAS575x & Bluetooth)"
  121. config BASIC_I2C_BT
  122. bool "Generic I2S & Bluetooth"
  123. endchoice
  124. menu "DAC I2S settings"
  125. depends on BASIC_I2C_BT
  126. config I2S_NUM
  127. int "I2S channel (0 or 1). "
  128. default 0
  129. help
  130. I2S dma channel to use.
  131. config I2S_BCK_IO
  132. int "I2S Bit clock GPIO number. "
  133. default 26
  134. help
  135. I2S Bit Clock gpio pin to use.
  136. config I2S_WS_IO
  137. int "I2S Word Select GPIO number. "
  138. default 25
  139. help
  140. I2S Word Select gpio pin to use.
  141. config I2S_DO_IO
  142. int "I2S Data I/O GPIO number. "
  143. default 22
  144. help
  145. I2S data I/O gpio pin to use.
  146. choice
  147. prompt "Bit Depth for I2S output"
  148. default I2S_BITS_PER_CHANNEL_16
  149. config I2S_BITS_PER_CHANNEL_24
  150. bool "24 Bits"
  151. config I2S_BITS_PER_CHANNEL_16
  152. bool "16 Bits"
  153. config I2S_BITS_PER_CHANNEL_8
  154. bool "8 Bits"
  155. endchoice
  156. config I2S_BITS_PER_CHANNEL
  157. int
  158. default 16
  159. default 16 if I2S_BITS_PER_CHANNEL_16
  160. default 24 if I2S_BITS_PER_CHANNEL_24
  161. default 8 if I2S_BITS_PER_CHANNEL_8
  162. endmenu
  163. menu "SPDIF settings"
  164. depends on BASIC_I2C_BT
  165. config SDIF_NUM
  166. int "SDPIF/I2S channel (0 or 1)"
  167. default 0
  168. help
  169. I2S dma channel to use.
  170. config SPDIF_BCK_IO
  171. int "SDPIF/I2S Bit clock GPIO number"
  172. default 26
  173. help
  174. Not used but must be configured.
  175. config SPDIF_WS_IO
  176. int "SPDIF/I2S Word Select GPIO number"
  177. default 25
  178. help
  179. Not used but must be configured.
  180. config SPDIF_DO_IO
  181. int "I2S Data I/O GPIO number"
  182. default 15
  183. help
  184. SPDIF/I2S data I/O gpio pin to use
  185. endmenu
  186. menu "A2DP settings"
  187. config A2DP_SINK_NAME
  188. string "Name of Bluetooth A2DP device"
  189. default "SMSL BT4.2"
  190. help
  191. This is the name of the bluetooth speaker that Squeezelite will try connecting to.
  192. config A2DP_DEV_NAME
  193. string "Name of Squeezelite device to use when connecting to A2DP device"
  194. default "Squeezelite"
  195. help
  196. This is the name of the device that the Bluetooth speaker will see when it is connected to.
  197. config A2DP_CONTROL_DELAY_MS
  198. int "Control loop delay. "
  199. default 500
  200. help
  201. Decreasing this will lead to a more responsive BT control, but might lead to noisy log files if debug is enabled.
  202. config A2DP_CONNECT_TIMEOUT_MS
  203. int "Time out duration when trying to connect to an A2DP audio sink"
  204. default 1000
  205. help
  206. Increasing this value will give more chance for less stable connections to be established.
  207. endmenu
  208. endmenu
  209. menu "Audio Input"
  210. config BT_SINK
  211. bool "Bluetooth receiver"
  212. default y
  213. help
  214. Enable bluetooth sink (Note that you obviously can't at the same time be a Bluetooth receiver and transmitter)
  215. config BT_SINK_NAME
  216. depends on BT_SINK
  217. string "Name of Bluetooth A2DP device"
  218. default "ESP32-BT"
  219. help
  220. This is the name of the bluetooth speaker that will be broadcasted
  221. config BT_SINK_PIN
  222. depends on BT_SINK
  223. int "Bluetooth PIN code"
  224. default 1234
  225. config AIRPLAY_SINK
  226. bool "AirPlay receiver"
  227. default y
  228. config AIRPLAY_NAME
  229. depends on AIRPLAY_SINK
  230. string "Name of AirPlay device"
  231. default "ESP32-AirPlay"
  232. help
  233. This is the name of the AirPlay speaker that will be broadcasted
  234. config AIRPLAY_PORT
  235. depends on AIRPLAY_SINK
  236. string "AirPlay listening port"
  237. default 5000
  238. help
  239. AirPlay service listening port
  240. endmenu
  241. endmenu