ALSA: pcm: Fix pcm_class sysfs output
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 Jun 2015 09:56:22 +0000 (11:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 Jun 2015 09:56:22 +0000 (11:56 +0200)
commit60b93030b44a8c2cd015cebe5624fd7552ec67ec
tree0912aa23b905221cedb19f7956b228f99766e06f
parentc7988afde761cdb571b4e9e8d2ee741dea4b5389
ALSA: pcm: Fix pcm_class sysfs output

The pcm_class sysfs of each PCM substream gives only "none" since the
recent code change to embed the struct device.  Fix the code to point
directly to the embedded device object properly.

Fixes: ef46c7af93f9 ('ALSA: pcm: Embed struct device')
Cc: <stable@vger.kernel.org> # v4.0+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm.c