summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSameer Pujar <spujar@nvidia.com>2020-01-11 03:40:29 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2020-01-16 19:00:53 -0500
commit27b0dabe1e9e7a3fdd64172ca96aad80b58f7d3d (patch)
tree92b0155694f705deffda482b0b9539af165b6a28 /include
parentadd574aa21b447b61391f51650fe52175190064b (diff)
ASoC: tegra-alt: remove S24_LE format
S24_LE is a 32-bit container with 24-bit data in LSBs, with zeroes in most significant byte. S32_LE can act as 32-bit container for 24-bit data where data is pushed to MSBs and zeroes are filled in least significant byte. For example below is how the data is represented for different containers, where 'abc' is 24-bit data. 0abc (S24_LE) abc0 (S32_LE) As per IAS, most significant bits are pushed first when data moves in AHUB. For any down conversion LSBs are discarded, where as for any up conversion, zeroes are filled in the LSBs. Hence extraction of S24_LE results in data loss. Mentioned below are some of the examples to illustrate this. Consider for playback path, where data flow is from memory to AHUB and its clients, where 'abc' is valid data and 'x' is to ignore. * S32_LE abc0 --> audio = 32, client = 32 --> abc0 abc0 --> audio = 32, client = 24 --> abcx abc0 --> audio = 32, client = 16 --> abxx * S24_LE 0abc --> audio = 32, client = 32 --> 0abc 0abc --> audio = 32, client = 24 --> 0abx (data loss) 0abc --> audio = 32, client = 16 --> 0axx (data loss) Thus this patch removes S24_LE format from the drivers since Tegra audio HW is not designed to support this. Also S24_LE is not a commonly used format. Bug 200568187 Change-Id: I778d2f70527c17f00728fce75fe152d902c5aaa0 Signed-off-by: Sameer Pujar <spujar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2264822 (manually cherry picked from commit 996c6bd32513ef469b992d35d292bc9e5319459f) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2277669 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions