wm8962 no sound problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

wm8962 no sound problem

697 Views
xujasper
Contributor I


Hi, I have been using im6q+wm8962+alsa to do some sound tests.

Here is what I did:

#aplay xxx.wav

and using using ctrl+c to interrupt playback.

I did this repeatedly and Most of the times xxx.wav can be well played but occasionally,

there was no sound came out from speaker. But aplay was blocked and seemed it was

playing, though there is no sound. There is no output signal from sound card.

I wonder if something happened to sound card.

Thanks.

Labels (1)
0 Kudos
2 Replies

495 Views
xujasper
Contributor I

Hi igorpadykov,

It might not be ctrl+c problem. Because aplay got a new ps id and alsa do not pop 'Device is busy'

I've been also using snd_pcm_writei() in a demo to test this. This function returns the exact frames that

I wrote but still sometimes no sound(meaning that starting demo several times and some times are good, few are gone

no sound).

I doubt I might be wm8962 was in a wrong state (caused by power, clock, etc) in our board. Though /proc/asound/card0/pcm0p/sub0/status show the device is RUNNING.

If you want to see the codes of demo, I'll paste here later.

Regards

Xu

0 Kudos

495 Views
igorpadykov
NXP Employee
NXP Employee

Hi Xu

seems ctrl+c rarely does not kill application, one can google

for possible reasons

linux - kill pid is not working? - Unix & Linux Stack Exchange

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos