diff options
author | Mohan Kumar <mkumard@nvidia.com> | 2024-05-27 12:56:06 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-05-27 13:59:49 +0100 |
commit | 8cb3aeebcb86088e30232277c9bee9054837442b (patch) | |
tree | fbaa86cf01dc791e8bb91ac1438cb63cec33ad46 /include/sound | |
parent | 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff) |
ASoC: simple-card-utils: Split simple_fixup_sample_fmt func
Split the simple_fixup_sample_fmt() into two functions by adding
one more function named simple_util_get_sample_fmt() to return
the sample format value.
This is useful for drivers that wish to simply get the sample format
without setting the mask.
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://msgid.link/r/20240527125608.2461300-2-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/simple_card_utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index ad67957b7b48..2c2279d082ec 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -174,6 +174,8 @@ void simple_util_parse_convert(struct device_node *np, char *prefix, struct simple_util_data *data); bool simple_util_is_convert_required(const struct simple_util_data *data); +int simple_util_get_sample_fmt(struct simple_util_data *data); + int simple_util_parse_routing(struct snd_soc_card *card, char *prefix); int simple_util_parse_widgets(struct snd_soc_card *card, |