linux_dsm_epyc7002/sound/soc/sof
Takashi Iwai d4ff1b3917 ASoC: SOF: Intel: Initialize hdaudio bus properly
The SOF HD-audio bus has its house-made initialization code.  It's
supposedly for making the code independent from HD-audio bus drivers.
However, this is error-prone, and above all, the SOF driver has
already dependency on HD-audio bus driver when CONFIG_SND_SOF_HDA is
set.  That is, if this Kconfig is set, there is no reason to avoid the
call to the proper bus init function.

Also, the ext_ops that is set at bus initialization can be better
handled inside sof_hda_bus_init().  We don't need to refer this
outside the bus initialization.

So this patch addresses these issues:
- sof_hda_bus_init() calls nothing but snd_hdac_ext_bus_init()
  when CONFIG_SND_SOF_HDA is set.  Otherwise some fields are
  initialized locally like before for avoiding the dependency.
- ext_ops is referred inside sof_hda_bus_init().  The ext_ops argument
  of snd_hda_bus_init() is dropped.

Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-08-08 16:38:12 +02:00
..
intel ASoC: SOF: Intel: Initialize hdaudio bus properly 2019-08-08 16:38:12 +02:00
xtensa sound fixes for 5.2-rc5 2019-06-14 05:37:06 -10:00
control.c ASoC: SOF: dont wake dsp up in kcontrol IO 2019-06-13 19:56:07 +01:00
core.c ASoC: SOF: core: fix error handling with the probe workqueue 2019-05-28 15:47:19 +01:00
debug.c ASoC: SOF: debug: fix possible memory leak in sof_dfsentry_write() 2019-07-05 17:58:51 +01:00
ipc.c ASoC: SOF: ipc: clarify operator precedence 2019-06-13 19:54:38 +01:00
Kconfig Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
loader.c ASoC: SOF: add mode parameter for snd_sof_debugfs_buf_item 2019-06-03 17:47:13 +01:00
Makefile ASoC: SOF: Add Build support for SOF core and Intel drivers 2019-04-28 02:51:46 +09:00
nocodec.c ASoC: sof: use modern dai_link style 2019-06-06 22:10:38 +01:00
ops.c ASoC: SOF: Fix a compile warning with CONFIG_PCI=n 2019-05-07 11:23:57 +09:00
ops.h It's been a relatively busy cycle for docs: 2019-07-09 12:34:26 -07:00
pcm.c ASoC: SOF: Intel: hda: couple host and link DMA during FE hw_free 2019-06-17 13:44:15 +01:00
pm.c ASoC: SOF: add runtime idle callback 2019-07-06 12:23:24 +01:00
sof-acpi-dev.c ASoC: SOF: add runtime idle callback 2019-07-06 12:23:24 +01:00
sof-pci-dev.c ASoC: SOF: add runtime idle callback 2019-07-06 12:23:24 +01:00
sof-priv.h ASoC: SOF: add runtime idle callback 2019-07-06 12:23:24 +01:00
topology.c ASoC: SOF: Intel: hda: assign link DMA channel at run-time 2019-06-17 13:37:16 +01:00
trace.c ASoC: SOF: send time stamp to FW for alignment 2019-06-03 18:41:23 +01:00
utils.c ASoC: SOF: Add utils 2019-04-28 02:49:47 +09:00