I.MX93 Audio | Aplay issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I.MX93 Audio | Aplay issue

229件の閲覧回数
NZP
Contributor III

Hello experts,

I am working on SAI audio with nau8235 audio codec, I have configured dts for i2c and sai node properly. And my Audio output is working fine with speaker, but I am getting some issue while working so please look into it.

1. when my device boot if I grep sound, I am getting No soundcards found. However, I am able to locate my sound card in /proc/asound/ so my question is that why audio codec is not detected automatically at device boot.

Below is my aplay log for reference.

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: nau8325audio [nau8325-audio], device 0: 42660000.sai-nau8325-hifi nau8325-hifi-0 [42660000.sa
i-nau8325-hifi nau8325-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0

2. aplay utility is able to play 48000 sample rate wav file but when I try to play wav file with 44100 sample rate I am getting below errors from my driver.

[ 420.075939] nau8325 3-0021: The MCLK 24576000 is invalid. It can't get MCLK_SRC of 256/400/500 FS (44100)
[ 420.091644] nau8325 3-0021: ASoC: error at snd_soc_dai_hw_params on nau8325-hifi: -22
[ 420.100378] 42660000.sai-nau8325-hifi: ASoC: error at __soc_pcm_hw_params on 42660000.sai-nau8325-hifi: -22
ALSA lib /usr/src/debug/alsa-lib/1.2.7.2-r0/src/pcm/pcm_direct.c:1332:(snd1_pcm_direct_initialize_sla
ve) unable to install hw params
ALSA lib /usr/src/debug/alsa-lib/1.2.7.2-r0/src/pcm/pcm_dmix.c:1011:(snd_pcm_dmix_open) unable to initialize slave.

3. aplay utility only plays wav file if I explicitly define -D hw:0 flag while playing audio. why I need to put this flag if aplay already list my audio device in aplay -l.

 

0 件の賞賛
1 返信

211件の閲覧回数
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

1. Linux ALSA SoC driver inlcudes 3 parts:

a) Platform driver: CPU I2S or audio port of CPU.

b) Codec driver.

c) Machine driver: it is used to connect CPU I2S DAI to CODEC I2S DAI.

From your booting logs, it seems that there are some issues on your machine driver.

Please take a look on next link.

2. You are getting that error because PLL/prescaler cannot provide requested frequency to play audio at 44.1 KHz sample rate.

If you need to reproduce at that sample rate, maybe you should use an external crystal to provide necessary clock frequency.

3. It is needed to indicate which sound card will be selected to reproduce audio.

Best regards.

0 件の賞賛