Kconfig.projbuild 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. config JACK_LOCKED
  25. bool
  26. config BAT_LOCKED
  27. bool
  28. config I2C_LOCKED
  29. bool
  30. config SPDIF_LOCKED
  31. bool
  32. config LED_LOCKED
  33. bool
  34. config SPKFAULT_LOCKED
  35. bool
  36. config DAC_CONFIG
  37. string
  38. default "model=TAS57xx,bck=33,ws=25,do=32,sda=27,scl=26,mute=14" if SQUEEZEAMP
  39. default "model=AC101,bck=27,ws=26,do=25,di=35,sda=33,scl=32" if A1S
  40. config SPDIF_CONFIG
  41. string
  42. default "bck=33,ws=25,do=15" if SQUEEZEAMP
  43. menu "Audio Output"
  44. choice OUTPUT_TYPE
  45. prompt "Output Type"
  46. default BASIC_I2C_BT
  47. help
  48. Type of hardware platform
  49. config SQUEEZEAMP
  50. bool "SqueezeAMP"
  51. select JACK_LOCKED
  52. select BAT_LOCKED
  53. select I2C_LOCKED
  54. select LED_LOCKED
  55. select SPKFAULT_LOCKED
  56. config A1S
  57. bool "ESP32-A1S module"
  58. select I2C_LOCKED
  59. config BASIC_I2C_BT
  60. bool "Generic I2S & Bluetooth"
  61. endchoice
  62. menu "DAC settings"
  63. visible if BASIC_I2C_BT
  64. menu "I2S settings"
  65. config I2S_NUM
  66. int "I2S channel (0 or 1). "
  67. default 0
  68. help
  69. I2S dma channel to use.
  70. config I2S_BCK_IO
  71. int "I2S Bit clock GPIO number. "
  72. default 33
  73. help
  74. I2S Bit Clock gpio pin to use.
  75. config I2S_WS_IO
  76. int "I2S Word Select GPIO number. "
  77. default 25
  78. help
  79. I2S Word Select gpio pin to use.
  80. config I2S_DO_IO
  81. int "I2S Data Output GPIO number. "
  82. default 32
  83. help
  84. I2S data output gpio pin to use.
  85. config I2S_DI_IO
  86. int "I2S Data Input GPIO number. "
  87. default -1 if !A1S
  88. help
  89. I2S data input gpio pin to use (not used mostly, leave it to -1).
  90. endmenu
  91. menu "I2C settings"
  92. config I2C_SDA
  93. int "I2C SDA GPIO number for DAC control. "
  94. default -1
  95. help
  96. I2C data gpio pin to use with DAC (not used mostly, leave it to -1).
  97. config I2C_SCL
  98. int "I2C SCL GPIO number for DAC control. "
  99. default -1
  100. help
  101. I2C clock gpio pin to use with DAC (not used mostly, leave it to -1).
  102. endmenu
  103. config MUTE_GPIO
  104. int "GPIO for muting DAC"
  105. default -1
  106. help
  107. GPIO used to mute DAC (not used mostly, leave it to -1).
  108. endmenu
  109. menu "SPDIF settings"
  110. visible if BASIC_I2C_BT
  111. config SDIF_NUM
  112. int "I2S channel for SDPIF (0 or 1)"
  113. default 0
  114. help
  115. I2S dma channel to use.
  116. config SPDIF_BCK_IO
  117. int "SDPIF Bit clock GPIO number"
  118. default I2S_BCK_IO
  119. help
  120. Must be set as SPDIF re-uses I2S but only needs DO (recommendation: set it to I2S Bit clock value)
  121. config SPDIF_WS_IO
  122. int "SPDIF Word Select GPIO number"
  123. default I2S_WS_IO
  124. help
  125. Must be set as SPDIF re-uses I2S but only needs DO (recommendation: set it to I2S Word select value)
  126. config SPDIF_DO_IO
  127. int "SPDIF Data I/O GPIO number"
  128. default -1
  129. help
  130. I2S data output IO use to simulate SPDIF
  131. endmenu
  132. menu "SPDIF settings"
  133. visible if A1S
  134. config SPDIF_DO_IO
  135. int "SPDIF Data I/O GPIO number"
  136. default -1
  137. help
  138. I2S data output IO use to simulate SPDIF
  139. endmenu
  140. menu "A2DP settings"
  141. config A2DP_SINK_NAME
  142. string "Name of Bluetooth A2DP device"
  143. default "SMSL BT4.2"
  144. help
  145. This is the name of the bluetooth speaker that Squeezelite will try connecting to.
  146. config A2DP_DEV_NAME
  147. string "Name of Squeezelite device to use when connecting to A2DP device"
  148. default "Squeezelite"
  149. help
  150. This is the name of the device that the Bluetooth speaker will see when it is connected to.
  151. config A2DP_CONTROL_DELAY_MS
  152. int "Control loop delay. "
  153. default 500
  154. help
  155. Decreasing this will lead to a more responsive BT control, but might lead to noisy log files if debug is enabled.
  156. config A2DP_CONNECT_TIMEOUT_MS
  157. int "Time out duration when trying to connect to an A2DP audio sink"
  158. default 1000
  159. help
  160. Increasing this value will give more chance for less stable connections to be established.
  161. endmenu
  162. endmenu
  163. menu "Audio Input"
  164. config BT_SINK
  165. bool "Bluetooth receiver"
  166. default y
  167. help
  168. Enable bluetooth sink (Note that you obviously can't at the same time be a Bluetooth receiver and transmitter)
  169. config BT_NAME
  170. depends on BT_SINK
  171. string "Name of Bluetooth A2DP device"
  172. default "ESP32-BT"
  173. help
  174. This is the name of the bluetooth speaker that will be broadcasted
  175. config BT_SINK_PIN
  176. depends on BT_SINK
  177. int "Bluetooth PIN code"
  178. default 1234
  179. config AIRPLAY_SINK
  180. bool "AirPlay receiver"
  181. default y
  182. config AIRPLAY_NAME
  183. depends on AIRPLAY_SINK
  184. string "Name of AirPlay device"
  185. default "ESP32-AirPlay"
  186. help
  187. This is the name of the AirPlay speaker that will be broadcasted
  188. config AIRPLAY_PORT
  189. depends on AIRPLAY_SINK
  190. string "AirPlay listening port"
  191. default 5000
  192. help
  193. AirPlay service listening port
  194. endmenu
  195. menu "Display Screen"
  196. config DISPLAY_CONFIG
  197. string "Screen configuraton"
  198. default ""
  199. help
  200. Set parameters for display screen, leave empty for no screen
  201. I2C,width=<pixels>,height=<pixels>[address=<i2c_address>][,HFlip][,VFlip]
  202. SPI,width=<pixels>,height=<pixels>,cs=<gpio>[,HFlip][,VFlip]
  203. endmenu
  204. menu "Various I/O"
  205. config I2C_CONFIG
  206. string "I2C system configuration"
  207. default ""
  208. help
  209. Set parameters of shared I2C interface
  210. sda=<gpio>,scl=<gpio>[,speed=<num>][,port=<0|1>]
  211. config SPI_CONFIG
  212. string "SPI system configuration"
  213. default ""
  214. help
  215. Set parameters of shared SPI interface
  216. data=<gpio>,clk=<gpio>[,d/c=<num>][,host=<0|1|2>]
  217. config SET_GPIO
  218. string "Special GPIO configuration"
  219. default ""
  220. help
  221. Set parameters of shared GPIO with special values.
  222. <gpio_1>=Vcc|GND|amp|jack[:0|1][,<gpio_n>=Vcc|GND|amp|jack[:0|1]]
  223. 'amp' => GPIO that is set when playback starts
  224. 'jack' => GPIO used for audio jack detection
  225. 'green', 'red' => GPIO for status LED
  226. '[:0|1] means set the active value for that GPIO can be low or high
  227. config ROTARY_ENCODER
  228. string "Rotary Encoder configuration"
  229. default ""
  230. help
  231. Set GPIO for rotary encoder (quadrature phase). See README on SqueezeESP32 project's GitHub for more details
  232. A=<gpio>,B=<gpio>[,SW=gpio>[,volume][,longpress]]
  233. endmenu
  234. menu "LED configuration"
  235. visible if !SQUEEZEAMP
  236. config LED_GREEN_GPIO
  237. int "Green led GPIO"
  238. default -1 if !SQUEEZEAMP
  239. default 12 if SQUEEZEAMP
  240. help
  241. Set to -1 for no LED
  242. config LED_GREEN_GPIO_LEVEL
  243. int "Green led ON level"
  244. depends on LED_GREEN_GPIO != -1
  245. default 0 if SQUEEZEAMP
  246. default 1 if !SQUEEZEAMP
  247. config LED_RED_GPIO
  248. int "Red led GPIO"
  249. default -1 if !SQUEEZEAMP
  250. default 13 if SQUEEZEAMP
  251. help
  252. Set to -1 for no LED
  253. config LED_RED_GPIO_LEVEL
  254. int "Red led ON level"
  255. depends on LED_RED_GPIO != -1
  256. default 0 if SQUEEZEAMP
  257. default 1 if !SQUEEZEAMP
  258. endmenu
  259. menu "Audio JACK"
  260. visible if !SQUEEZEAMP
  261. config JACK_GPIO
  262. int "Jack insertion GPIO"
  263. default -1 if !SQUEEZEAMP
  264. default 34 if SQUEEZEAMP
  265. help
  266. GPIO to detect speaker jack insertion. Set to -1 for no detection.
  267. config JACK_GPIO_LEVEL
  268. depends on JACK_GPIO != -1
  269. int "Level when inserted (0/1)"
  270. default 0
  271. endmenu
  272. menu "Speaker Fault"
  273. visible if !SQUEEZEAMP
  274. config SPKFAULT_GPIO
  275. int "Speaker fault GPIO"
  276. default -1 if !SQUEEZEAMP
  277. default 2 if SQUEEZEAMP
  278. help
  279. GPIO to detect speaker fault condition. Set to -1 for no detection.
  280. config SPKFAULT_GPIO_LEVEL
  281. depends on SPKFAULT_GPIO != -1
  282. int "Level when fault (0/1)"
  283. default 0
  284. endmenu
  285. menu "Battery measure"
  286. visible if !SQUEEZEAMP
  287. config BAT_CHANNEL
  288. int "Set channel (0..7)"
  289. default -1 if !SQUEEZEAMP
  290. default 7 if SQUEEZEAMP
  291. help
  292. Read a value every 10s on ADC1 on set Channel
  293. config BAT_SCALE
  294. string "Set scaling factor"
  295. depends on BAT_CHANNEL != -1
  296. default "" if !SQUEEZEAMP
  297. default "20.24" if SQUEEZEAMP
  298. help
  299. Set the scaling factor for this 12 bits ADC
  300. endmenu
  301. endmenu