diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-04-11 08:36:30 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-04-11 08:36:30 -0400 |
commit | 9b0dcd0e5a27958b57e3e390f63c098d63a055da (patch) | |
tree | de778d683f121d3062df316994e9c4cf195eb12c /sound/hda | |
parent | d7a181da2dfa3190487c446042ba01e07d851c74 (diff) | |
parent | ac71317e6be01812cc0c54d8be6d3c1139c8380b (diff) |
Merge tag 'asoc-fix-v5.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
ASoC: Fixes for v5.1
A few core fixes along with the driver specific ones, mainly fixing
small issues that only affect x86 platforms for various reasons (their
unusual machine enumeration mechanisms mainly, plus a fix for error
handling in topology).
There's some of the driver fixes that look larger than they are, like
the hdmi-codec changes which resulted in an indentation change, and most
of the other large changes are for new drivers like the STM32 changes.
Diffstat (limited to 'sound/hda')
-rw-r--r-- | sound/hda/hdac_component.c | 4 | ||||
-rw-r--r-- | sound/hda/hdac_i915.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sound/hda/hdac_component.c b/sound/hda/hdac_component.c index 6b5caee61c6e..1ea51e3b942a 100644 --- a/sound/hda/hdac_component.c +++ b/sound/hda/hdac_component.c | |||
@@ -273,7 +273,7 @@ EXPORT_SYMBOL_GPL(snd_hdac_acomp_register_notifier); | |||
273 | */ | 273 | */ |
274 | int snd_hdac_acomp_init(struct hdac_bus *bus, | 274 | int snd_hdac_acomp_init(struct hdac_bus *bus, |
275 | const struct drm_audio_component_audio_ops *aops, | 275 | const struct drm_audio_component_audio_ops *aops, |
276 | int (*match_master)(struct device *, void *), | 276 | int (*match_master)(struct device *, int, void *), |
277 | size_t extra_size) | 277 | size_t extra_size) |
278 | { | 278 | { |
279 | struct component_match *match = NULL; | 279 | struct component_match *match = NULL; |
@@ -292,7 +292,7 @@ int snd_hdac_acomp_init(struct hdac_bus *bus, | |||
292 | bus->audio_component = acomp; | 292 | bus->audio_component = acomp; |
293 | devres_add(dev, acomp); | 293 | devres_add(dev, acomp); |
294 | 294 | ||
295 | component_match_add(dev, &match, match_master, bus); | 295 | component_match_add_typed(dev, &match, match_master, bus); |
296 | ret = component_master_add_with_match(dev, &hdac_component_master_ops, | 296 | ret = component_master_add_with_match(dev, &hdac_component_master_ops, |
297 | match); | 297 | match); |
298 | if (ret < 0) | 298 | if (ret < 0) |
diff --git a/sound/hda/hdac_i915.c b/sound/hda/hdac_i915.c index 27eb0270a711..575198bd3cd0 100644 --- a/sound/hda/hdac_i915.c +++ b/sound/hda/hdac_i915.c | |||
@@ -82,9 +82,11 @@ void snd_hdac_i915_set_bclk(struct hdac_bus *bus) | |||
82 | } | 82 | } |
83 | EXPORT_SYMBOL_GPL(snd_hdac_i915_set_bclk); | 83 | EXPORT_SYMBOL_GPL(snd_hdac_i915_set_bclk); |
84 | 84 | ||
85 | static int i915_component_master_match(struct device *dev, void *data) | 85 | static int i915_component_master_match(struct device *dev, int subcomponent, |
86 | void *data) | ||
86 | { | 87 | { |
87 | return !strcmp(dev->driver->name, "i915"); | 88 | return !strcmp(dev->driver->name, "i915") && |
89 | subcomponent == I915_COMPONENT_AUDIO; | ||
88 | } | 90 | } |
89 | 91 | ||
90 | /* check whether intel graphics is present */ | 92 | /* check whether intel graphics is present */ |