blob: 6b79614a893b90dceb92e3a2945af150ff234bea [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Mengdong Lin98d8fc62015-05-19 22:29:30 +08002/*
3 * HD-Audio helpers to sync with i915 driver
4 */
5#ifndef __SOUND_HDA_I915_H
6#define __SOUND_HDA_I915_H
7
Takashi Iwaia57942b2018-07-11 16:23:16 +02008#include "hda_component.h"
David Henningsson45c053d2015-08-19 10:48:57 +02009
Mengdong Lin98d8fc62015-05-19 22:29:30 +080010#ifdef CONFIG_SND_HDA_I915
Takashi Iwaibb03ed22016-04-21 16:39:17 +020011void snd_hdac_i915_set_bclk(struct hdac_bus *bus);
Mengdong Lin98d8fc62015-05-19 22:29:30 +080012int snd_hdac_i915_init(struct hdac_bus *bus);
Mengdong Lin98d8fc62015-05-19 22:29:30 +080013#else
Takashi Iwaibb03ed22016-04-21 16:39:17 +020014static inline void snd_hdac_i915_set_bclk(struct hdac_bus *bus)
Mengdong Lin98d8fc62015-05-19 22:29:30 +080015{
Mengdong Lin98d8fc62015-05-19 22:29:30 +080016}
17static inline int snd_hdac_i915_init(struct hdac_bus *bus)
18{
19 return -ENODEV;
20}
Takashi Iwaia57942b2018-07-11 16:23:16 +020021#endif
Mengdong Lin98d8fc62015-05-19 22:29:30 +080022static inline int snd_hdac_i915_exit(struct hdac_bus *bus)
23{
Takashi Iwaia57942b2018-07-11 16:23:16 +020024 return snd_hdac_acomp_exit(bus);
Mengdong Lin98d8fc62015-05-19 22:29:30 +080025}
Mengdong Lin98d8fc62015-05-19 22:29:30 +080026
27#endif /* __SOUND_HDA_I915_H */