Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12 Dec 2007 06:42 AM by  DrOctavius
I can't play sounds in IMX31 LITE KIT
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages
prashm_77@yahoo.com
New Member
New Member
Posts:


--
30 Nov 2007 10:19 PM
    Hai,

    We have IMX31 LITEKIT board booting with linux 2.6.19.2, as per the manual we have configured for alsa:-

    Enable “Sound card support”
    Under “Advanced Linux Sound Architecture”:
    Enable “Advanced Linux Sound Architecture”
    Enable “OSS Mixer API” if you require OSS emulation
    Enable “OSS PCM (digital audio) API” if you need OSS emulation
    Under “ALSA ARM devices”:
    Enable “MXC sound system”
    Disable “Open Sound System”

    with this we are getting the kernel messages as:

    **********************************************************************


    Serial: MXC OWire driver
    SSI module loaded successfully
    PMIC Audio driver loading...
    Advanced Linux Sound Architecture Driver Version 1.0.13 (Tue Nov 28 14:07:24 2006 UTC).
    ALSA device list:
    No soundcards found.
    oprofile: using arm/arm11
    TCP cubic registered
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    ieee80211: 802.11 data/management/control stack, git-1.1.13
    ieee80211: Copyright (C) 2004-2005 Intel Corporation

    **********************************************************************

    In shell if i try to play, i am getting error like:

    mx31# aplay Noise.wav
    ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
    ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
    ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
    ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_concat returned error: No such device
    ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name
    ALSA lib conf.c:3492:(_snd_config_evaluate) function snd_func_refer returned error: No such device
    ALSA lib conf.c:3961:(snd_config_expand) Evaluate error: No such device
    ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
    aplay: main:547: audio open error: No such device


    what may be the problem?

    Regards
    DrOctavius
    New Member
    New Member
    Posts:


    --
    01 Dec 2007 07:51 AM
    Im getting the exactly same problem
    prashm_77@yahoo.com
    New Member
    New Member
    Posts:


    --
    11 Dec 2007 02:03 AM
    We have compiled the linux-2.6.22 and found that it is working fine , Now we are trying to get the same in linux 2.6.19-2,

    Have you tested with linux 2.6.22 ?


    Posted By DrOctavius on 1 Dec 2007 7:51 AM
    Im getting the exactly same problem


    prashm_77@yahoo.com
    New Member
    New Member
    Posts:


    --
    11 Dec 2007 02:58 AM
    We just have to change the following functions in mx31lite.c


    ADD the following

    1) #include <linux/spi/spi.h>


    2) static struct spi_board_info mxc_spi_board_info[] __initdata = {
    {
    .modalias = "pmic_spi",
    .irq = IOMUX_TO_IRQ(MX31_PIN_GPIO1_3),
    .max_speed_hz = 4000000,
    .bus_num = 2,
    .chip_select = 0,
    },
    };


    3) in mxc_board_init add

    spi_register_board_info(mxc_spi_board_info,
    ARRAY_SIZE(mxc_spi_board_info));

    It just works


    Posted By DrOctavius on 1 Dec 2007 7:51 AM
    Im getting the exactly same problem


    DrOctavius
    New Member
    New Member
    Posts:


    --
    11 Dec 2007 09:08 PM
    vasanthk,

    I see the sound card initialized on linux startup, but I get the same messages:

    mx31# aplay Noise.wav
    ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'

    Have you created the sound device nodes?
    prashm_77@yahoo.com
    New Member
    New Member
    Posts:


    --
    12 Dec 2007 05:53 AM
    Yes infact we have USB HOST working and we have tested with USB Mass storage and we have booted the filesystem from USB Pen drive and also we have tested usb devices like USB KBD/MOUSE , USB Camera , etc successfully in Linux 2.6.19-2 on Daniel's Patch

    We have not tested MMC and COMPACT FLASH only

    We have tested USB HOST , SOUND (only play back) and USB OTG in IMX31 only(host pc conenction not working )

    If required we will send the patch for your tests , so that OTG can also be solved


    Posted By DrOctavius on 11 Dec 2007 9:8 PM
    vasanthk,

    I see the sound card initialized on linux startup, but I get the same messages:

    mx31# aplay Noise.wav
    ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card ''0''

    Have you created the sound device nodes?


    DrOctavius
    New Member
    New Member
    Posts:


    --
    12 Dec 2007 06:42 AM
    I would love to have your patch with all that functionality !!! I have working the usb mass storage only. Boot from USB? Yesss I want that!!
    You are not authorized to post a reply.