mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
The tegra_dai_fixup function was incorrectly updating the format mask when S24_LE format was requested and DAI has 32-bit sample width incase the stream on that DAI is already running. S24_LE format uses 32-bit physical width on the DAI interface, but the format mask should remain as S24_LE to maintain proper format negotiation. The fix adds a check to skip format mask updates when S24_LE is requested and DAI sample_bits is 32. This resolves issues with RT5640 and other codecs that support 24-bit audio formats on Tegra platforms. Bug 5350165 Change-Id: Ie297a4176866c9bb3dbc9f40ac7b6d9051a879f6 Signed-off-by: Sheetal <sheetal@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3396978 Reviewed-by: Sameer Pujar <spujar@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Mohan kumar <mkumard@nvidia.com>