aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-07 18:27:59 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2019-02-08 10:58:59 -0500
commit8857c7d065e900a0b3829c97634c99501b606541 (patch)
treec84d6ab90fefbeacc17abded0f010364211a5039 /include/sound
parent3521ee994bca90c57b539e106ff7e12a839aa8ea (diff)
i915/snd_hdac: I915 subcomponent for the snd_hdac
Since we need multiple components for I915 for different purposes (Audio & Mei_hdcp), we adopt the subcomponents methodology introduced by the previous patch (mentioned below). Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Mon Jan 28 17:08:20 2019 +0530 components: multiple components for a device Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by-by: Ramalingam C <ramalinagm.c@intel.com> (commit message) Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> (code) cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> cc: Russell King <rmk+kernel@arm.linux.org.uk> cc: Rafael J. Wysocki <rafael@kernel.org> cc: Jaroslav Kysela <perex@perex.cz> cc: Takashi Iwai <tiwai@suse.com> cc: Rodrigo Vivi <rodrigo.vivi@intel.com> cc: Jani Nikula <jani.nikula@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190207232759.14553-4-daniel.vetter@ffwll.ch
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/hda_component.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sound/hda_component.h b/include/sound/hda_component.h
index 2ec31b358950..d4804c72d959 100644
--- a/include/sound/hda_component.h
+++ b/include/sound/hda_component.h
@@ -20,7 +20,7 @@ int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t nid, int dev_id,
20 bool *audio_enabled, char *buffer, int max_bytes); 20 bool *audio_enabled, char *buffer, int max_bytes);
21int snd_hdac_acomp_init(struct hdac_bus *bus, 21int snd_hdac_acomp_init(struct hdac_bus *bus,
22 const struct drm_audio_component_audio_ops *aops, 22 const struct drm_audio_component_audio_ops *aops,
23 int (*match_master)(struct device *, void *), 23 int (*match_master)(struct device *, int, void *),
24 size_t extra_size); 24 size_t extra_size);
25int snd_hdac_acomp_exit(struct hdac_bus *bus); 25int snd_hdac_acomp_exit(struct hdac_bus *bus);
26int snd_hdac_acomp_register_notifier(struct hdac_bus *bus, 26int snd_hdac_acomp_register_notifier(struct hdac_bus *bus,
@@ -47,7 +47,8 @@ static inline int snd_hdac_acomp_get_eld(struct hdac_device *codec, hda_nid_t ni
47} 47}
48static inline int snd_hdac_acomp_init(struct hdac_bus *bus, 48static inline int snd_hdac_acomp_init(struct hdac_bus *bus,
49 const struct drm_audio_component_audio_ops *aops, 49 const struct drm_audio_component_audio_ops *aops,
50 int (*match_master)(struct device *, void *), 50 int (*match_master)(struct device *,
51 int, void *),
51 size_t extra_size) 52 size_t extra_size)
52{ 53{
53 return -ENODEV; 54 return -ENODEV;