Re: [PATCH v3 05/10] ASoC: Intel: skl-hda-dsp-generic: use snd-hda-codec-hdmi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 9/10/19 1:29 PM, Kai Vehmanen wrote:
Add support for using snd-hda-codec-hdmi driver for HDMI/DP
instead of ASoC hdac-hdmi. This is aligned with how other
HDA codecs are already handled.

When snd-hda-codec-hdmi is used, the PCM device numbers are
parsed from card topology and passed to the codec driver.
This needs to be done at runtime as topology changes may
affect PCM device allocation.

Signed-off-by: Kai Vehmanen <kai.vehmanen@xxxxxxxxxxxxxxx>
---
  include/sound/soc-acpi.h                     |  2 +
  sound/soc/intel/boards/hda_dsp_common.h      | 87 ++++++++++++++++++++
  sound/soc/intel/boards/skl_hda_dsp_common.c  | 10 ++-
  sound/soc/intel/boards/skl_hda_dsp_common.h  | 23 ++++++
  sound/soc/intel/boards/skl_hda_dsp_generic.c |  1 +
  5 files changed, 122 insertions(+), 1 deletion(-)
  create mode 100644 sound/soc/intel/boards/hda_dsp_common.h

diff --git a/include/sound/soc-acpi.h b/include/sound/soc-acpi.h
index 35b38e41e5b2..26d57bc9a91e 100644
--- a/include/sound/soc-acpi.h
+++ b/include/sound/soc-acpi.h
@@ -60,12 +60,14 @@ static inline struct snd_soc_acpi_mach *snd_soc_acpi_codec_list(void *arg)
   * @acpi_ipc_irq_index: used for BYT-CR detection
   * @platform: string used for HDaudio codec support
   * @codec_mask: used for HDAudio support
+ * @common_hdmi_codec_drv: use commom HDAudio HDMI codec driver
   */
  struct snd_soc_acpi_mach_params {
  	u32 acpi_ipc_irq_index;
  	const char *platform;
  	u32 codec_mask;
  	u32 dmic_num;
+	bool common_hdmi_codec_drv;

That change would need to be moved to a separate patch earlier to avoid breaking compilation of patch 4
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux