]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Pass snd_intelhad object to helpers
authorTakashi Iwai <tiwai@suse.de>
Mon, 30 Jan 2017 16:23:39 +0000 (17:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:22:16 +0000 (17:22 +0100)
commit75f1d2021a9ff45f2cd3b1fd1bfb3f7e9f149018
treec2dcfcc9d93a6324f201b43a92c83d2802623163
parent4db0febe16059d5c31a1d289fa2b1053d50d7215
ALSA: x86: Pass snd_intelhad object to helpers

For reducing the global variable reference, keep snd_intelhad object
in the context and pass it to each helper.  It's a preliminary change
for further cleanup.

This also includes the simplification of the probe procedure: the LPE
platform driver directly gets the created snd_intelhad object by
hdmi_audio_probe(), and passes it to each helper and destructor,
hdmi_audio_remove().  The hdmi_audio_probe() function doesn't call the
back-registration any longer, which is fairly useless.  The LPE
platform driver initializes the stuff instead at the right place, and
calls the wq after the object creation in the probe function itself.

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
sound/x86/intel_hdmi_lpe_audio.c
sound/x86/intel_hdmi_lpe_audio.h