diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-01-30 19:44:00 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-02-03 19:24:16 +0300 |
commit | af3e5c9c5d370e262da97fb8a8310a9d578efa0d (patch) | |
tree | cac5ae564a4962cf50f2f2474dfd6436a758a371 /sound/x86 | |
parent | 033e925f68c92d058f2be67f941804e7e4f06f7c (diff) | |
download | linux-af3e5c9c5d370e262da97fb8a8310a9d578efa0d.tar.xz |
ALSA: x86: Drop unused mid_hdmi_audio_is_busy()
The function is nowhere used. Kill it.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/x86')
-rw-r--r-- | sound/x86/intel_hdmi_lpe_audio.c | 23 | ||||
-rw-r--r-- | sound/x86/intel_hdmi_lpe_audio.h | 1 |
2 files changed, 0 insertions, 24 deletions
diff --git a/sound/x86/intel_hdmi_lpe_audio.c b/sound/x86/intel_hdmi_lpe_audio.c index f5249b0a4ce4..452128a941cb 100644 --- a/sound/x86/intel_hdmi_lpe_audio.c +++ b/sound/x86/intel_hdmi_lpe_audio.c @@ -83,29 +83,6 @@ static struct hdmi_lpe_audio_ctx *get_hdmi_context(void) return ctx; } -/* - * return whether HDMI audio device is busy. - */ -bool mid_hdmi_audio_is_busy(void *ddev) -{ - struct hdmi_lpe_audio_ctx *ctx; - int hdmi_audio_busy = 0; - struct hdmi_audio_event hdmi_audio_event; - - dev_dbg(&hlpe_pdev->dev, "%s: Enter", __func__); - - ctx = platform_get_drvdata(hlpe_pdev); - - if (hlpe_state == hdmi_connector_status_disconnected) { - /* HDMI is not connected, assuming audio device is idle. */ - return false; - } - - hdmi_audio_event.type = HAD_EVENT_QUERY_IS_AUDIO_BUSY; - hdmi_audio_busy = hdmi_audio_query(ctx->had, hdmi_audio_event); - return hdmi_audio_busy != 0; -} - void mid_hdmi_audio_signal_event(enum had_event_type event) { struct hdmi_lpe_audio_ctx *ctx; diff --git a/sound/x86/intel_hdmi_lpe_audio.h b/sound/x86/intel_hdmi_lpe_audio.h index 511bdc30dca1..a1c3aa0fbc57 100644 --- a/sound/x86/intel_hdmi_lpe_audio.h +++ b/sound/x86/intel_hdmi_lpe_audio.h @@ -642,7 +642,6 @@ 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_read(u32 reg, u32 *val); |