summaryrefslogtreecommitdiff
path: root/sound/x86/intel_hdmi_lpe_audio.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-01-30 19:38:00 +0300
committerTakashi Iwai <tiwai@suse.de>2017-02-03 19:23:15 +0300
commit437af8f2946231ee141bc2a8d37063a8bb6047b0 (patch)
tree46126d38d9c82ed105c6d062541e843257089a53 /sound/x86/intel_hdmi_lpe_audio.h
parentdd895f2e9b013a5387372dbf3a7d8405aaeb494e (diff)
downloadlinux-437af8f2946231ee141bc2a8d37063a8bb6047b0.tar.xz
ALSA: x86: Call event callback directly
Currently the driver calls the event callback stored in its ctx pointer, but it's obviously inefficient. Replace it with the direct calls. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/x86/intel_hdmi_lpe_audio.h')
-rw-r--r--sound/x86/intel_hdmi_lpe_audio.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/x86/intel_hdmi_lpe_audio.h b/sound/x86/intel_hdmi_lpe_audio.h
index 0d285ce8d4e6..511bdc30dca1 100644
--- a/sound/x86/intel_hdmi_lpe_audio.h
+++ b/sound/x86/intel_hdmi_lpe_audio.h
@@ -638,16 +638,12 @@ enum had_event_type {
* HDMI Display Controller Audio Interface
*
*/
-typedef int (*had_event_call_back) (enum had_event_type event_type,
- void *ctxt_info);
-
struct hdmi_audio_event {
int type;
};
bool mid_hdmi_audio_is_busy(void *dev);
void mid_hdmi_audio_signal_event(enum had_event_type event);
-int mid_hdmi_audio_setup(had_event_call_back audio_callbacks);
int mid_hdmi_audio_read(u32 reg, u32 *val);
int mid_hdmi_audio_write(u32 reg, u32 val);