Skip to content

Commit 5b31d21

Browse files
committed
ASoC: soc_sdw_utils: export asoc_sdw_get_dai_type
asoc_sdw_get_dai_type() is quite useful to convert SDCA function types to SDW DAI types. It can be used by other drivers. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent adf7143 commit 5b31d21

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/sound/soc_sdw_utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ int asoc_sdw_count_sdw_endpoints(struct snd_soc_card *card, int *num_devs, int *
169169

170170
struct asoc_sdw_dailink *asoc_sdw_find_dailink(struct asoc_sdw_dailink *dailinks,
171171
const struct snd_soc_acpi_endpoint *new);
172+
int asoc_sdw_get_dai_type(u32 type);
172173

173174
int asoc_sdw_parse_sdw_endpoints(struct snd_soc_card *card,
174175
struct asoc_sdw_dailink *soc_dais,

sound/soc/sdw_utils/soc_sdw_utils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ struct asoc_sdw_dailink *asoc_sdw_find_dailink(struct asoc_sdw_dailink *dailinks
11591159
}
11601160
EXPORT_SYMBOL_NS(asoc_sdw_find_dailink, "SND_SOC_SDW_UTILS");
11611161

1162-
static int asoc_sdw_get_dai_type(u32 type)
1162+
int asoc_sdw_get_dai_type(u32 type)
11631163
{
11641164
switch (type) {
11651165
case SDCA_FUNCTION_TYPE_SMART_AMP:
@@ -1177,6 +1177,7 @@ static int asoc_sdw_get_dai_type(u32 type)
11771177
return -EINVAL;
11781178
}
11791179
}
1180+
EXPORT_SYMBOL_NS(asoc_sdw_get_dai_type, "SND_SOC_SDW_UTILS");
11801181

11811182
/*
11821183
* Check if the SDCA endpoint is present by the SDW peripheral

0 commit comments

Comments
 (0)