• Sameer Pujar's avatar
    ASoC: tegra: Add audio graph based card driver · 202e2f77
    Sameer Pujar authored
    Add Tegra audio machine driver which is based on generic audio graph card
    driver. It re-uses most of the common stuff from audio graph driver and
    uses the same DT binding. Required Tegra specific customizations are done
    in the driver and additional DT bindings are required for clock handling.
    
    Details on the customizations done:
    
     - Update PLL rates at runtime: Tegra HW supports multiple sample rates
       (multiples of 8x and 11.025x) and both of these groups require different
       PLL rates. Hence there is a requirement to update this at runtime.
       This is achieved by providing a custom 'snd_soc_ops' and in hw_param()
       callback PLL rate is updated as per the sample rate.
    
     - Internal structure 'tegra_audio_graph_data' is used to maintain clock
       handles of PLL.
    
     - The 'force_dpcm' flag is set to use DPCM for all DAI links.
    
     - The 'component_chaining' flag is set to use DPCM with component model.
    Signed-off-by: default avatarSameer Pujar <spujar@nvidia.com>
    Reviewed-by: default avatarJon Hunter <jonathanh@nvidia.com>
    Link: https://lore.kernel.org/r/1611048496-24650-4-git-send-email-spujar@nvidia.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    202e2f77
Kconfig 7.27 KB