mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
ASoC: SOF: Intel: HDA: Limit the number of dai drivers for nocodec mode
With a common kernel config for nocodec and codec modes, the number of DAI drivers will be set to 15 for nocodec as well. So adjust this when set the machine params for the nocodec mode if the debug flag is set. Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20230526204149.456068-4-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
fe88788779
commit
0f7b6a4330
|
|
@ -1562,7 +1562,11 @@ void hda_set_mach_params(struct snd_soc_acpi_mach *mach,
|
|||
|
||||
mach_params = &mach->mach_params;
|
||||
mach_params->platform = dev_name(sdev->dev);
|
||||
mach_params->num_dai_drivers = desc->ops->num_drv;
|
||||
if (IS_ENABLED(CONFIG_SND_SOC_SOF_NOCODEC_DEBUG_SUPPORT) &&
|
||||
sof_debug_check_flag(SOF_DBG_FORCE_NOCODEC))
|
||||
mach_params->num_dai_drivers = SOF_SKL_NUM_DAIS_NOCODEC;
|
||||
else
|
||||
mach_params->num_dai_drivers = desc->ops->num_drv;
|
||||
mach_params->dai_drivers = desc->ops->drv;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -414,10 +414,12 @@
|
|||
(HDA_DSP_BDL_SIZE / sizeof(struct sof_intel_dsp_bdl))
|
||||
|
||||
/* Number of DAIs */
|
||||
#define SOF_SKL_NUM_DAIS_NOCODEC 8
|
||||
|
||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
|
||||
#define SOF_SKL_NUM_DAIS 15
|
||||
#else
|
||||
#define SOF_SKL_NUM_DAIS 8
|
||||
#define SOF_SKL_NUM_DAIS SOF_SKL_NUM_DAIS_NOCODEC
|
||||
#endif
|
||||
|
||||
/* Intel HD Audio SRAM Window 0*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user