summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-amix.c
AgeCommit message (Collapse)Author
2018-08-24MLK-17516: ASoC: fsl: amix: refine the error handlingViorel Suman
The "snd_pcm_hw_constraint_minmax" call may return a positive non-error integer so that the subsequent "snd_pcm_hw_constraint_mask64" call is never invoked, thus the formats are never enforced. Fix the error handling so that only negative results are considered. Signed-off-by: Viorel Suman <viorel.suman@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-08-24Revert "MLK-16738: ASoC: fsl: amix: remove support for 64k and 96k rates"Viorel Suman
This reverts commit 0cc882c2d72c ("MLK-16738: ASoC: fsl: amix: remove support for 64k and 96k rates"). Signed-off-by: Viorel Suman <viorel.suman@nxp.com> Reviewed-by: Frank Li <frank.li@nxp.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-08-24MLK-16738: ASoC: fsl: amix: remove support for 64k and 96k ratesViorel Suman
Remove support for 64k and 96k rates due to SAI MCLK freq limitations. Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2018-08-24MLK-16481: ASoC: fsl: amix: remove automatic OUTSRC selectionViorel Suman
Refactor AMIX driver by removing automatic OUTSRC selection and enforcing OUTSRC transition constraints as specified in AMIX documentation, "Mixer output processing" chapter. Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2018-08-24MLK-16275-1: ASoC: fsl: amix: fix rates constraintsViorel Suman
AMIX SAIs frequency was doubled in order to support the [98k rate X 8 channels X 32 bit width]. As consequence the criteria to enforce the rates constrainsts needs to be changed accordingly. Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2018-08-24MLK-13975: ASoC: fsl: amix: remove primary SAI power on/offViorel Suman
The intention of currently implemented primary SAI power-on/off on BE startup/shutdown was to make sure the primary SAI is powered-on when the playback is started on the secondary SAI. However in a such scenario the primary SAI is powered-on when the primary SAI output is recorded. Signed-off-by: Viorel Suman <viorel.suman@nxp.com> Reviewed-by: Shengjiu Wang <shengjiu.wang@freescale.com>
2018-08-24MLK-13975: ASoC: fsl: amix: Add channels and format constraintsViorel Suman
Add channels and format constraints. Signed-off-by: Viorel Suman <viorel.suman@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-08-24MLK-13975: ASoC: fsl: amix: eliminate unsupported ratesViorel Suman
Eliminate unsupported rates for SAI MCLK frequency = 24576000. Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2018-08-24MLK-13975: ASoC: fsl: add AMIX machine driverViorel Suman
Add audio mixer machine driver. Signed-off-by: Viorel Suman <viorel.suman@nxp.com>