[alsa-devel] Using Alsa for AD1981b on 9263
Hi,
Addition to my earlier post:
We are using AT91SAM9263 evaluation kit with on-board AD1981b codec. We are using Linux kernel version 2.6.27 with patches available on http://linux4sam.com. We found from the forum that we need to use ALSA for playing and recording audio using this codec.
So we downloaded Alsa-lib-1.0.20 Alsa-oss-1.0.20 Alsa-utils-1.0.20
We installed above using: ./configure && make && make install
We then downloaded alsa-driver-1.0.20 and installed it using below: ./configure --with-cards=atmel-ac97c --with-kernel=../../linux-2.6.27 --with-build=../../linux-2.6.27 && make ARCH=arm && make install-modules
Driver was compiled and installed successfully.
We found following: # cat /proc/asound/cards 0 [AC97 ]: ac97c - Atmel AC97 Atmel AC97 Controller at 0xfffa0000, irq 18
# lsmod Module Size Used by Not tainted snd_at91_ac97 8420 0 snd_ac97_codec 99904 1 snd_at91_ac97 snd_soc_atmel_pcm 4484 0 snd_soc_core 30852 1 snd_soc_atmel_pcm snd_pcm 60772 4 snd_at91_ac97,snd_ac97_codec,snd_soc_atmel_pcm,s nd_soc_core snd_page_alloc 6056 1 snd_pcm snd_timer 19588 1 snd_pcm snd 47700 5 snd_at91_ac97,snd_ac97_codec,snd_soc_core,snd_pc m,snd_timer soundcore 6052 1 snd ac97_bus 1568 1 snd_ac97_codec
# cat /home/.asoundrc pcm.!default { type hw card 0 } ctl.!default { type hw card 0 }
We have following devices in /dev/snd # cat /dev/snd/ /dev/snd/controlC0 /dev/snd/controlC3 /dev/snd/hwC0D2 /dev/snd/timer /dev/snd/controlC1 /dev/snd/hwC0D0 /dev/snd/hwC0D3 /dev/snd/controlC2 /dev/snd/hwC0D1 /dev/snd/seq
# aplay -l **** List of PLAYBACK Hardware Devices **** ALSA lib conf.c:2700:(snd_config_hooks_call) Cannot open shared library (null) ALSA lib conf.c:3079:(snd_config_update_r) hooks failed, removing configuration aplay: device_list:232: control open (0): No such file or directory
We are not able to get if module is getting loaded, then why aplay doesn't list the device?
Please help us to get the audio codec working.
Regards, --Shilpa.
On Tue, Jul 28, 2009 at 04:59:12PM +0530, Shilpa Kedar Walvekar wrote:
**** List of PLAYBACK Hardware Devices **** ALSA lib conf.c:2700:(snd_config_hooks_call) Cannot open shared library (null) ALSA lib conf.c:3079:(snd_config_update_r) hooks failed, removing configuration aplay: device_list:232: control open (0): No such file or directory
We are not able to get if module is getting loaded, then why aplay doesn't list the device?
Please help us to get the audio codec working.
This is a toolchain problem. Normally it's that the uclibc toolchain Atmel use by default doesn't support symbol versioning which means you have to pass a configure option to ALSA to disable symbol versioning but you're likely to get better help from an Atmel-specific place.
Hi Mark,
I built the alsa lib with " --without-versioned". But still if I give aplay -l, I get following:
# aplay -l **** List of PLAYBACK Hardware Devices **** ALSA lib conf.c:2700:(snd_config_hooks_call) Cannot open shared library (null) ALSA lib conf.c:3079:(snd_config_update_r) hooks failed, removing configuration aplay: device_list:232: control open (0): No such file or directory
Atmel is not responding for this issue. I have already placed a query on Atmel forum as well. But no reply from there.
Thanks & Regards, --Shilpa.
-----Original Message----- From: Mark Brown [mailto:broonie@opensource.wolfsonmicro.com] Sent: Tuesday, July 28, 2009 5:09 PM To: Shilpa Kedar Walvekar Cc: Alsa-devel@alsa-project.org Subject: Re: [alsa-devel] Using Alsa for AD1981b on 9263
On Tue, Jul 28, 2009 at 04:59:12PM +0530, Shilpa Kedar Walvekar wrote:
**** List of PLAYBACK Hardware Devices **** ALSA lib conf.c:2700:(snd_config_hooks_call) Cannot open shared library (null) ALSA lib conf.c:3079:(snd_config_update_r) hooks failed, removing configuration aplay: device_list:232: control open (0): No such file or directory
We are not able to get if module is getting loaded, then why aplay doesn't list the device?
Please help us to get the audio codec working.
This is a toolchain problem. Normally it's that the uclibc toolchain Atmel use by default doesn't support symbol versioning which means you have to pass a configure option to ALSA to disable symbol versioning but you're likely to get better help from an Atmel-specific place.
On Wednesday 29 July 2009 08:31, Shilpa Kedar Walvekar wrote:
Hi Mark,
I built the alsa lib with " --without-versioned". But still if I give aplay -l, I get following:
# aplay -l **** List of PLAYBACK Hardware Devices **** ALSA lib conf.c:2700:(snd_config_hooks_call) Cannot open shared library (null) ALSA lib conf.c:3079:(snd_config_update_r) hooks failed, removing configuration aplay: device_list:232: control open (0): No such file or directory
Atmel is not responding for this issue. I have already placed a query on Atmel forum as well. But no reply from there.
During my work using ALSA on ARM the Alsa-lib configure option was
--with-versioned=no
but maybe either works. There are a couple of other possibilities here:-
http://mailman.alsa-project.org/pipermail/alsa-devel/2008-August/009898.html
HTH
Alan
participants (3)
-
Alan Horstmann
-
Mark Brown
-
Shilpa Kedar Walvekar