ALSA: hda: Move common haswell init to a helper
authorAnder Conselvan De Oliveira <ander.conselvan.de.oliveira@intel.com>
Thu, 13 Apr 2017 07:35:35 +0000 (13:05 +0530)
committerTakashi Iwai <tiwai@suse.de>
Thu, 13 Apr 2017 08:23:22 +0000 (10:23 +0200)
commita87a4d23e86b7ff9b3f1300774c942de139ba16a
treeda3fde8d778fe5da367b364ffc4b096875af2a51
parent49c41e1f23882f7950cff66992115bba03f1bbcf
ALSA: hda: Move common haswell init to a helper

Geminilake vendor nid is different from other Skylake variants, but rest
of the initialization code is same.

So a variable is added in hdmi_spec to store the platform specific vendor
nid and move the initialization code to a helper function to be used by
both platform specific init.

Fixes: 126cfa2f5e15 ("ALSA: hda: Add Geminilake HDMI codec ID")
Signed-off-by: Ander Conselvan De Oliveira <ander.conselvan.de.oliveira@intel.com>
Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Jaikrishna Nemallapudi <jaikrishnax.nemallapudi@intel.com>
Cc: Senthilnathan Veppur <senthilnathanx.veppur@intel.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c