This is all new to me with the audio parts - but I assumed by using the as7210 component this offloads the ADC processing - but I could be wildly misunderstanding things here.
Thanks for confirming and checking everything - really appreciated.
However, for the addresses the defaults seem to be per component - and I don’t believe are effected by the esp32 variant. [Need to confirm by reading the source for the component and esp32p4 variant]
With all of my addresses commented out, es8311 works fine (according to the docs the default is 0x18 which matches and does indeed make mine redundant).
The es7210 fails though (which according to the docs has a default of 0x40 vs. the one I use 0x36):
[18:19:06.747][C][es7210:028]: ES7210 audio ADC:
[18:19:06.747][C][es7210:028]: Bits Per Sample: 16
[18:19:06.747][C][es7210:028]: Sample Rate: 16000
[18:19:06.748][E][es7210:035]: Failed to initialize
[18:19:06.749][E][component:188]: es7210.audio_adc is marked FAILED: unspecified
And the other to fail was the rx8130 RTC controller which takes the CR1220 coin cell (which according to the docs has a default of 0x32 vs the one I use 0x14)
[18:19:06.861][C][rx8130:063]: RX8130:
[18:19:06.861][C][rx8130:064]: Address: 0x32
[18:19:06.862][C][time:029]: Timezone: 'GMT0BST,M3.5.0/1,M10.5.0'
[18:19:06.863][E][component:188]: rx8130.time is marked FAILED: unspecified
Which makes me think we’re possibly using different boards, or versions of the board. Mine is the JC1060P470C_I_W_Y with the black case, for comparison.
Thanks again - I’m always trying to get rid of unnecessary configuration and keeping it lean - only including exceptions to the rule.
Edit: Here’s the i2c address in the log during startup:
[18:55:02.675][C][i2c.idf:090]: I2C Bus:
[18:55:02.675][C][i2c.idf:091]: SDA Pin: GPIO7
[18:55:02.675][C][i2c.idf:091]: SCL Pin: GPIO8
[18:55:02.675][C][i2c.idf:091]: Frequency: 400000 Hz
[18:55:02.676][C][i2c.idf:101]: Recovery: bus successfully recovered
[18:55:02.677][C][i2c.idf:111]: Results from bus scan:
[18:55:02.677][C][i2c.idf:117]: Found device at address 0x14
[18:55:02.678][C][i2c.idf:117]: Found device at address 0x18
[18:55:02.678][C][i2c.idf:117]: Found device at address 0x32
[18:55:02.679][C][i2c.idf:117]: Found device at address 0x36
[18:55:02.680][C][i2c.idf:117]: Found device at address 0x5D
And I’ve got the SD card support working, as well as voice bits as well as the audio amplifier on GPIO11 - including link again as I know it can be difficult to put together a good config from separate posts: Guition-esp32-p4-jc1060p470-Sci-fi-dashboard/guitron-p4-7in-touch.yaml at 052c79940cd92a19a456ea773f8e9907dafa26ef · charrus/Guition-esp32-p4-jc1060p470-Sci-fi-dashboard · GitHub
Thanks,
Charlie