Sameer Pujar 2a68fff8b8 ASoC: tegra: Add driver for DAI PCM overrides
Tegra audio uses multiple ASoC components in an audio path. In doing
so, each component may require a separate set of DAI PCM configurations.
Presently this is facilitated by exposing mixer control overrides from
each of the component drivers to override sample rate, channels or bits.

Above satisfies our needs. However this type of solution is rejected by
upstream maintainers. The suggestion is to not bypass the configurations
passed by ASoC framework via hw_params() calls.

With kernel OOT model gaining momentum in downstream, we are stuck with
partially upstreamed drivers where above mentioned feature is an
important missing item.

This commit adds a new driver to override DAI PCM parameters. Idea is to
use this as an OOT driver and insmod it for our downstream applications
or for testing.This comes with few limitations, mentioned below, which
is fine looking at the overall requirements.

  - Client overrides are not possible for AHUB internal modules. This is
    because DAI hw_param() call can carry one configuration and thus
    both XBAR and client setting overrides are not possible.

  - No overrides are provided for ADMAIF. The client configuration is
    passed by aplay/arecord applications and DAI hw_param() call carries
    the same.

  - The DAI overrides need to be set every time before any use case and
    these are not persistent. This is because when an use case ends ASoC
    core clears DAI runtime settings. If necessary, it can be improved
    later by storing all DAI settings in the driver.

This driver is intended to be used on both DPCM/DAPM solutions.

Bug 3583581

Change-Id: Ia05316a10eb9c298f2a56d2ef3ccaa37c5985ddd
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Signed-off-by: Sheetal <sheetal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3043569
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-01-15 09:01:45 -08:00
2024-01-11 04:32:12 -08:00
2022-12-07 23:57:14 -08:00
Description
No description provided
34 MiB