15 Jan
2009
15 Jan
'09
11:22 p.m.
On Thu, Jan 15, 2009 at 10:16:10PM +0000, Ian Molton wrote:
Mark Brown wrote:
- soc_ac97_ops.reset(codec->ac97);
This should check the return value, resets can and do fail.
This call returns void. So no.
Oh, sorry - thinko. You should read back the ID register and verify the value.
I cant see a way to determine the outcome of a reset on wm9705. I could program a register, then check to see it is set to its reset value, but if the codec is hung, this could cause lockups.
It shouldn't, the AC97 bus driver should time out. The goal is to make sure that the codec is live and the expected device.