ALSA: pcm: Embed struct device
authorTakashi Iwai <tiwai@suse.de>
Thu, 29 Jan 2015 16:32:26 +0000 (17:32 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Feb 2015 13:42:42 +0000 (14:42 +0100)
commitef46c7af93f98d07cd0ed891f93a26d135785526
tree6635fa69835d0de4fbc5e1449f70095d9d4817f0
parent7b46160000197209f7ebca8b92bdbb75795c473f
ALSA: pcm: Embed struct device

Like previous patches, at this time we embed the struct device into
PCM object.  However, this needs a bit more caution: struct snd_pcm
doesn't own one device but two, for both playback and capture!  Thus
not struct snd_pcm but struct snd_pcm_str object contains the device.

Along with this change, pcm->dev field is dropped for avoiding
confusion.  It was meant to point to a non-standard parent.  But,
since now we can touch each struct device directly, we can manipulate
the parent field easily there, too.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/aoa/soundbus/i2sbus/pcm.c
sound/core/pcm.c
sound/pci/hda/hda_controller.c
sound/soc/intel/sst-mfld-platform-pcm.c