]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Mandate to pass a device pointer at card creation time
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Jan 2014 11:51:12 +0000 (12:51 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Feb 2014 09:58:20 +0000 (10:58 +0100)
commit816a0144cdddab47d61acbfeb1d205367f9c45e7
treeb419a57e8af4b904247c0ffd3a7f0cc924bf2278
parent639809e6eceee95fefb3af763042a715ee16e21b
ALSA: Mandate to pass a device pointer at card creation time

This is a part of preliminary works for modernizing the ALSA device
structure.  So far, we set card->dev at later point after the object
creation.  Because of this, the core layer doesn't always know which
device is being handled before it's actually registered, and it makes
impossible to show the device in error messages, for example.  The
first goal is to achieve a proper struct device initialization at the
very beginning of probing.

As a first step, this patch introduces snd_card_new() function (yes
there was the same named function in the very past), in order to
receive the parent device pointer from the very beginning.
snd_card_create() is marked as deprecated.

At this point, there is no functional change other than that.  The
actual change of the device creation scheme will follow later.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Documentation/DocBook/writing-an-alsa-driver.tmpl
include/sound/core.h
sound/core/init.c