summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2024-05-29 14:59:36 +0100
committerMark Brown <broonie@kernel.org>2024-05-29 14:59:36 +0100
commitd8b3a77bead11711a66d54554e20e8c7d549cd08 (patch)
tree94d9695e420e1b2e2c7465e5c08ef298d429aed5 /include/sound
parente46e55b8142c2b02972e4a73753fa330a4541315 (diff)
parent2502f8dd8c30edbca9253d5999294f58211039b1 (diff)
downloadlwn-d8b3a77bead11711a66d54554e20e8c7d549cd08.tar.gz
lwn-d8b3a77bead11711a66d54554e20e8c7d549cd08.zip
Support Tegra I2S client format conversion
Merge series from Sameer Pujar <spujar@nvidia.com>: The AHUB HW modules are interconnected with CIF which are capable of supporting Channel and Sample bit format conversion. Due to this, the I2S Client can have different Channel and Sample bit from the hw_params() and this config is passed from CIF port of I2S DT node which can help to perform this conversion. - First change to split simple_fixup_sample_fmt to support returning sample format value - Second patch to support Tegra I2S client channel and sample format programming based on CIF port from DT node.
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/simple_card_utils.h2
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,