]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Add support for allocating AC'97 device before registering it
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 23 Jan 2015 15:21:36 +0000 (16:21 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 26 Jan 2015 19:14:20 +0000 (19:14 +0000)
commit30e7a380720f21418b6cc1af1d320dfe000e50be
treef46ebce8e817474d3ff12139dcfc8f47cba4d00c
parentc687bb41805a1238a38a086952014d5682516d9d
ASoC: Add support for allocating AC'97 device before registering it

In some cases it is necessary to before additional operations after the
device has been initialized and before the device is registered. This can
for example be resetting the device.

This patch introduces a new function snd_soc_alloc_ac97_codec() which is
similar to snd_soc_new_ac97_codec() except that it does not register the
device. Any users of snd_soc_alloc_ac97_codec() are responsible for calling
device_add() manually.

Fixes: 66b44ae53ae6 ("ASoC: ac97: Drop delayed device registration")
Reported-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Manuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
include/sound/soc.h
sound/soc/soc-ac97.c