]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ASoC: tegra: Add S8 PCM format support for MVC
authorAnupama Kunkulagunta <akunkulagunt@nvidia.com>
Tue, 28 Apr 2026 05:12:16 +0000 (05:12 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 29 Apr 2026 02:15:05 +0000 (11:15 +0900)
Add handling for SNDRV_PCM_FORMAT_S8 in the MVC audio CIF
configuration. This allows 8-bit PCM streams to be processed
by setting the appropriate TEGRA_ACIF_BITS_8 format in the
CIF configuration.

Signed-off-by: Anupama Kunkulagunta <akunkulagunt@nvidia.com>
Signed-off-by: Sheetal <sheetal@nvidia.com>
Link: https://patch.msgid.link/20260428051216.2746030-1-sheetal@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra210_mvc.c

index 2c299704ef4f2fd805481f66bd903e2758d8f17a..b55f8142c4a47bcaf82cc4d76c94efe946d4ffdc 100644 (file)
@@ -438,6 +438,9 @@ static int tegra210_mvc_set_audio_cif(struct tegra210_mvc *mvc,
        channels = params_channels(params);
 
        switch (params_format(params)) {
+       case SNDRV_PCM_FORMAT_S8:
+               audio_bits = TEGRA_ACIF_BITS_8;
+               break;
        case SNDRV_PCM_FORMAT_S16_LE:
                audio_bits = TEGRA_ACIF_BITS_16;
                break;