asoc: use ASoC API to set driver component name prefix

during devm_snd_soc_register_card(), the name_prefix can be set
if "sound-name-prefix" is provided in the DT nodes.

The original approach to set prefix would possibly cause ASoC
component probe failed if prefix has not set before probe is called

Change-Id: Ie78d042cda24b7d1d926223d476786e13d965ac7
Signed-off-by: Junkai Cai <quic_junkai@quicinc.com>
这个提交包含在:
Junkai Cai
2021-11-11 16:49:50 -08:00
提交者 Gerrit - the friendly Code Review server
父节点 7795165e0a
当前提交 97e37eeee3
修改 5 个文件,包含 1 行新增56 行删除

查看文件

@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
*/
#ifndef WSA883X_INTERNAL_H
@@ -123,7 +123,6 @@ struct wsa883x_priv {
int num_supplies;
struct regulator_bulk_data *supplies;
unsigned long status_mask;
char *wsa883x_name_prefix;
struct snd_soc_dai_driver *dai_driver;
struct snd_soc_component_driver *driver;
};