TWL4030 Codec for OMAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 
I am posting the link for the code:
http://leonidosaurio.8m.com/TI/codec.html
 
It looks like the soundcard is registered and so do the controls, but I can't have access to them. 
I am including the info I get if that can be helpful to point out what I could be missing.
 
Thanks again,
Leo
----------------------------------------------------------------------------
 
root@# cat /sys/devices/L3/omap-audio7/
bus              sound:controlC0  sound:pcmC0D0p
driver           sound:pcmC0D0c
root@# cat /proc/driver/
snd-page-alloc  twl4030-rtc
root@# cat /proc/driver/snd-page-alloc
pages  : 262144 bytes (64 pages per 4kB)
root@# cat /sys/module/
8250         mmc_block    snd          snd_timer    v4l1_compat
lockd        smc91x       snd_pcm      tcp_bic      video_buf
root@# cat /sys/module/snd
snd        snd_pcm    snd_timer
root@# cat /sys/module/snd/parameters/
cards_limit  major
root@# cat /sys/module/snd/parameters/cards_limit
1
root@# cat /sys/module/snd_pcm/parameters/
maximum_substreams  preallocate_dma
root@# cat /sys/module/snd_pcm/parameters/maximum_substreams
4
root@# cat /sys/module/snd_timer/parameters/timer_limit
1
root@# more /proc/modules
root@#
root@# cat /dev/s [Tab]
shm      snd      sndstat  stderr   stdin    stdout
root@# cat /dev/snd
snd      sndstat
root@# cat /dev/snd/
controlC0  pcmC0D0c   pcmC0D0p   timer
root@# cat /dev/snd/controlC0
cat: /dev/snd/controlC0: File descriptor in bad state         <-------- !!!!
root@# cat /dev/snd/pcmC0D0c
cat: /dev/snd/pcmC0D0c: File descriptor in bad state          <-------- !!!!
root@# cat /dev/snd/pcmC0D0p
cat: /dev/snd/pcmC0D0p: Invalid argument                      <-------- !!!!
root@# cat /dev/snd/timer
[Ctrl + C]
root@# cat /dev/sndstat
cat: /dev/sndstat: No such file or directory
root@#
root@# cat /proc/asound/card0/pcm0c/info
card: 0
device: 0
subdevice: 0
stream: CAPTURE
id: OMAP PCM
name: omap alsa pcm
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1
root@# cat /proc/asound/card0/pcm0p/info
card: 0
device: 0
subdevice: 0
stream: PLAYBACK
id: OMAP PCM
name: omap alsa pcm
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1
root@#
 
 


From: Martinez de la Cruz, Leonides
Sent: Fri 3/2/2007 4:19 PM
To: alsa-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: TWL4030 Codec for OMAP

Hi,
 
I am currently working in porting a TWL4030 chip codec to use ALSA library. I am using alsa-lib-1.0.13 and alsa-utils-1.0.13, in a 2.6.14 kernel version. It seems the sound card is registered and also do the mixer controls. But when trying to access the specific information of one control, I get the following error:
 
amixer: Control hw:0 element read error: Inappropriate ioctl for device
 
Have anyone seen this type of error before? Am I missing to register something correctly in the codec?
Any hint will be appreciated. Thanks in advance for your help :)
 
Regards,
Leo
 
I am including the log of what I get:
-------------------------------------------------------------------------------------------
root@#
root@
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: TWL4030 [TWL4030], device 0: OMAP PCM [omap alsa pcm]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: TWL4030 [TWL4030], device 0: OMAP PCM [omap alsa pcm]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@# amixer info
Card default 'TWL4030'/'TWL4030'
  Mixer name    : ''
  Components    : ''
  Controls      : 16
amixer: Mixer load default error: Inappropriate ioctl for device
root@# amixer -c0 controls
numid=1,iface=MIXER,name='Master Playback Volume'
numid=10,iface=MIXER,name='Master Capture Volume'
numid=7,iface=MIXER,name='Earphone Playback Switch'
numid=6,iface=MIXER,name='Earphone Playback Volume'
numid=5,iface=MIXER,name='Hands-free Playback Switch'
numid=4,iface=MIXER,name='Hands-free Playback Volume'
numid=3,iface=MIXER,name='Headset Playback Switch'
numid=2,iface=MIXER,name='Headset Playback Volume'
numid=12,iface=MIXER,name='Headset-Mic Capture Switch'
numid=11,iface=MIXER,name='Headset-Mic Capture Volume'
numid=14,iface=MIXER,name='Main-Mic Capture Switch'
numid=13,iface=MIXER,name='Main-Mic Capture Volume'
numid=9,iface=MIXER,name='Sidetone Playback Switch'
numid=8,iface=MIXER,name='Sidetone Playback Volume'
numid=16,iface=MIXER,name='Sub-Mic Capture Switch'
numid=15,iface=MIXER,name='Sub-Mic Capture Volume'
root@# amixer -c0 scontrols
amixer: Mixer hw:0 load error: Inappropriate ioctl for device
root@# amixer -c0 cget numid=1
numid=1,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw------,values=2,min=0,max=100,step=0
amixer: Control hw:0 element read error: Inappropriate ioctl for device
root@# amixer -c0 cset numid=1 50
amixer: Control hw:0 element write error: Inappropriate ioctl for device
root@#
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux