OSDN Git Service

ASoC: wm8731: initialize the hardware when loading the codec driver
authorSergey Kiselev <sergey.kiselev@intel.com>
Fri, 5 Jun 2015 18:55:27 +0000 (11:55 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2015 11:53:57 +0000 (12:53 +0100)
commit6702dfcc571d962df499f7466f54e07d044e6cd1
treebb40970ac06e0169b4fbe5b5327beddfb1fd2879
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
ASoC: wm8731: initialize the hardware when loading the codec driver

This patch moves the requesting supplies, hardware reset and
initialization from wm8731_probe to wm8731_i2c_probe and wm8731_spi_probe.
So that the codec hardware is initialized when loading the codec driver,
and not when loading the machine driver. This avoids unnecesary hardware
resets and re-initializations when re-loading the machine driver.

Signed-off-by: Sergey Kiselev <sergey.kiselev@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8731.c