未验证 提交 b947d2b4 编写于 作者: C Cezary Rojewski 提交者: Mark Brown

ASoC: Intel: Skylake: Select first entry for singular pipe config arrays

When pipe does not expose multiple configuration options, always select
the first entry without searching for matching one.
Signed-off-by: NCezary Rojewski <cezary.rojewski@intel.com>
Tested-by: NLukasz Majczak <lma@semihalf.com>
Link: https://lore.kernel.org/r/20210818075742.1515155-12-cezary.rojewski@intel.comSigned-off-by: NMark Brown <broonie@kernel.org>
上级 5b27a71c
...@@ -640,8 +640,9 @@ skl_tplg_get_pipe_config(struct skl_dev *skl, struct skl_module_cfg *mconfig) ...@@ -640,8 +640,9 @@ skl_tplg_get_pipe_config(struct skl_dev *skl, struct skl_module_cfg *mconfig)
return 0; return 0;
} }
if (pipe->conn_type == SKL_PIPE_CONN_TYPE_NONE) { if (pipe->conn_type == SKL_PIPE_CONN_TYPE_NONE || pipe->nr_cfgs == 1) {
dev_dbg(skl->dev, "No conn_type detected, take 0th config\n"); dev_dbg(skl->dev, "No conn_type or just 1 pathcfg, taking 0th for %d\n",
pipe->ppl_id);
pipe->cur_config_idx = 0; pipe->cur_config_idx = 0;
pipe->memory_pages = pconfig->mem_pages; pipe->memory_pages = pconfig->mem_pages;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册