Replies: 7 comments 8 replies
-
That DAC (the WM8978) requires an MCLK, so using GPIO0 was mandatory. I don't know for WM8960, you should check the datasheet but it might very well be the same. Attach a log as well. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help. First, I added mclk in dac_config:
MCLK: There is NO clock at GPIO0 The mcu will not start. Here is the log:
Then, I changed mclk to 1 in dac_config: Here is the log:
Last, I changed mclk to 2 in dac_config: MCLK: There is NO clock at GPIO2 Here is the log:
|
Beta Was this translation helpful? Give feedback.
-
Hi, philippe44. Here is my new config now:
And there is the log:
|
Beta Was this translation helpful? Give feedback.
-
ok - I looked at the datasheet. These 2 have a totally different registers structure and are not at the same i2c address, so the WM8978 driver will not work. The 8960 sits at 34h but the 8978 is at 16h. In addition, they have a unique non-standard way to write to i2c that I'm not sure can be replicated by using the generic dac_controlset (7 bits of address and 9 bits of data). Have a look at the doc here and see if you can make it work with dac_controlset and the generic i2c. You might be able to, but you'll have to cheat with dac_controlset where upper "reg" part must contain the 7 bits of the register and its least significant bit (b0) is the b7 of the value. In other works, if you want to write 257 at register 32,
You have to shift left 32 by 1 = (0010 0000 << 1) = (0100 0000) = 64 So write in dac_controlset (65, 1) Good luck! NB: I did not make that DAC 😄 |
Beta Was this translation helpful? Give feedback.
-
That is initilizing code. What if we need volume or sampling rate, etc.?
And what is usage of BYTES_PER_FRAME?
Thanks
Get BlueMail for Android<https://bluemail.me>
On Nov 7, 2023, at 1:09 p.m., philippe44 ***@***.******@***.***>> wrote:
I don't have such example, but here is the ES8388 code currently embedded
{ "es8388", true,
"{\"init\":[ \
{\"reg\":8,\"val\":0}, {\"reg\":2,\"val\":243}, {\"reg\":43,\"val\":128}, {\"reg\":0,\"val\":5}, \
{\"reg\":1,\"val\":64}, {\"reg\":4,\"val\":60},"
#if BYTES_PER_FRAME == 8
"{\"reg\":23,\"val\":32},"
#else
"{\"reg\":23,\"val\":24},"
#endif
"{\"reg\":24,\"val\":2}, \
{\"reg\":26,\"val\":0}, {\"reg\":27,\"val\":0}, {\"reg\":25,\"val\":50}, {\"reg\":38,\"val\":0}, \
{\"reg\":39,\"val\":184}, {\"reg\":42,\"val\":184}, {\"reg\":46,\"val\":30}, {\"reg\":47,\"val\":30}, \
{\"reg\":48,\"val\":30}, {\"reg\":49,\"val\":30}, {\"reg\":2,\"val\":170}]}" },
{ NULL, false, NULL }
—
Reply to this email directly, view it on GitHub<#352 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AED5FJ7ILHPVR3KOZKQQLHTYDKPPZAVCNFSM6AAAAAA66DJ6R2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMBTGQ2DS>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
ah, forget the #ifdef, it's because I copy/paste some C code (I've edited it). It does not make sense in dac_controlset you set using the webUI. For other commands, please look at README https://github.com/sle118/squeezelite-esp32#daci2s. Volume is never controlled by DAC (soft volume only) and sampling rate is automatic, you don't need to set it up. |
Beta Was this translation helpful? Give feedback.
-
I see.
I am going to study the usage.
Thank you.
Get BlueMail for Android<https://bluemail.me>
On Nov 7, 2023, at 3:30 p.m., philippe44 ***@***.******@***.***>> wrote:
ah, forget the #ifdef, it's because I copy/paste some C code. It does not make sense in dac_controlset you set using the webUI. For other commands, please look at README https://github.com/sle118/squeezelite-esp32#daci2s.
Volume is never controlled by DAC (soft volume only) and sampling rate is automatic, you don't need to set it up.
—
Reply to this email directly, view it on GitHub<#352 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AED5FJZVC35A4KCUDIW5JBLYDLACBAVCNFSM6AAAAAA66DJ6R2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TKMBUGM2TO>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a WM8960 Audio Board, and I initially thought it would be similar to the WM8978.
So, my dac_config is set as follows:
bck=14, ws=27, do=26, model=WM8978, sda=13, scl=12
However, I'm not getting any sound.
Does anyone have experience with this board?
Here is the audio board and ESP32-Wrover-cam

Beta Was this translation helpful? Give feedback.
All reactions