Hi,<div><br></div><div>Thanks for the quick response.</div><div><br></div><div>I had come across that thread when I goggled for a solution. As you have suggested I have subscribed and posted this issue to alsa-devel mailing list.</div>

<div><br></div><div>In the meanwhile, I would like to figure out the exact cause/source of the error so that I can isolate this issue. Does this error occur due to some invalid configuration file or setup with ALSA? or Is it a hardware/driver/kernel specific issue?</div>

<div><br></div><div>Also, could someone point me to some documentation which explains the timer setup and its usage in ALSA.</div><div><br></div><div>Thanks and Regards,</div><div><br></div><div>Ruchi.</div><div><br></div>

<br><div class="gmail_quote">On Sat, Aug 15, 2009 at 7:31 PM, Patrick Shirkey <span dir="ltr">&lt;<a href="mailto:pshirkey@boosthardware.com">pshirkey@boosthardware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




  

<div bgcolor="#ffffff" text="#000000"><div class="im">
<br>
On 08/15/2009 11:06 PM, ruchi sirauthiya wrote:
<blockquote type="cite">
  <div>Hi,</div>
  <div><br>
  </div>
  <div>I am trying to enable a software mixer (using ALSA and dmix) on
an OMAP3 based embedded target board using the twl4030 codec.</div>
  <div><br>
  </div>
  <div>When I try to play audio using the command,</div>
  <div><br>
  </div>
  <div># aplay -D playback rec.wav</div>
  <div><br>
  </div>
  <div>I am getting the following error:</div>
  <div><br>
  </div>
  <div>ALSA lib pcm_direct.c:1098:(snd_pcm_direct_initialize_poll_fd)
unable to</div>
  <div>open timer &#39;hw:CLASS=3,SCLASS=0,CARD=0,DEV=0,SUBDEV=0&#39;</div>
  <div>ALSA lib pcm_dmix.c:943:(snd_pcm_dmix_open) unable to initialize
poll_fd</div>
  <div>aplay: main:546: audio open error: No such file or directory</div>
  <div><br>
  </div>
</blockquote>
<br></div>
According to this thread the drivers can&#39;t open a second timer on your
device.<br>
<br>
<a href="http://osdir.com/ml/linux.distributions.crux.general/2005-11/msg00134.html" target="_blank">http://osdir.com/ml/linux.distributions.crux.general/2005-11/msg00134.html</a><br>
<br>
<br>
Probably best to contact alsa-dev directly on this one.<br>
<br>
<br>
Warmest regards.<br>
<br>
<pre cols="72">Patrick Shirkey
Boost Hardware Ltd</pre>
<br>
<br>
<br>
<br>
<br>
<blockquote type="cite"><div><div></div><div class="h5">
  <div>The contents of my /etc/asound.conf is given below.</div>
  <div><br>
  </div>
  <div>pcm.playback {</div>
  <div>   type dmix</div>
  <div>   ipc_key 2048</div>
  <div>   ipc_key_add_uid true</div>
  <div>   ipc_gid 1</div>
  <div>   slave {</div>
  <div>      rate 44100</div>
  <div>      pcm hw:0</div>
  <div>   }</div>
  <div>}</div>
  <div><br>
  </div>
  <div>I have tested it on two kernel versions, 2.6.22 and 2.6.29, but
it fails on both.</div>
  <div>Playback and recording works fine if -D option is not provided.</div>
  <div><br>
  </div>
  <div>I also tried configuring ALSA (dmix) with a different
configuration file which is given in the following link:</div>
  <div><a href="http://amarok.kde.org/wiki/Setting_up_Dmix_for_ALSA" target="_blank">http://amarok.kde.org/wiki/Setting_up_Dmix_for_ALSA</a></div>
  <div><br>
  </div>
  <div># aplay -D plug:ossmix /mnt/Audio1_1.wav</div>
  <div>ALSA lib pcm_direct.c:1098:(snd_pcm_direct_initialize_poll_fd)
unable to open timer &#39;hw:CLASS=3,SCLASS=0,CARD=0,DEV=0,SUBDEV=0&#39;</div>
  <div>ALSA lib pcm_dmix.c:943:(snd_pcm_dmix_open) unable to initialize
poll_fd</div>
  <div>aplay: main:546: audio open error: No such file or directory</div>
  <div><br>
  </div>
  <div>But as you can see the same error turns up again.</div>
  <div><br>
  </div>
  <div>What could be the cause of this error?</div>
  <div><br>
  </div>
  <div>Is the above error related to ALSA configuration (for dmix)?</div>
  <div>Do I need to patch the kernel or ALSA for using dmix?</div>
  <div><br>
  </div>
  <div>Please help me resolve this issue. Let me know if any more setup
info is required.</div>
  <div><br>
  </div>
  <div>Thanks and Regards,</div>
  <div><br>
  </div>
  <div>Ruchi Sirauthiya.</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>Some information I obtained from the proc filesystem is given
