Skip to content

arm64: imx8mn-bsh-smm-s2/pro: Support tlv320aic31xx audio card

https://phabricator.apertis.org/T8220

The smm-s2pro board uses tlv320aic3101 DAC module.

The input clock for this codec is set to BCLK, so the input PLL frequency changes every time the sample/format changes.

This patchset modifies tlv320aic3101 driver to update its sysclk if BCLK is used as the input clock. This allows to be used by the generic fsl-asoc-card, without having to add a specific driver.

If BCLK is used as PLL input, the sysclk is determined by the hw
params. So it must be updated here to match the input frequency, based
on sample rate, format and channels.
Edited by Andre Moreira Magalhaes

Merge request reports