Skip to content

Commit

Permalink
i2c comment for SPDIF
Browse files Browse the repository at this point in the history
esp-idf i2c.c *must* be patched at 2 different places for SPDIF to work
  • Loading branch information
philippe44 committed Aug 27, 2020
1 parent 07930f6 commit 7a3774b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/squeezelite/output_i2s.c
Expand Up @@ -234,6 +234,11 @@ void output_init_i2s(log_level level, char *device, unsigned output_buf_size, ch
set_i2s_pin(spdif_config, &i2s_spdif_pin);
set_i2s_pin(dac_config, &i2s_dac_pin);

/* BEWARE: i2s. must be patched to set tx_msb_right/rx_msb_right to 1
* or SPDIF will not work. These settings are not accessible from
* userland and I don't know why
*/

// common I2S initialization
i2s_config.mode = I2S_MODE_MASTER | I2S_MODE_TX;
i2s_config.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT;
Expand Down

0 comments on commit 7a3774b

Please sign in to comment.