mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
tweaks
This commit is contained in:
@@ -303,7 +303,7 @@ esp_err_t i2s_set_clk(i2s_port_t i2s_num, uint32_t rate, i2s_bits_per_sample_t b
|
|||||||
double denom = (double)1 / 64;
|
double denom = (double)1 / 64;
|
||||||
int channel = 2;
|
int channel = 2;
|
||||||
i2s_dma_t *save_tx = NULL, *save_rx = NULL;
|
i2s_dma_t *save_tx = NULL, *save_rx = NULL;
|
||||||
ESP_LOGW(I2S_TAG, "THIS IS US IN I2S !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
|
|
||||||
I2S_CHECK((i2s_num < I2S_NUM_MAX), "i2s_num error", ESP_ERR_INVALID_ARG);
|
I2S_CHECK((i2s_num < I2S_NUM_MAX), "i2s_num error", ESP_ERR_INVALID_ARG);
|
||||||
|
|
||||||
if (bits % 8 != 0 || bits > I2S_BITS_PER_SAMPLE_32BIT || bits < I2S_BITS_PER_SAMPLE_16BIT) {
|
if (bits % 8 != 0 || bits > I2S_BITS_PER_SAMPLE_32BIT || bits < I2S_BITS_PER_SAMPLE_16BIT) {
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ bool GDS_SPIAttachDevice( struct GDS_Device* Device, int Width, int Height, int
|
|||||||
SPIDeviceConfig.cs_ena_pretrans = Device->CS_pre;
|
SPIDeviceConfig.cs_ena_pretrans = Device->CS_pre;
|
||||||
SPIDeviceConfig.cs_ena_posttrans = Device->CS_post;
|
SPIDeviceConfig.cs_ena_posttrans = Device->CS_post;
|
||||||
SPIDeviceConfig.mode = Device->SPI_mode;
|
SPIDeviceConfig.mode = Device->SPI_mode;
|
||||||
|
|
||||||
ESP_ERROR_CHECK_NONFATAL( spi_bus_add_device( SPIHost, &SPIDeviceConfig, &SPIDevice ), return false );
|
ESP_ERROR_CHECK_NONFATAL( spi_bus_add_device( SPIHost, &SPIDeviceConfig, &SPIDevice ), return false );
|
||||||
|
|
||||||
Device->WriteCommand = SPIDefaultWriteCommand;
|
Device->WriteCommand = SPIDefaultWriteCommand;
|
||||||
|
|||||||
@@ -452,7 +452,6 @@ static void handle_connect_state_unconnected(uint16_t event, esp_a2d_cb_param_t
|
|||||||
{
|
{
|
||||||
case ESP_A2D_CONNECTION_STATE_DISCONNECTED:
|
case ESP_A2D_CONNECTION_STATE_DISCONNECTED:
|
||||||
unexpected_connection_state(bt_app_source_a2d_state, param->conn_stat.state);
|
unexpected_connection_state(bt_app_source_a2d_state, param->conn_stat.state);
|
||||||
set_app_source_state(APP_AV_STATE_UNCONNECTED);
|
|
||||||
break;
|
break;
|
||||||
case ESP_A2D_CONNECTION_STATE_CONNECTING:
|
case ESP_A2D_CONNECTION_STATE_CONNECTING:
|
||||||
unexpected_connection_state(bt_app_source_a2d_state, param->conn_stat.state);
|
unexpected_connection_state(bt_app_source_a2d_state, param->conn_stat.state);
|
||||||
|
|||||||
Reference in New Issue
Block a user