mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-08 23:04:35 +08:00
bc47256afe
Sparse throws the following warning: sound/soc/intel/boards/glk_rt5682_max98357a.c:622:25: error: too long initializer-string for array of char(no space for nul char) Fix by using the 'mx' acronym for Maxim Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Link: https://lore.kernel.org/r/20210621194057.21711-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* soc-acpi-intel-glk-match.c - tables and support for GLK ACPI enumeration.
|
|
*
|
|
* Copyright (c) 2018, Intel Corporation.
|
|
*
|
|
*/
|
|
|
|
#include <sound/soc-acpi.h>
|
|
#include <sound/soc-acpi-intel-match.h>
|
|
|
|
static struct snd_soc_acpi_codecs glk_codecs = {
|
|
.num_codecs = 1,
|
|
.codecs = {"MX98357A"}
|
|
};
|
|
|
|
struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[] = {
|
|
{
|
|
.id = "INT343A",
|
|
.drv_name = "glk_alc298s_i2s",
|
|
.fw_filename = "intel/dsp_fw_glk.bin",
|
|
.sof_fw_filename = "sof-glk.ri",
|
|
.sof_tplg_filename = "sof-glk-alc298.tplg",
|
|
},
|
|
{
|
|
.id = "DLGS7219",
|
|
.drv_name = "glk_da7219_mx98357a",
|
|
.fw_filename = "intel/dsp_fw_glk.bin",
|
|
.machine_quirk = snd_soc_acpi_codec_list,
|
|
.quirk_data = &glk_codecs,
|
|
.sof_fw_filename = "sof-glk.ri",
|
|
.sof_tplg_filename = "sof-glk-da7219.tplg",
|
|
},
|
|
{
|
|
.id = "10EC5682",
|
|
.drv_name = "glk_rt5682_mx98357a",
|
|
.fw_filename = "intel/dsp_fw_glk.bin",
|
|
.machine_quirk = snd_soc_acpi_codec_list,
|
|
.quirk_data = &glk_codecs,
|
|
.sof_fw_filename = "sof-glk.ri",
|
|
.sof_tplg_filename = "sof-glk-rt5682.tplg",
|
|
},
|
|
{
|
|
.id = "10134242",
|
|
.drv_name = "glk_cs4242_mx98357a",
|
|
.fw_filename = "intel/dsp_fw_glk.bin",
|
|
.machine_quirk = snd_soc_acpi_codec_list,
|
|
.quirk_data = &glk_codecs,
|
|
.sof_fw_filename = "sof-glk.ri",
|
|
.sof_tplg_filename = "sof-glk-cs42l42.tplg",
|
|
},
|
|
|
|
{},
|
|
};
|
|
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_glk_machines);
|