Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 2 | /* |
| 3 | * HD-Audio helpers to sync with i915 driver |
| 4 | */ |
| 5 | #ifndef __SOUND_HDA_I915_H |
| 6 | #define __SOUND_HDA_I915_H |
| 7 | |
Takashi Iwai | a57942b | 2018-07-11 16:23:16 +0200 | [diff] [blame] | 8 | #include "hda_component.h" |
David Henningsson | 45c053d | 2015-08-19 10:48:57 +0200 | [diff] [blame] | 9 | |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 10 | #ifdef CONFIG_SND_HDA_I915 |
Takashi Iwai | bb03ed2 | 2016-04-21 16:39:17 +0200 | [diff] [blame] | 11 | void snd_hdac_i915_set_bclk(struct hdac_bus *bus); |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 12 | int snd_hdac_i915_init(struct hdac_bus *bus); |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 13 | #else |
Takashi Iwai | bb03ed2 | 2016-04-21 16:39:17 +0200 | [diff] [blame] | 14 | static inline void snd_hdac_i915_set_bclk(struct hdac_bus *bus) |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 15 | { |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 16 | } |
| 17 | static inline int snd_hdac_i915_init(struct hdac_bus *bus) |
| 18 | { |
| 19 | return -ENODEV; |
| 20 | } |
Takashi Iwai | a57942b | 2018-07-11 16:23:16 +0200 | [diff] [blame] | 21 | #endif |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 22 | static inline int snd_hdac_i915_exit(struct hdac_bus *bus) |
| 23 | { |
Takashi Iwai | a57942b | 2018-07-11 16:23:16 +0200 | [diff] [blame] | 24 | return snd_hdac_acomp_exit(bus); |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 25 | } |
Mengdong Lin | 98d8fc6 | 2015-05-19 22:29:30 +0800 | [diff] [blame] | 26 | |
| 27 | #endif /* __SOUND_HDA_I915_H */ |