[Fwd: Re: Davinci ASoC support (patch)]
Forwarded from davinci-linux-open-source list:
I've built this ASoC patch into my DaVinci git kernel (thanks for the SENSORS tip), and can use aplay and speaker-test, but no sound. Figured it may be a mixer/volume control issue, but the alsamixer is unable to open for a failed ioctl on USBDEVFS_IOCTL. Not sure why there is a USB dependency. Noted that there is no /sys/class/sound/mixer in my sysfs. Any ideas?
Mark
Quoted 64 lines · Bernard Blackham
Quoted 11 lines · Behme
While searching something different, I just found
http://www.spinics.net/lists/alsa-devel/msg12535.html
As I'm not subscribed to alsa-devel, I don't have the original post. Maybe any of the authors can post it do this list as well?
The patch mainly applies to our git. I fixed two small rejects in
KconfigandMakefileas the patch is for newer kernel than our git. Untested patch against our git in attachment. Anybody likes to test?Well, I tried compiling it and it failed to build. It appears that it's built on a set of patches for Davinci posted to LAK, including this completely revamped EDMA support[1]:
http://www.spinics.net/lists/arm-kernel/msg47450.html
So I had to change a few definitions, import a few functions from the new DMA support and managed to get it compiling and loading, but not yet working (tried various sample rates and formats):
root@davinci-dvevm:/tst$ aplay test.wav Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable aplay: set_params:878: Broken configuration for this PCM: no configurations availableroot@davinci-dvevm:/tst$ arecord -r 48000 -f S16_LE Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable arecord: set_params:878: Broken configuration for this PCM: no configurations availableAnd this is the extent of my knowledge of ALSA - I can continue digging, but maybe somebody else will beat me to it =) It's looking promising though.
Attached is the patch I have so far that applies against current git. This is not for going upstream, but just for testing. Notes:
- Apply patch
- EnableSND_SOC,SND_DAVINCI_SOC,SND_DAVINCI_SOC_I2S,SND_DAVINCI_SOC_EVMandSND_SOC_TLV320AIC3X.
- Make sureCONFIG_I2C_DAVINCIis enabled, but disable the CONFIG_SENSORS_TLV320* options.
- Build.
- Load the snd-soc-evm module.Bernard.
[1] These patches appear to have gone absolutely nowhere beyond that list. I can't find them in any tree. But they are cleaner and more conforming to the Linux Kernel style than what's currently in git.
------------------------------------------------------------------------
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
Quoted 1 line · lokowich
Forwarded from davinci-linux-open-source list:
CCing in Vladimir Barinov who contributed the DaVinci support.
Quoted 6 lines
I've built this ASoC patch into my DaVinci git kernel (thanks for the SENSORS tip), and can use aplay and speaker-test, but no sound. Figured it may be a mixer/volume control issue, but the alsamixer is unable to open for a failed ioctl on
USBDEVFS_IOCTL. Not sure why there is a USB dependency. Noted that there is no/sys/class/sound/mixerin my sysfs. Any ideas?
It might be helpful to post dmesg output showing the sound support being loaded.
Quoted 70 lines
Quoted 57 lines · Bernard Blackham
Quoted 11 lines · Behme
While searching something different, I just found
http://www.spinics.net/lists/alsa-devel/msg12535.html
As I'm not subscribed to alsa-devel, I don't have the original post. Maybe any of the authors can post it do this list as well?
The patch mainly applies to our git. I fixed two small rejects in
KconfigandMakefileas the patch is for newer kernel than our git. Untested patch against our git in attachment. Anybody likes to test?Well, I tried compiling it and it failed to build. It appears that it's built on a set of patches for Davinci posted to LAK, including this completely revamped EDMA support[1]:
http://www.spinics.net/lists/arm-kernel/msg47450.html
So I had to change a few definitions, import a few functions from the new DMA support and managed to get it compiling and loading, but not yet working (tried various sample rates and formats):
root@davinci-dvevm:/tst$ aplay test.wav Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable aplay: set_params:878: Broken configuration for this PCM: no configurations availableroot@davinci-dvevm:/tst$ arecord -r 48000 -f S16_LE Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable arecord: set_params:878: Broken configuration for this PCM: no configurations availableAnd this is the extent of my knowledge of ALSA - I can continue digging, but maybe somebody else will beat me to it =) It's looking promising though.
Attached is the patch I have so far that applies against current git. This is not for going upstream, but just for testing. Notes:
- Apply patch
- EnableSND_SOC,SND_DAVINCI_SOC,SND_DAVINCI_SOC_I2S,SND_DAVINCI_SOC_EVMandSND_SOC_TLV320AIC3X.
- Make sureCONFIG_I2C_DAVINCIis enabled, but disable the CONFIG_SENSORS_TLV320* options.
- Build.
- Load the snd-soc-evm module.Bernard.
[1] These patches appear to have gone absolutely nowhere beyond that list. I can't find them in any tree. But they are cleaner and more conforming to the Linux Kernel style than what's currently in git.
Quoted 7 lines
------------------------------------------------------------------------
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Signature · 1 line
"You grabbed my hand and we fell into it, like a daydream - or a fever."
Any wigets for ADC to DAC ?
Hi Mark,
In intern, we're still using WM8900 codec. We'd like to know in ASoC layer, there is a widget to declare a possible audio path between ADC and DAC.
By the way, we could power on all necessary widget to use ADCtoDAC Sidetone, without dealing with another audio path or start pcm on capture/playback.
Thanks and regards,
Alex.
Quoted 16 lines · Mark Brown
Quoted 2 lines · lokowich
Forwarded from davinci-linux-open-source list:
CCing in Vladimir Barinov who contributed the DaVinci support.
Quoted 7 lines
I've built this ASoC patch into my DaVinci git kernel (thanks for the SENSORS tip), and can use aplay and speaker-test, but no sound. Figured it may be a mixer/volume control issue, but the alsamixer is unable to open for a failed ioctl on
USBDEVFS_IOCTL. Not sure why there is a USB dependency. Noted that there is no/sys/class/sound/mixerin my sysfs. Any ideas?
How do you figure out that you can play sound?
Also what platform do you use - is it Davinci-EVM? what line output do you use to hear the sound?
Please, post your dmesg log and cat /proc/interrupts too.
Quoted 27 lines
It might be helpful to post dmesg output showing the sound support being loaded
Quoted 23 lines
Quoted 21 lines · Bernard Blackham
Quoted 12 lines · Behme
While searching something different, I just found
http://www.spinics.net/lists/alsa-devel/msg12535.html
As I'm not subscribed to alsa-devel, I don't have the original post. Maybe any of the authors can post it do this list as well?
The patch mainly applies to our git. I fixed two small rejects in
KconfigandMakefileas the patch is for newer kernel than our git. Untested patch against our git in attachment. Anybody likes to test?Well, I tried compiling it and it failed to build. It appears that it's built on a set of patches for Davinci posted to LAK, including this completely revamped EDMA support[1]:
Yep, it's needed.
Quoted 53 lines
Quoted 51 lines
Quoted 37 lines
So I had to change a few definitions, import a few functions from the new DMA support and managed to get it compiling and loading, but not yet working (tried various sample rates and formats):
root@davinci-dvevm:/tst$ aplay test.wav Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable aplay: set_params:878: Broken configuration for this PCM: no configurations availableroot@davinci-dvevm:/tst$ arecord -r 48000 -f S16_LE Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable arecord: set_params:878: Broken configuration for this PCM: no configurations availableAnd this is the extent of my knowledge of ALSA - I can continue digging, but maybe somebody else will beat me to it =) It's looking promising though.
Attached is the patch I have so far that applies against current git. This is not for going upstream, but just for testing. Notes:
- Apply patch
- EnableSND_SOC,SND_DAVINCI_SOC,SND_DAVINCI_SOC_I2S,SND_DAVINCI_SOC_EVMandSND_SOC_TLV320AIC3X.
- Make sureCONFIG_I2C_DAVINCIis enabled, but disable the CONFIG_SENSORS_TLV320* options.
- Build.
- Load the snd-soc-evm module.Bernard.
[1] These patches appear to have gone absolutely nowhere beyond that list. I can't find them in any tree. But they are cleaner and more conforming to the Linux Kernel style than what's currently in git.
Quoted 8 lines
------------------------------------------------------------------------
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
ALSA Lib : snd_dlopen lib error
In reply to Mark BrownHi list,
I'm currently to develop an application that use ALSA Lib mixer features. My first ALSA user application.
I've succeed in compiling it but on application start, the message is printed :
KPV test prepare DAC ... snd_mixer_open
ALSA lib control.c:878:(snd_ctl_open_conf) symbol _snd_ctl_hw_open is not define
d inside (null)
problems problems attaching alsa mixer: No such device or address Function failed with error code -1
My linking parameters are :
-lasound -lm -rdynamic -ldl
Cross compiling for arm in Cygwin
I got this version on both embedded and compiler : libdl-2.3.2.so
All tips would be greatfull ;)
Regards,
Alex.
Quoted 38 lines · lokowich
Quoted 21 lines · Vova Barinov
Quoted 4 lines · Mark Brown
On Fri, Mar 28, 2008 at 09:27:04AM -0500, lokowich wrote:
Quoted 15 lines
Quoted 3 lines
Forwarded from davinci-linux-open-source list:
CCing in Vladimir Barinov who contributed the DaVinci support.
Quoted 8 lines
I've built this ASoC patch into my DaVinci git kernel (thanks for the SENSORS tip), and can use aplay and speaker-test, but no sound. Figured it may be a mixer/volume control issue, but the alsamixer is unable to open for a failed ioctl on
USBDEVFS_IOCTL. Not sure why there is a USB dependency. Noted that there is no/sys/class/sound/mixerin my sysfs. Any ideas?Quoted 5 lines
How do you figure out that you can play sound?
Also what platform do you use - is it Davinci-EVM? what line output do you use to hear the sound?
Please, post your dmesg log and cat/proc/interruptstoo.Excerpt from dmesg:
Advanced Linux Sound Architecture Driver Version 1.0.16. ASoC version 0.13.2
AIC3X Audio Codec 0.1
asoc: aic3x <-> davinci-i2s mapping ok
ALSA device list:
#0: DaVinci EVM (aic3x)
Quoted 12 lines
/proc/interrupts:
CPU0
6: 0 AINTC dm644xresizer
8: 23608 AINTC davincifb
13: 6995 AINTC EMAC
22: 107 AINTC ide0
32: 39436 AINTC clockevent
33: 3 AINTC free-run counter
39: 217 AINTCi2c_davinci
40: 204 AINTC serial
Err: 0
Sorry for the late response.
I don't see EDMA interrupts. So it seems that you have no i2s transfers between codec and SoC.
Quoted 102 lines
This is the DM6446 EVM. Note, my kernel has been patched with latest ALSA, to no avail. I hear the DAC pop during initialization on both the Line Out and Headphone jacks.
Quoted 96 lines
Quoted 31 lines
It might be helpful to post dmesg output showing the sound support being loaded
Quoted 27 lines
Quoted 24 lines · Bernard Blackham
Quoted 13 lines · Behme
While searching something different, I just found
http://www.spinics.net/lists/alsa-devel/msg12535.html
As I'm not subscribed to alsa-devel, I don't have the original post. Maybe any of the authors can post it do this list as well?
The patch mainly applies to our git. I fixed two small rejects in
KconfigandMakefileas the patch is for newer kernel than our git. Untested patch against our git in attachment. Anybody likes to test?Well, I tried compiling it and it failed to build. It appears that it's built on a set of patches for Davinci posted to LAK, including this completely revamped EDMA support[1]:
Yep, it's needed.
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
So I had to change a few definitions, import a few functions from the new DMA support and managed to get it compiling and loading, but not yet working (tried various sample rates and formats):
root@davinci-dvevm:/tst$ aplay test.wav Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable aplay: set_params:878: Broken configuration for this PCM: no configurations availableroot@davinci-dvevm:/tst$ arecord -r 48000 -f S16_LE Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono ALSA lib pcm_params.c:2152:(snd_pcm_hw_refine_slave) Slave PCM not usable arecord: set_params:878: Broken configuration for this PCM: no configurations availableAnd this is the extent of my knowledge of ALSA - I can continue digging, but maybe somebody else will beat me to it =) It's looking promising though.
Attached is the patch I have so far that applies against current git. This is not for going upstream, but just for testing. Notes:
- Apply patch
- EnableSND_SOC,SND_DAVINCI_SOC,SND_DAVINCI_SOC_I2S,SND_DAVINCI_SOC_EVMandSND_SOC_TLV320AIC3X.
- Make sureCONFIG_I2C_DAVINCIis enabled, but disable the CONFIG_SENSORS_TLV320* options.
- Build.
- Load the snd-soc-evm module.Bernard.
[1] These patches appear to have gone absolutely nowhere beyond that list. I can't find them in any tree. But they are cleaner and more conforming to the Linux Kernel style than what's currently in git.
------------------------------------------------------------------------
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-sourceQuoted 9 lines
Quoted 7 lines
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel