Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASoC: fsl_esai: restore DAI format constants #12

Open
wants to merge 1 commit into
base: lf-6.1.y
Choose a base branch
from

Conversation

nsdrude
Copy link
Contributor

@nsdrude nsdrude commented Oct 24, 2023

The patch "MLK-19750-1: ASoC: fsl_esai: enhance async mode (part 1)", reverted the constants to their old naming and replaced with and used the wrong values: https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/include/sound/soc-dai.h#L127-L131

This results in the error:
root@imx8qm-var-som:~# aplay /usr/share/sounds/alsa/Front_Center.wav
[ 21.241657] fsl-esai-dai 59010000.esai: failed to derive required SCKT rate
[ 21.248673] fsl-esai-dai 59010000.esai: ASoC: error at snd_soc_dai_hw_params on 59010000.esai: -22
[ 21.257795] HiFi: ASoC: error at __soc_pcm_hw_params on HiFi: -22
ALSA lib /usr/src/debug/alsa-lib/1.2.8-r0/src/pcm/pcm_direct.c:1336:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib /usr/src/debug/alsa-lib/1.2.8-r0/src/pcm/pcm_dmix.c:1011:(snd_pcm_dmix_open) unable to initialize slave
aplay: main:831: audio open error: Invalid argument

This patch restores the original constants.

fixes: 8734e7f

The patch "MLK-19750-1: ASoC: fsl_esai: enhance async mode (part 1)",
reverted the constants to their old naming and replaced with and used
the wrong values: https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/include/sound/soc-dai.h#L127-L131

This results in the error:
  root@imx8qm-var-som:~# aplay /usr/share/sounds/alsa/Front_Center.wav
  [   21.241657] fsl-esai-dai 59010000.esai: failed to derive required SCKT rate
  [   21.248673] fsl-esai-dai 59010000.esai: ASoC: error at snd_soc_dai_hw_params on 59010000.esai: -22
  [   21.257795]  HiFi: ASoC: error at __soc_pcm_hw_params on HiFi: -22
  ALSA lib /usr/src/debug/alsa-lib/1.2.8-r0/src/pcm/pcm_direct.c:1336:(snd1_pcm_direct_initialize_slave) unable to install hw params
  ALSA lib /usr/src/debug/alsa-lib/1.2.8-r0/src/pcm/pcm_dmix.c:1011:(snd_pcm_dmix_open) unable to initialize slave
  aplay: main:831: audio open error: Invalid argument

This patch restores the original constants.

fixes: nxp-imx@8734e7f

Signed-off-by: Nate Drude <nate.d@variscite.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant