Hi All,
i am working on SGTL5000 bring up, still the module is not functional. following are my observations.
MCLK- fed to SGTL5000 is 11.36 MHz,
i2c detect is showing the sgtl5000 chip active in i2c bus,
but SGTL5000_CHIP_ID read chip ID is failed.
sgtl5000.c - sound/soc/codecs/sgtl5000.c - Linux source code
/* read chip information */
ret = regmap_read(sgtl5000->regmap, SGTL5000_CHIP_ID, ®);
if (ret) {
dev_err(&client->dev, "Error reading chip id %d\n", ret);
goto disable_clk;
}
Any suggestion why its failing, ?
Hi Igor,
the sgtl5000 bring on stm32mp1 cpu using i2s
some time speaker-test utility is getting passed, some times i hear lot of noisy with no audio
speaker-test --device hw:0,0 --rate 48000 --channels 2 --format S16_LE --test wav
what will start point to debug,
sgtl5000 i2c query works confirmed by i2cdetect -y 0, but no reply from SGTL5000
Error reading chip id -6
sgtl5000.c - sound/soc/codecs/sgtl5000.c - Linux source code (v4.8) - Bootlin
/* read chip information */
ret = regmap_read(sgtl5000->regmap, SGTL5000_CHIP_ID, ®);
if (ret) {
dev_err(&client->dev, "Error reading chip id %d\n", ret);
goto disable_clk;
}
Hi Igor,
This is my existing design, which is confusing to me what to, may you elaborate what's the software solution here ?