below for your reference.</div>
  <div><br>
  </div>
  <div>-----------------------</div>
  <div>For Linux kernel 2.6.29</div>
  <div>-----------------------</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/version</div>
  <div>Advanced Linux Sound Architecture Driver Version 1.0.19</div>
  <div> </div>
  <div> </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/cards</div>
  <div> 0 [omap3evm       ]: twl4030 - omap3evm</div>
  <div>                      omap3evm (twl4030)</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# omap-dss: Could not find exact pixel clock.
Requested 25188 kHz, got 25187 kHz</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/devices</div>
  <div>  2:        : timer</div>
  <div>  3: [ 0- 0]: digital audio playback</div>
  <div>  4: [ 0- 0]: digital audio capture</div>
  <div>  5: [ 0]   : control</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/timers</div>
  <div>G0: system timer : 7812.500us (10000000 ticks)</div>
  <div>P0-0-0: PCM playback 0-0-0 : SLAVE</div>
  <div>P0-0-1: PCM capture 0-0-1 : SLAVE</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/pcm</div>
  <div>00-00: TWL4030 twl4030-0 :  : playback 1 : capture 1</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/devices</div>
  <div>  2:        : timer</div>
  <div>
  3: [ 0- 0]: digital audio playback</div>
  <div>  4: [ 0- 0]: digital audio capture</div>
  <div>  5: [ 0]   : control</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/pcm</div>
  <div>00-00: TWL4030 twl4030-0 :  : playback 1 : capture 1</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/oss/devices</div>
  <div>  3: [0- 0]: digital audio</div>
  <div>  4: [0- 0]: digital audio</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/oss/sndstat</div>
  <div>Sound Driver:3.8.1a-980706 (ALSA v1.0.19 emulation code)</div>
  <div>Kernel: Linux OMAP3 2.6.29-rc3-omap1 #1 Fri Jul 24 14:45:37 IST
2009 armv7l</div>
  <div>Config options: 0</div>
  <div>Installed drivers:</div>
  <div>Type 10: ALSA emulation</div>
  <div><br>
  </div>
  <div>Card config:</div>
  <div>omap3evm (twl4030)</div>
  <div><br>
  </div>
  <div>Audio devices:</div>
  <div>0:  (DUPLEX)</div>
  <div><br>
  </div>
  <div>Synth devices: NOT ENABLED IN CONFIG</div>
  <div><br>
  </div>
  <div>Midi devices: NOT ENABLED IN CONFIG</div>
  <div><br>
  </div>
  <div>Timers:</div>
  <div>31: system timer</div>
  <div><br>
  </div>
  <div>Mixers: NOT ENABLED IN CONFIG</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# aplay -D playback /mnt/Audio1_1.wav</div>
  <div>ALSA lib pcm_direct.c:1098:(snd_pcm_direct_initialize_poll_fd)
unable to open timer &#39;hw:CLASS=3,SCLASS=0,CARD=0,DEV=0,SUBDEV=0&#39;</div>
  <div>ALSA lib pcm_dmix.c:943:(snd_pcm_dmix_open) unable to initialize
poll_fd</div>
  <div>aplay: main:546: audio open error: No such file or directory</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>-----------------------</div>
  <div>For Linux kernel 2.6.22</div>
  <div>-----------------------</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/devices</div>
  <div>  2:        : timer</div>
  <div>  3: [ 0- 0]: digital audio playback</div>
  <div>  4: [ 0- 0]: digital audio capture</div>
  <div>  5: [ 0]   : control</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/pcm</div>
  <div>00-00: OMAP PCM : omap alsa pcm : playback 1 : capture 1</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/timers</div>
  <div>G0: system timer : 7812.500us (10000000 ticks)</div>
  <div>P0-0-0: PCM playback 0-0-0 : SLAVE</div>
  <div>P0-0-1: PCM capture 0-0-1 : SLAVE</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/</div>
  <div>/proc/asound/TWL4030/  /proc/asound/devices   /proc/asound/timers</div>
  <div>/proc/asound/card0/    /proc/asound/hwdep    
/proc/asound/version</div>
  <div>/proc/asound/cards     /proc/asound/pcm</div>
  <div><br>
  </div>
  <div>[root@OMAP3 tests]# cat /proc/asound/cards</div>
  <div> 0 [TWL4030        ]: OMAP_ALSA - TWL4030</div>
  <div>                      TWL4030</div>
  <div> </div>
  <div>/proc/asound/oss was not found in the proc file system when
booted with kernel 2.6.22.</div>
  </div></div><pre><hr size="4" width="90%">
_______________________________________________
Linux-audio-user mailing list
<a href="mailto:Linux-audio-user@lists.linuxaudio.org" target="_blank">Linux-audio-user@lists.linuxaudio.org</a>
<a href="http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user" target="_blank">http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user</a>
  </pre>
</blockquote>
</div>

</blockquote></div><br>