Pass I2S Audio Settings to I2C Audio DAC

Pass I2S Audio Settings to I2C Audio DAC

I’m presently engaged on including the Texas Instruments DAC3100 to esphome. Its pretty just like the aic3204 that’s already in esphome and up to now I’ve been in a position to copy quite a lot of code from that (simply altering register areas for the i2c transactions) on this course of nonetheless I seen that a few of the setup choices despatched over i2c to the dac rely on what i2s audio settings are additionally current. For instance one of many first issues setup is what clock is used for the audio processing. within the aic3204 code it assumes that mclk is linked on the i2s interface and applications the registers accordingly. for my particular utility its the alternative the place the mclk is just not linked and the bclk is used as an alternative. Since these are configurable choices inside the chips however are based mostly on the i2s configuration which isn’t uncovered to the i2c audio dac the one means I can consider making it a configurable choice within the dac3100 element could be to have a parameter only for what pin is used for the clock. However that may be duplicating a setting in two totally different elements which supplies alternative for a mismatch and I really feel like it could be simpler to only in some way let the dac3100 element examine if the i2s interface has a mclk outlined or not and program the registers based mostly on that. Is there a straightforward means of doing this or ought to it simply be exhausting coded like it’s for the aic3204 element?

1 submit – 1 participant

Read full subject

HI-FI News

by way of Home Assistant Community – Latest subjects https://ift.tt/p80Y3Uu

February 20, 2025 at 06:05AM