ALSA-SOC support for OpenRD Client/Ultimate
Subsystems (4)
Hello everyone,
I am writing to this list in the hope that somebody can clear me out if this platform is supported and I am doing something wrong, or if it is still work in progress.
The drivers that I think should work with my hardware (OpenRD ultimate) are located in sound/soc/kirkwood/*.
Sound on this device worked (partially) with the default software it came but not with the latest about 10 kernels I have tried.
I added bellow the output of alsa-info.sh script. If needed I can look for more or try to fix it (with some help).
Best Regards,
Teodor
!!################################
!!ALSA Information Script v 0.4.59
!!################################
!!Script ran on: Thu Nov 11 06:27:39 UTC 2010
!!Linux Distribution
!!------------------
Debian GNU/Linux squeeze/sid \n \l
!!DMI Information
!!---------------
Manufacturer:
Product Name:
!!Kernel Information
!!------------------
Kernel release: 2.6.37-rc1 Operating System: GNU/Linux Architecture: armv5tel Processor: unknown SMP Enabled: No
!!ALSA Version
!!------------
Driver version: 1.0.23 Library version: 1.0.23 Utilities version: 1.0.23
!!Loaded ALSA modules
!!-------------------
!!Sound Servers on this system
!!----------------------------
No sound servers found.
!!Soundcards recognised by ALSA
!!-----------------------------
--- no soundcards ---
!!PCI Soundcards installed in the system
!!--------------------------------------
!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------
!!Modprobe options (Sound related)
!!--------------------------------
snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2
snd-usb-audio: index=-2
!!Loaded sound module options
!!--------------------------
!!ALSA Device nodes
!!-----------------
crw-rw---- 1 root audio 116, 33 Nov 11 08:23 /dev/snd/timer
!!Aplay/Arecord output
!!------------
APLAY
aplay: device_list:235: no soundcards found...
ARECORD
arecord: device_list:235: no soundcards found...
!!Amixer output
!!-------------
!!Alsactl output
!!-------------
--startcollapse--
--endcollapse--
!!All Loaded Modules
!!------------------
Modulesnd_soc_kirkwoodsnd_soc_coresnd_pcmsnd_timer
sndsnd_page_alloc
bridge
stp
llc
nfsd
lockdnfs_aclauth_rpcgss
sunrpc
exportfs
loop
xgifb
fb
cfbcopyareamv_cesa
cfbimgbltaes_generic
cfbfillrectsd_modcrc_t10difusb_storagesata_mv
libataehci_hcdscsi_mod
usbcoremv643xx_eth
libphynls_base
!!ALSA/HDA dmesg
!!------------------
PS: please note that none of the snd* modules are loaded by default.
PPS: Somewhere in the code (sound/soc/kirkwood/kirkwood-openrd.c) there is a check: machine_is_openrd_client() but in my case it should be machine_is_openrd_ultimate(). I removed this check anyway.
Signature · 4 lines
_ ( ) ascii ribbon campaign - against html e-mail X www.asciiribbon.org - against proprietary attachments / \
Quoted 6 lines · Teodor
I am writing to this list in the hope that somebody can clear me out if this platform is supported and I am doing something wrong, or if it is still work in progress.
The drivers that I think should work with my hardware (OpenRD ultimate) are located in
sound/soc/kirkwood/*.
Please remember to always CC maintainers on posts to Linux lists. I've added a CC to Arnaud and not cut any text for his benefit.
Quoted 184 lines
Sound on this device worked (partially) with the default software it came but not with the latest about 10 kernels I have tried.
I added bellow the output of
alsa-info.shscript. If needed I can look for more or try to fix it (with some help).Best Regards,
Teodor!!################################
!!ALSA Information Script v 0.4.59
!!################################!!Script ran on: Thu Nov 11 06:27:39 UTC 2010
!!Linux Distribution
!!------------------Debian GNU/Linux squeeze/sid \n \l
!!DMI Information
!!---------------Manufacturer:
Product Name:!!Kernel Information
!!------------------Kernel release: 2.6.37-rc1 Operating System: GNU/Linux Architecture: armv5tel Processor: unknown SMP Enabled: No!!ALSA Version
!!------------Driver version: 1.0.23 Library version: 1.0.23 Utilities version: 1.0.23!!Loaded ALSA modules
!!-------------------!!Sound Servers on this system
!!----------------------------No sound servers found.
!!Soundcards recognised by ALSA
!!-------------------------------- no soundcards ---
!!PCI Soundcards installed in the system
!!--------------------------------------!!Advanced information - PCI Vendor/Device/Susbsystem ID's !!--------------------------------------------------------
!!Modprobe options (Sound related)
!!--------------------------------snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-pcsp: index=-2
snd-usb-audio: index=-2!!Loaded sound module options
!!--------------------------!!ALSA Device nodes
!!-----------------crw-rw---- 1 root audio 116, 33 Nov 11 08:23
/dev/snd/timer!!Aplay/Arecord output
!!------------APLAY
aplay: device_list:235: no soundcards found...
ARECORD
arecord: device_list:235: no soundcards found...
!!Amixer output
!!-------------!!Alsactl output
!!---------------startcollapse--
--endcollapse--!!All Loaded Modules
!!------------------Module
snd_soc_kirkwoodsnd_soc_coresnd_pcmsnd_timer
sndsnd_page_alloc
bridge
stp
llc
nfsd
lockdnfs_aclauth_rpcgss
sunrpc
exportfs
loop
xgifb
fb
cfbcopyareamv_cesa
cfbimgbltaes_generic
cfbfillrectsd_modcrc_t10difusb_storagesata_mv
libataehci_hcdscsi_mod
usbcoremv643xx_eth
libphynls_base!!ALSA/HDA dmesg
!!------------------PS: please note that none of the snd* modules are loaded by default.
PPS: Somewhere in the code (
sound/soc/kirkwood/kirkwood-openrd.c) there is a check:machine_is_openrd_client()but in my case it should bemachine_is_openrd_ultimate(). I removed this check anyway.Signature · 12 lines
_ ( ) ascii ribbon campaign - against html e-mail X www.asciiribbon.org - against proprietary attachments / \ _______________________________________________ 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."
Mark Brown <[email protected]> writes:
Hi,
Quoted 5 lines · Teodor
Quoted 4 lines
I am writing to this list in the hope that somebody can clear me out if this platform is supported and I am doing something wrong, or if it is still work in progress.
You have an OpenRD Client or Ultimate ? I'll consider you have an Ultimate.
You need to patch some files (assuming the Ultimate as a cs42l51 at i2c address 4a like the Client) like I did in the patch sent with this mail.
Quoted 17 lines
Quoted 3 lines
The drivers that I think should work with my hardware (OpenRD ultimate) are located in
sound/soc/kirkwood/*.Please remember to always CC maintainers on posts to Linux lists. I've added a CC to Arnaud and not cut any text for his benefit.
Quoted 10 lines
Sound on this device worked (partially) with the default software it came but not with the latest about 10 kernels I have tried.
I added bellow the output of
alsa-info.shscript. If needed I can look for more or try to fix it (with some help).Best Regards,
Teodor
[...]
Quoted 27 lines
Quoted 27 lines
Module
snd_soc_kirkwoodsnd_soc_coresnd_pcmsnd_timer
sndsnd_page_alloc
bridge
stp
llc
nfsd
lockdnfs_aclauth_rpcgss
sunrpc
exportfs
loop
xgifb
fb
cfbcopyareamv_cesa
cfbimgbltaes_generic
cfbfillrectsd_modcrc_t10difusb_storage
Quoted 8 lines
Quoted 8 lines
sata_mv
libataehci_hcdscsi_mod
usbcoremv643xx_eth
libphynls_base
I don't see snd-soc-openrd.ko and snd-soc-kirkwood-i2s.ko loaded and you need them. Also, please give kernel boot logs if the sound is still not working with my patch and all needed modules loaded. Checking if the codec is still a cs42l51 at 0x4a would be nice too.
Arnaud
Kirkwood/ASoC: Add support for OpenRD Ultimate
OpenRD Ultimate & Client are similar machines so enable OpenRD client support on Ultimate too
arch/arm/mach-kirkwood/openrd-setup.c +1 -1
@@ -94,7 +94,7 @@kirkwood_i2c_init (); -if (machine_is_openrd_client ()) { +if (machine_is_openrd_client () ||machine_is_openrd_ultimate ()) {i2c_register_board_info (0 , i2c_board_info,ARRAY_SIZE (i2c_board_info));kirkwood_audio_init ();
sound/soc/kirkwood/kirkwood-openrd.c +1 -1
@@ -86,7 +86,7 @@ {int ret; -if (!machine_is_openrd_client ()) +if (!machine_is_openrd_client () && !machine_is_openrd_ultimate ())return 0 ; openrd_client_snd_device =platform_device_alloc ("soc-audio" ,-1 );
sound/soc/kirkwood/Kconfig +1 -1
@@ -11,7 +11,7 @@ config SND_KIRKWOOD_SOC_OPENRD tristate "SoC Audio support for Kirkwood Openrd Client" - depends on SND_KIRKWOOD_SOC && MACH_OPENRD_CLIENT + depends on SND_KIRKWOOD_SOC && (MACH_OPENRD_CLIENT || MACH_OPENRD_ULTIMATE) select SND_KIRKWOOD_SOC_I2S select SND_SOC_CS42L51 help
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Solved. All functions I tried (playback, volume control, muting) work fine.
The codec is found as:
cs42l51-codec 0-004a: found device cs42l51 rev 1
Manny thanks for this driver.
Also thanks to Mark Brown for pointing the info in the right direction.
Quoted 80 lines · Arnaud Patard (Rtp)
Mark Brown<[email protected]> writes:
Hi,
Quoted 5 lines · Teodor
Quoted 4 lines
I am writing to this list in the hope that somebody can clear me out if this platform is supported and I am doing something wrong, or if it is still work in progress.
You have an OpenRD Client or Ultimate ? I'll consider you have an Ultimate.
You need to patch some files (assuming the Ultimate as a cs42l51 at i2c address 4a like the Client) like I did in the patch sent with this mail.
Quoted 17 lines
Quoted 3 lines
The drivers that I think should work with my hardware (OpenRD ultimate) are located in
sound/soc/kirkwood/*.Please remember to always CC maintainers on posts to Linux lists. I've added a CC to Arnaud and not cut any text for his benefit.
Quoted 10 lines
Sound on this device worked (partially) with the default software it came but not with the latest about 10 kernels I have tried.
I added bellow the output of
alsa-info.shscript. If needed I can look for more or try to fix it (with some help).Best Regards,
Teodor[...]
Quoted 27 lines
Quoted 27 lines
Module
snd_soc_kirkwoodsnd_soc_coresnd_pcmsnd_timer
sndsnd_page_alloc
bridge
stp
llc
nfsd
lockdnfs_aclauth_rpcgss
sunrpc
exportfs
loop
xgifb
fb
cfbcopyareamv_cesa
cfbimgbltaes_generic
cfbfillrectsd_modcrc_t10difusb_storageQuoted 8 lines
Quoted 8 lines
sata_mv
libataehci_hcdscsi_mod
usbcoremv643xx_eth
libphynls_baseI don't see snd-soc-openrd.ko and snd-soc-kirkwood-i2s.ko loaded and you need them. Also, please give kernel boot logs if the sound is still not working with my patch and all needed modules loaded. Checking if the codec is still a cs42l51 at
0x4awould be nice too.Arnaud
Signature · 4 lines
_ ( ) ascii ribbon campaign - against html e-mail X www.asciiribbon.org - against proprietary attachments / \
"Robas, Teodor" <[email protected]> writes:
Hi,
Quoted 6 lines
Solved. All functions I tried (playback, volume control, muting) work fine.
The codec is found as:
cs42l51-codec 0-004a: found device cs42l51 rev 1Manny thanks for this driver.
Just to be sure I understand what you meant, you applied my patch and all things are working now, right ?
Arnaud
Quoted 5 lines · Arnaud Patard (Rtp)
"Robas, Teodor"<[email protected]> writes:
Just to be sure I understand what you meant, you applied my patch and all things are working now, right ?
Yes, that is correct.
Quoted 3 lines
Arnaud
Signature · 4 lines
_ ( ) ascii ribbon campaign - against html e-mail X www.asciiribbon.org - against proprietary attachments / \