OSDN Git Service

drm/i915: Split audio component to a generic type
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Jul 2018 13:17:22 +0000 (15:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Jul 2018 20:25:19 +0000 (22:25 +0200)
commitae891abe7c2ccf75b69ca8330225e37ecc06924e
treeb5b8e9c886221b22ae76e7a3480cad15fa1086b4
parent9a9b13dd275dfe49ee0cf3ae5dc931069eb41475
drm/i915: Split audio component to a generic type

For allowing other drivers to use the DRM audio component, rename the
i915_audio_component_* with drm_audio_component_*, and split the
generic part into drm_audio_component.h.  The i915 specific stuff
remains in struct i915_audio_component, which contains
drm_audio_component as the base.

The license of drm_audio_component.h is kept to MIT as same as the the
original i915_component.h.

This is a preliminary change for further development, and no
functional changes by this patch itself, merely code-split and
renames.

v1->v2: Use SPDX for drm_audio_component.h, fix remaining i915
        argument in drm_audio_component.h

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/gpu/drm/i915/intel_audio.c
include/drm/drm_audio_component.h [new file with mode: 0644]
include/drm/i915_component.h
include/sound/hda_i915.h
include/sound/hdaudio.h
sound/hda/hdac_i915.c
sound/pci/hda/patch_hdmi.c
sound/soc/codecs/hdac_hdmi.c