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.

[8168]howto use alsa sound

Other Parts Discussed in Thread: TVP5158

 

Hello

 

I'm testing dm8168 .

i teting alsa audio input/output . but when i open snd open i failed.

 

error message as belows.how can i do that?

ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
AUDIO >>  cannot open audio device plughw:1,0 (No such file or directory)

 

##### MY ENV #####

/dev # ls -al /dev/snd/*
crw-rw-rw-    1 root     root      116,   0 Oct 14 19:00 /dev/snd/controlC0
crw-rw-rw-    1 root     root      116,  24 Oct 14 19:00 /dev/snd/pcmC0D0c
crw-rw-rw-    1 root     root      116,  16 Oct 14 19:00 /dev/snd/pcmC0D0p
crw-rw-rw-    1 root     root      116,  33 Oct 14 19:00 /dev/snd/timer

/dev# cat /proc/asound/
DVRAIC3x/  cards      hwdep      timers
card0/     devices    pcm        version


/dev # cat /proc/asound/cards
 0 [DVRAIC3x       ]:  - TI8168 DVR(AIC3x)
                      TI8168 DVR(AIC3x)

 

 

Best Regards. CHO

  • Hello,

    What SW package are you using?

    Regards,
    Marc

  • Hi,

    Are you running some custom ALSA app? If yes, please check the PSP audio driver user guide for an example.

    Regards,

    Vaibhav

  • Hi Marc,

    I also meet the same problem,

    i using dm8168 evm+vs board, dvrrdk 2.80 ,

    and i run the audio demo ,

    snd device can not be found ,

    ##### MY ENV #####

    /dev # ls -al /dev/snd/* 

    nothing is found then,

    then i see the print information when linux kernel starts,about ALSA

    ALSA device list:

    no alsa device found 

    i see the kernel menuconfigue , i have include the alsa soc option 

    Is there any other work have to do for using audio tvp5158 or aix30 on evm board?

    best regards

    xavier

  • This means that some device registration failed or device listing not present in kernel code. You could refer to later dvr_rdk releases and compare these files for any missing configuration.

                 - kernel/arch/arm/mach-omap2/board_ti81xxxxx.c

                 - kernel/arch/arm/mach-omap2/devices.c

                  -kernel/sound/soc/davinci/*

     

    There are patches on top of 2.80 release for audio issues with DM8168 EVM. Please contact your local FAE.

  • Hi, Sivagamy Govindasamy

    you are right !

    it is a bug in dvrrdk 2.80, finally i find the problem.

    As for evm board tvp5158 audio is undefineed in dvrrdk 2.80 ,

    however in /source/soc/ti81xx_evm.c

    static struct snd_soc_dai_link ti81xx_mcasp_dai[] = {
        {
            .name = "TVP5158AUDIO",
            .stream_name = "TVP-PCM",
            .cpu_dai_name= "davinci-mcasp.0",
            .codec_dai_name = "tvp5158-hifi",
            .platform_name ="davinci-pcm-audio",
            .codec_name = "tvp5158-audio",
            .ops = &ti81xx_evm_ops,
        },
        {
            .name = "TLV320AIC3X",
            .stream_name = "AIC3X",
            .cpu_dai_name= "davinci-mcasp.2",
            .codec_dai_name = "tlv320aic3x-hifi",
            .codec_name = "tlv320aic3x-codec.1-0018",
            .platform_name = "davinci-pcm-audio",
            .init = ti81xx_evm_aic3x_init,
            .ops = &ti81xx_evm_ops,
        },
    #ifdef CONFIG_SND_SOC_TI81XX_HDMI
        {
            .name = "HDMI_SOC_LINK",
            .stream_name = "hdmi",
            .cpu_dai_name = "hdmi-dai",
            .platform_name = "davinci-pcm-audio",
            .codec_dai_name = "HDMI-DAI-CODEC",     /* DAI name */
            .codec_name = "hdmi-dummy-codec",
        },
    #endif    
    };

    tvp5158 is added,

    then  in /sound/soc/soc_core.c function snd_soc_instantiate_card,

    snd_soc_instantiate_card

    {

        /* bind DAIs */
        for (i = 0; i < card->num_links; i++)
            soc_bind_dai_link(card, i);

        /* bind completed ? */
        if (card->num_rtd != card->num_links) {
            mutex_unlock(&card->mutex);
            return;
        }
    }

    card->num_rtd != card->num_links  function return as card->num_links = 3 ,card->num_rtd=2

    then ASLA device create failure !!!

    Actually in dvrrdk 3.0 i see the bug has corrected,  but i does not find any issues about this fixed?

    Issues Fixed in 3.0 is not so clearly comparing with 2.800

    best regards

    xavier

  • We posted the fixes for 2.80, probably that's the reason it was not documented correctly in 3.0 GA release. We will take care of this in next releases.

    Are you able to get audio working now?

  • Yes ,audio works now,thank you for evm  board

  • hii,

    in dvr_rdk 3.0 audio is getting stop during playback after sometimes can anybody tell me what is the issue