TWL4030 Codec for OMAP

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

 



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