JackOfAll wrote:
> What I mean is I'm not convinced it is a buggy driver per-se, more that
> there is a timing issue. ie. one proc core is trying to read a reg to
> init the sgtl5000, while the other proc core is trying to init the SDHC
> card, and something to do with using the faster SDHC card causes the
> reading of the audio reg to fail..... Don't know, just thinking out
> loud......
I suspect a timing issue too - don't like the look of the udelay in
here....
Code:
--------------------
ret = regulator_bulk_enable(ARRAY_SIZE(sgtl5000->supplies),
sgtl5000->supplies);
if (ret)
goto err_regulator_free;
/* wait for all power rails bring up */
udelay(10);
/* read chip information */
reg = snd_soc_read(codec, SGTL5000_CHIP_ID);
if (((reg & SGTL5000_PARTID_MASK) >> SGTL5000_PARTID_SHIFT) !=
SGTL5000_PARTID_PART_ID) {
dev_err(codec->dev,
"Device with ID register %x is not a sgtl5000\n", reg);
ret = -ENODEV;
goto err_regulator_disable;
}
--------------------
------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=98190
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix