sle118 / squeezelite-esp32

ESP32 Music streaming based on Squeezelite, with support for multi-room sync, AirPlay, Bluetooth, Hardware buttons, display and more
1.24k stars 111 forks source link

MCLK Pin Option #151

Closed AxelJust closed 2 years ago

AxelJust commented 2 years ago

Thanks For your great Work! By now I had great sucses flashing all kind of ESP32 Audio boards and got enouf motivation to start my own Desing. One Amp based on the ADAU1701 (JAB5) would be Ideal for one of my Projects. Unfortunatly it isn't posible to use it without MCLK.

An option to set a Pin as MCLK output would be all we need for that.

wizmo2 commented 2 years ago

I think this is availble now

"The option "mck" is used for some codecs that require a master clock (although they should not). Only GPIO0 can be used as MCLK and be aware"

AxelJust commented 2 years ago

With a TTGO T8 on hand I'm on fw: I2S-4MFlash.16.1023.master-cmak, mode: Squeezelite-ESP32 I coudn't find "mck" anywehre. not in the UI or repository. Would you simply put model=I2S,bck=33,ws=25,do=32,mck=0 in dac_config? Can you tell us what you are quoting @wizmo2 ?

AxelJust commented 2 years ago

oh, sorry. Google found that frase in the README.md . wierd that github coudn't find itself. I'l try the dac_config from above and giv an report.

wizmo2 commented 2 years ago

If you have issues, check out this configuration. T-Audio/T9 are more or less the same. The WM8978 model has hardcoded MCLK support.

With a TTGO T9 on hand I'm

AxelJust commented 2 years ago

I folowed your documentation before to setup my T9 as well, thank you! in That case I just made a tipo. By now, pin 0 works to avoid horible noise the ADAU1701 throws out when confused. But Audio isn't puut out either. Now I need to find out if SigmaStudio is needet to change something in the DSP. Or dose sombody els have an idea? Greatings

AxelJust commented 2 years ago

GOOD NEWS

After resting my mind for some days and corecting a falls Pin Conection I made, I Got it to work this time:

Parts:

Pinout:

JAB5____ESP32 1-LRCLK__25 2-BCLK____33 3-DATA132 4-GND_GND 5-+5V__3V3 or 5V ( JAB5 Pin actualy is at 3,5V; VIN Pin on T8 not posible ) 6-MCLK____0

dac_config: model=I2S,bck=33,ws=25,do=32,mck=0