ALSA: hda - Move audio component accesses to hdac_i915.c
authorTakashi Iwai <tiwai@suse.de>
Tue, 1 Dec 2015 11:39:38 +0000 (12:39 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Dec 2015 13:41:07 +0000 (14:41 +0100)
commite2dc7d7d8ed3019f72855af1c3dcda3fb456b488
tree5cccbc6953734de5a81082e6adbd8ebac4a4ca4b
parent788d441a164caea0a5d82e1d5bcd161820bfe62a
ALSA: hda - Move audio component accesses to hdac_i915.c

A couple of i915_audio_component ops have been added and accessed
directly from patch_hdmi.c.  Ideally all these should be factored out
into hdac_i915.c.

This patch does it, adds two new helper functions for setting N/CTS
and fetching ELD bytes.  One bonus is that the hackish widget vs port
mapping is also moved to hdac_i915.c, so that it can be fixed /
enhanced more cleanly.

Reviewed-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/hda_i915.h
sound/hda/hdac_i915.c
sound/pci/hda/patch_hdmi.c