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)
commit5647aec26640ffdf099d51b3403eaeac10d74147
treed7d1246ea60f2ade27a4f4277d7e80211d808bef
parentdae15a9d960e513d5b60c00c306cddd87465f1c4
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