Skip to content

Commit a288192

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 03b3e3c commit a288192

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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
@@ -1221,7 +1221,7 @@ struct asoc_sdw_dailink *asoc_sdw_find_dailink(struct asoc_sdw_dailink *dailinks
12211221
}
12221222
EXPORT_SYMBOL_NS(asoc_sdw_find_dailink, "SND_SOC_SDW_UTILS");
12231223

1224-
static int asoc_sdw_get_dai_type(u32 type)
1224+
int asoc_sdw_get_dai_type(u32 type)
12251225
{
12261226
switch (type) {
12271227
case SDCA_FUNCTION_TYPE_SMART_AMP:
@@ -1239,6 +1239,7 @@ static int asoc_sdw_get_dai_type(u32 type)
12391239
return -EINVAL;
12401240
}
12411241
}
1242+
EXPORT_SYMBOL_NS(asoc_sdw_get_dai_type, "SND_SOC_SDW_UTILS");
12421243

12431244
/*
12441245
* Check if the SDCA endpoint is present by the SDW peripheral

0 commit comments

Comments
 (0)