Skip to content

Commit

Permalink
move spdif_convert to IRAM
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Jan 11, 2022
1 parent 10e36b0 commit ade446a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/squeezelite/output_i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ static const u16_t spdif_bmclookup[256] = { //biphase mark encoded values (least
audio is transmitted first (not the MSB) and that ESP32 libray sends R then L,
contrary to what seems to be usually done, so (dst) order had to be changed
*/
void spdif_convert(ISAMPLE_T *src, size_t frames, u32_t *dst, size_t *count) {
static void IRAM_ATTR spdif_convert(ISAMPLE_T *src, size_t frames, u32_t *dst, size_t *count) {
register u16_t hi, lo, aux;
size_t cnt = *count;

Expand Down

0 comments on commit ade446a

Please sign in to comment.