2010-11-15 06:48:56     Problem defining .confs required for installing new ALSA driver

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-11-15 06:48:56     Problem defining .confs required for installing new ALSA driver

Mala sankaranarayanan (INDIA)

Message: 95846   

 

Have developed an ALSA driver for codec XE3005. Configuring it as 8Khz, 16-bit mono.

 

Am using ALSA library 1.0.12. My card configuration file XE3005.conf in alsa/cards/ is as follows:

 

XE3005.pcm.default {

    type plug

    slave {

          pcm {

                   type hw

                    card 0

                    format S16_LE

                    rate 8000

                    channels 1

               }

        }

}

 

 

 

Have added XE3005 as alias name for my driver in aliases.conf in alsa/cards folder. Also I have defaulted card, device and sub-device to all 0 repectively.

 

Driver gets installed as a module and listed in "aplay -l" as card 0, device :0.

 

.But when I try to play or record with aplay/arecord utilities specifying my card as default, I get following error:

 

Command: arecord -Ddefault x.wav

 

Response:

 

     arecord: Assertion for  node->type==SND_CONFIG_TYPE_COMPOUND failed for my file XE3005.conf

 

I observed that in alsa 1.0.18 version syntax of configuration file is optimized , "slave { pcm {" represented as "slave.pcm".

 

I have verified to link only alsa1.012. So, not able to resolve what is syntactically wrong in my card config file. Requesting guidance for this.

 

 

 

Thanking all,

 

Mala

QuoteReplyEditDelete

 

 

2010-11-15 08:18:47     Re: Problem defining .confs required for installing new ALSA driver

Mike Frysinger (UNITED STATES)

Message: 95850   

 

what processor are you using ?  how is it connected ?

 

why not use alsa lib 1.0.18 ?

Attachments

    Outcomes