there is no sound(speaker is silent) from speaker when aplay it, but play the same fie with other codec chip & play it on PC is ok. some *.wav file the volume is very low. the other *.wav file is OK.


mount -t debugfs none /sys/kernel/debug/
echo -n "file soc-core.c +p" >/sys/kernel/debug/dynamic_debug/control

insmod /lib/modules/3.10.65/snd-soc-ssm4567.ko
insmod /lib/modules/3.10.65/snd-soc-ssm4567-i2c.ko

tinymix  -D 1 3 1
tinymix  -D 1 4 1
tinymix  -D 1 8 hub_enable

aplay  /mnt/ring03.wav -f S16_LE -Dplughw:1,0 -r 44100   //is silent.
aplay  /mnt/notify.wav -f S16_LE -Dplughw:1,0 -r 44100    //is ok
aplay  /mnt/music.wav  -f S32_LE -Dplughw:1,0 -r 44100  //volume very low.

How to debug these issues?

 Thanks very much!


  • ring03.wav has no sound.

    notify.wav is fine.

  • The two uploaded files have different sample rates and if you specify -r 44100 for ring03.wav is wrong. So please resample ring03.wav with a tool like audacity.

    ❯ file Ring03.wav
    Ring03.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 22050 Hz
    ❯ file notify.wav
    notify.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz

    On full alsa library even if I try to specify -r 44100 on Ring03.wav it will ignore it and will still play it at 22050Hz.

    I think tinyalsa is dummier and allows you to play a wav file at the wrong sample rate and ignore what was read from the file header.

  • Hi Btogorean:

        using aplay  /mnt/ring03.wav -f S16_LE -Dplughw:1,0 -r 22050, still has no voice. how to debug it ?

  • Hi ADI

      Are there any update for this?

  • Hi,

    is out of office, he will reply as soon as he returns.