]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Create own device struct for each codec
authorTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2014 06:53:47 +0000 (07:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Feb 2014 11:12:54 +0000 (12:12 +0100)
commit03c98d41fea57294cab5a978235201cbf8ff085a
treeb3f2946b2f335fa4f7c13c68e199d980279d1e5b
parentd739a5fbb4d7363348eec9c7903cb2bbf32567ae
ALSA: hda - Create own device struct for each codec

As the HD-audio is treated individually in each codec driver, it's
more convenient to assign an own struct device to each codec object.
Then we'll be able to use dev_err() more easily for each codec, for
example.

For achieving it, this patch just creates an object "hdaudioCxDy".
It belongs to sound class instead of creating a new bus, just for
simplicity, at this stage.  No pm ops is implemented in the device
struct level but currently it's merely a container.  The PCM and hwdep
devices are now children of this codec device.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_hwdep.c
sound/pci/hda/hda_intel.c