Kconfig.projbuild 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. endmenu
  108. menu "Audio Output"
  109. choice OUTPUT_TYPE
  110. prompt "Output Type"
  111. default DACAUDIO
  112. help
  113. Type of output for squeezelite to send audio to
  114. config DACAUDIO
  115. bool "DAC over I2S"
  116. config BTAUDIO
  117. bool "Bluetooth A2DP"
  118. endchoice
  119. config OUTPUT_NAME
  120. string
  121. default ""
  122. default "BT" if BTAUDIO
  123. default "DAC" if DACAUDIO
  124. config OUTPUT_RATES
  125. string "Output rates"
  126. default "44100"
  127. help
  128. <rates>[:<delay>] Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms
  129. menu "DAC I2S settings"
  130. config I2S_NUM
  131. int "I2S channel (0 or 1). "
  132. default 0
  133. help
  134. I2S dma channel to use.
  135. config I2S_BCK_IO
  136. int "I2S Bit clock GPIO number. "
  137. default 26
  138. help
  139. I2S Bit Clock gpio pin to use.
  140. config I2S_WS_IO
  141. int "I2S Word Select GPIO number. "
  142. default 25
  143. help
  144. I2S Word Select gpio pin to use.
  145. config I2S_DO_IO
  146. int "I2S Data I/O GPIO number. "
  147. default 22
  148. help
  149. I2S data I/O gpio pin to use.
  150. choice
  151. prompt "Bit Depth for I2S output"
  152. default I2S_BITS_PER_CHANNEL_16
  153. config I2S_BITS_PER_CHANNEL_24
  154. bool "24 Bits"
  155. config I2S_BITS_PER_CHANNEL_16
  156. bool "16 Bits"
  157. config I2S_BITS_PER_CHANNEL_8
  158. bool "8 Bits"
  159. endchoice
  160. config I2S_BITS_PER_CHANNEL
  161. int
  162. default 16
  163. default 16 if I2S_BITS_PER_CHANNEL_16
  164. default 24 if I2S_BITS_PER_CHANNEL_24
  165. default 8 if I2S_BITS_PER_CHANNEL_8
  166. endmenu
  167. menu "A2DP settings"
  168. config A2DP_SINK_NAME
  169. string "Name of Bluetooth A2DP device"
  170. default "SMSL BT4.2"
  171. help
  172. This is the name of the bluetooth speaker that Squeezelite will try connecting to.
  173. config A2DP_DEV_NAME
  174. string "Name of Squeezelite device to use when connecting to A2DP device"
  175. default "Squeezelite"
  176. help
  177. This is the name of the device that the Bluetooth speaker will see when it is connected to.
  178. config A2DP_CONTROL_DELAY_MS
  179. int "Control loop delay. "
  180. default 500
  181. help
  182. Decreasing this will lead to a more responsive BT control, but might lead to noisy log files if debug is enabled.
  183. config A2DP_CONNECT_TIMEOUT_MS
  184. int "Time out duration when trying to connect to an A2DP audio sink"
  185. default 1000
  186. help
  187. Increasing this value will give more chance for less stable connections to be established.
  188. endmenu
  189. endmenu
  190. endmenu