ASoC: codecs: adau1701: factor out firmware reset
authorDaniel Mack <zonque@gmail.com>
Fri, 7 Jun 2013 11:53:04 +0000 (13:53 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 12 Jun 2013 15:21:27 +0000 (16:21 +0100)
commitf724ba3b07aa5a012b7b0be323484195b5026282
tree9632ea934d4de339a5580c78708e7c5331fbd10b
parent04561eacaa6ccd1988e468cdcbf4acc475ae2221
ASoC: codecs: adau1701: factor out firmware reset

Some runtime-determined constraints might need to be satisfied prior to
firmware loading, so the actual download and releasing the device from
reset has to be postponed. Factor it out first, so we have everything at
one place.

This also changes the behaviour in a way that adau1701_i2c_probe() will
assert the reset line, and wait for the codec probe to release it.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/adau1701.c