]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Embed snd_intelhad into snd_card
authorTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2017 07:14:34 +0000 (08:14 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:30:26 +0000 (17:30 +0100)
commitcfbd282487afb1959414b6d0a359eb20743e11f9
treed7d1246ea60f2ade27a4f4277d7e80211d808bef
parent97dbcc4300b848812c555bb13cbb62122a46e084
ALSA: x86: Embed snd_intelhad into snd_card

Instead of allocating snd_intelhad struct, use the card's private_data
and embed it.  It simplifies the code a lot.

While we're at it, embed had_stream into snd_intelhad struct instead
of individually allocating, and rename had_pvt_data to a bit more
specific name, had_stream_data.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c
sound/x86/intel_hdmi_audio.h
sound/x86/intel_hdmi_audio_if.c