This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM814x ALSA sample app minimal_capture not working, but arecord and aply works

Hi,

  It would be good if someone helps me on ALSA application minimal_capture.

I am using DM814x EZSDK 5.05 board. 

When I try ./minimal_capture, I get this error

ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default

What could be the issue?

But in aplay -l, I get the list of devices.

I am able to perform record and playback

arecord -vv -fdat foo.wav
Recording WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Plug PCM: Hardware PCM card 0 'TI81XX EVM' device 0 subdevice 0

root@10:~# ls -l foo.wav
-rw-r--r-- 1 root root 23470124 Dec 9 18:28 foo.wav
root@10:~# aplay -vv foo.wav
Playing WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Plug PCM: Hardware PCM card 0 'TI81XX EVM' device 0 subdevice 0
Its setup is:
stream : PLAYBACK
access : RW_INTERLEAVED

Thanks and Regards,

Subha.V

  • Hello,

    A minimal playback application
    This program opens an audio interface for playback, configures it for stereo, 16 bit, 44.1kHz, interleaved
    conventional read/write access.

    int rate = 44100; /* Sample rate */ you could change it here to 48000

    Change the default :

        /* Name of the PCM device, like hw:0,0 */
        /* The first number is the number of the soundcard, */
        /* the second number is the number of the device. */


        static char *device = "default"; /* capture device */

    I would suggest you to check :

    ezsdk/board-support/docs

    TI81XX_HDMI_User_Guide.pdf

    BR

    Margarita

  • Subha,

    You can check also the below wiki page:
    processors.wiki.ti.com/.../TI81XX_PSP_AUDIO_Driver_User_Guide

    When I run this application on the DM814x EVM (which is using stereo codec AIC3106) I have:

    root@dm814x-evm:~# ./minimal_capture
    snd_pcm_readi successful

    The device used is:

    root@dm814x-evm:~# arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 0: EVM [TI81XX EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
    Subdevices: 1/1
    Subdevice #0: subdevice #0

    /* Name of the PCM device, like hw:0,0 */
    /* The first number is the number of the soundcard, the second number is the number of the device. */
    static char *device = "hw:0,0"; /* capture device */

    Regards,
    Pavel