[alsa-devel] [PATCH v3 05/10] ASoC: Intel: skl-hda-dsp-generic: use snd-hda-codec-hdmi
Pierre-Louis Bossart
pierre-louis.bossart at linux.intel.com
Tue Sep 10 22:49:07 CEST 2019
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 at linux.intel.com>
> ---
> 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
More information about the Alsa-devel
mailing list