Hi,
I am trying to enable a software mixer (using ALSA and dmix) on an OMAP3
based embedded target board using the twl4030 codec.
When I try to play audio using the command,
# aplay -D playback rec.wav
I am getting the following error:
ALSA lib pcm_direct.c:1098:(snd_pcm_direct_initialize_poll_fd) unable to
open timer 'hw:CLASS=3,SCLASS=0,CARD=0,DEV=0,SUBDEV=0'
ALSA lib pcm_dmix.c:943:(snd_pcm_dmix_open) unable to initialize poll_fd
aplay: main:546: audio open error: No such file or directory
The contents of my /etc/asound.conf is given below.
pcm.playback {
type dmix
ipc_key 2048
ipc_key_add_uid true
ipc_gid 1
slave {
rate 44100
pcm hw:0
}
}
I have tested it on two kernel versions, 2.6.22 and 2.6.29, but it fails on
both.
Playback and recording works fine if -D option is not provided.
I also tried configuring ALSA (dmix) with a different configuration file
which is given in the following link:
http://amarok.kde.org/wiki/Setting_up_Dmix_for_ALSA
# aplay -D plug:ossmix /mnt/Audio1_1.wav
ALSA lib pcm_direct.c:1098:(snd_pcm_direct_initialize_poll_fd) unable to
open timer 'hw:CLASS=3,SCLASS=0,CARD=0,DEV=0,SUBDEV=0'
ALSA lib pcm_dmix.c:943:(snd_pcm_dmix_open) unable to initialize poll_fd
aplay: main:546: audio open error: No such file or directory
But as you can see the same error turns up again.
What could be the cause of this error?
Is the above error related to ALSA configuration (for dmix)?
Do I need to patch the kernel or ALSA for using dmix?
Please help me resolve this issue. Let me know if any more setup info is
required.
Thanks and Regards,
Ruchi Sirauthiya.
Some information I obtained from the proc filesystem is given below for your
reference.
-----------------------
For Linux kernel 2.6.29
-----------------------
[root@OMAP3 tests]# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.19
[root@OMAP3 tests]# cat /proc/asound/cards
0 [omap3evm ]: twl4030 - omap3evm
omap3evm (twl4030)
[root@OMAP3 tests]# omap-dss: Could not find exact pixel clock. Requested
25188 kHz, got 25187 kHz
[root@OMAP3 tests]# cat /proc/asound/devices
2: : timer
3: [ 0- 0]: digital audio playback
4: [ 0- 0]: digital audio capture
5: [ 0] : control
[root@OMAP3 tests]# cat /proc/asound/timers
G0: system timer : 7812.500us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
[root@OMAP3 tests]# cat /proc/asound/pcm
00-00: TWL4030 twl4030-0 : : playback 1 : capture 1
[root@OMAP3 tests]# cat /proc/asound/devices
2: : timer
3: [ 0- 0]: digital audio playback
4: [ 0- 0]: digital audio capture
5: [ 0] : control
[root@OMAP3 tests]# cat /proc/asound/pcm
00-00: TWL4030 twl4030-0 : : playback 1 : capture 1
[root@OMAP3 tests]# cat /proc/asound/oss/devices
3: [0- 0]: digital audio
4: [0- 0]: digital audio
[root@OMAP3 tests]# cat /proc/asound/oss/sndstat
Sound Driver:3.8.1a-980706 (ALSA v1.0.19 emulation code)
Kernel: Linux OMAP3 2.6.29-rc3-omap1 #1 Fri Jul 24 14:45:37 IST 2009 armv7l
Config options: 0
Installed drivers:
Type 10: ALSA emulation
Card config:
omap3evm (twl4030)
Audio devices:
0: (DUPLEX)
Synth devices: NOT ENABLED IN CONFIG
Midi devices: NOT ENABLED IN CONFIG
Timers:
31: system timer
Mixers: NOT ENABLED IN CONFIG
[root@OMAP3 tests]# aplay -D playback /mnt/Audio1_1.wav
ALSA lib pcm_direct.c:1098:(snd_pcm_direct_initialize_poll_fd) unable to
open timer 'hw:CLASS=3,SCLASS=0,CARD=0,DEV=0,SUBDEV=0'
ALSA lib pcm_dmix.c:943:(snd_pcm_dmix_open) unable to initialize poll_fd
aplay: main:546: audio open error: No such file or directory
-----------------------
For Linux kernel 2.6.22
-----------------------
[root@OMAP3 tests]# cat /proc/asound/devices
2: : timer
3: [ 0- 0]: digital audio playback
4: [ 0- 0]: digital audio capture
5: [ 0] : control
[root@OMAP3 tests]# cat /proc/asound/pcm
00-00: OMAP PCM : omap alsa pcm : playback 1 : capture 1
[root@OMAP3 tests]# cat /proc/asound/timers
G0: system timer : 7812.500us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
[root@OMAP3 tests]# cat /proc/asound/
/proc/asound/TWL4030/ /proc/asound/devices /proc/asound/timers
/proc/asound/card0/ /proc/asound/hwdep /proc/asound/version
/proc/asound/cards /proc/asound/pcm
[root@OMAP3 tests]# cat /proc/asound/cards
0 [TWL4030 ]: OMAP_ALSA - TWL4030
TWL4030
/proc/asound/oss was not found in the proc file system when booted with
kernel 2.6.22.
While I'm posting newbie questions...
The Multiface has its own hardware monitoring, its own headphone output,
and its own very thorough digital mixer with all kinds of internal
routing options, all configurable from the HDSPmixer program in Linux.
With this being true...
...does latency even matter? Is there any reason I need to shoot for
low latency at all if the card is providing its own monitoring functions
in hardware? Is there any other benefit in Ardour, Linuxsampler, or
anywhere else really, to having <5ms latency in Jack? Just
wondering...I've been seeing a lot of posts online implying that it's
just a matter of making laying down new tracks over existing material
seem less lagged.
If that's all it is, I'd imagine the system could breathe a bit easier
with less aggressive settings.
--
+ Brent A. Busby + "We've all heard that a million monkeys
+ UNIX Systems Admin + banging on a million typewriters will
+ University of Chicago + eventually reproduce the entire works of
+ Physical Sciences Div. + Shakespeare. Now, thanks to the Internet,
+ James Franck Institute + we know this is not true." -Robert Wilensky
It's that question again, and it's here for you to answer and gain cookie
points!
Here's my array of the chosen ones:
ECHO AudioFire 4 [[
http://www.echoaudio.com/Products/FireWire/AudioFire4/index.php ]]
Edirol FA-66 [[
http://www.rolandus.com/products/productdetails.aspx?ObjectId=731&ParentId=…
ESI QuataFire 610 [[ http://www.esi-audio.com/products/quatafire610/ ]]
Focusrite Saffire [[ http://www.focusrite.com/products/saffire/saffire/ ]]
That was narrowed down from [[
http://ffado.org/?q=devicesupport%2Flist&filter0=&filter1=&op2=OR&filter2%5….
All these satisfy my need for mobility and at least 2 DI and MIC inputs.
>From what I know, they pretty much cost about the same, or within 100-200
bucks apart.
* All except the Focusrite are hybrid inputs, so it has the upper hand
there.
* Only the Focusrite has onboard DSP effects, BUT unsupported on Linux
(ffado)
* Only the ESI officially mentions support for Linux
So here's the homework for you guys:
Reorder the list in decreasing order of merit. Conditions include (in order
of decreasing importance):
* Preamp Quality
* Linux Support Extent
* Beauty
* Portability
If that one's too tough, then just pick 1 (or 2/3 depending on which of
those you have firsthand experience with) =p
Thanks and good luck!
Is it wrong to use a regular cable (no transformer) to connect the XLR
main and submix group outputs of a console to the TRS (balanced) inputs
of an audio card, or should impedance matching be done in that case?
It is quite common in music stores these days to find cables that are
XLR male on one end and TRS male on the other. (I'm currently using
those on my mixer outputs.) The cables *are* balanced, but they do not
contain a transformer at all.
The impedance of my console's main/submix outputs is rated as less than
75 ohms, but the input impedance of my audio card is 10k ohm. This
would seem to almost answer the question by itself, it weren't for the
near impossibility of actually finding a matching transformer that's TRS
and not TS on its 1/4" end. I looked at a lot of them. They're all
made for hooking up guitars, amps, and mics, and they all seem to have
an unbalanced plug opposite from the XLR end.
If there is indeed a need transformers on each XLR mixer output in this
instance, where can I get one that won't unbalance the connection in the
process? Or is it fine to just use these common XLR->TRS cables that
don't have any? The reason I started to investigate this is because I'm
not sure I'm not getting some of the "tone suck" you might associate
with a badly matched connection, and this seems a likely cause.
Addendum: On the realtime end of things, I'm now achievable a solid,
unbreakable 2ms. I can't seem to do anything that causes an xrun.
That's good at least!
--
+ Brent A. Busby + "We've all heard that a million monkeys
+ UNIX Systems Admin + banging on a million typewriters will
+ University of Chicago + eventually reproduce the entire works of
+ Physical Sciences Div. + Shakespeare. Now, thanks to the Internet,
+ James Franck Institute + we know this is not true." -Robert Wilensky
Hello everyone!
Here's some new music from me. Again something from a different season:
http://juliencoder.de/the_vision.ogg
(Unfortunitely no ogg-deficient version fromme :-) )
It's a piece about a better world, well about how it could be a bit nicer.
Software used:
Nama (as always)
fluidsynth (for the bass)
LinuxSampler (for drums and brass)
and
praat (for some voice editing)
Lyrics:
A world of trust
With regard for the meak,
Where the peoples are just
And freedom is, what they seek.
-
A society where
For the weakest we care,
The parole we call:
all for one, one for all!
[Chorus]
Yes we would,
If we could
Distribute and share our hope.
Yes we would
Stop sliding down the slope
Yes we would make love a vision
Of the world and future days, that we can see
[ho ho ho :-) ]
We're sure, you would agree:
It might be nice.
A time, when the queer
Can move anywhere,
Without any fear
To be hanged on the square.
-
A place and a time
For all warfare to rest.
Let's put to the test
This vision to rise...
Flourish and shine
[Chorus]
[instrumental]
[changed chorus]
Yes we can,
Like one man,
Distribute and share our hope.
Yes we can
Stop sliding down the slope.
Yes we will make love a vision
Of the world and future days, that we can see
We're sure you can agree:
It will be nice
Feedback, as ever is highly welcome and greatfully invited!
Kindest regards
Julien
--------
Music was my first love and it will be my last (John Miles)
======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de
At Julien's recommendation, I purchased the PMI Steinway Gigasample, and downloaded and compiled/optimized LinuxSampler/libgig6/liblinuxsampler on my Lenny Debian EEE.
LinuxSampler is freakin' awesome!
It's a massive Steinway soundfont, takes up 3.6GB, I loaded it on the 32GB SSD drive in my EEE, and that puppy runs along with all my other synths with no glitches, on a little 1.6Ghz EEE. I can actually hear the sound of the pedals going up and down, and the sound of the dampers settling on the strings when I lift keys up. Ran it through the CALF reverb, and man is it good. Can't wait to try it through jconv.
For years I'd been using a 30MB Steinway soundfont, but fluidsynth choked on it on my little EEE. But LinuxSampler is loving this much more bulky and detailed gigasample.
I have a 1923 Steinway in my backpack. If you had told me 20 years ago that this would be possible, I'd never have believed you.
-ken
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello folks ;-)
I understand that some are wondering, where the Linux-made music went...
So here I have another track recorded with Ardour 2.8 under Linux using
free Software, free Samples and some Guitars and voices excluselively:
http://lapoc.de/demos/maria-katharsis-feelings-080709.mp3
The singer is from siberia:
http://www.myspace.com/marachowska
(still dwelling in the evil, not-so-good looking empire of imperator
Darth Murdoch and the rotten HTML/JS-code from hell - the so-called
"myspace")
She sang the tune in her russian mother-tongue accompanied by herself on
an accoustic guitar, miked with an AKG Perception 100 and an RFT DM122
so voice and guitar is not separated. A man named Vincent played a
slideguitar and a metal-ish outro and I added some additional clean and
heavy guitars using my Ibanez RG and Guitarix and
AMS-Guitrack(C*-Plugins) and some fat Drumsamples using a Behringer
U-Control and Specimen.
Everything was recorded and mixed with Ardour 2.8 with some CALF and
INVADA LV2-Plugins plus several LADSPA-Plugs(TAP, C* and SWH) for
reverb, delays, FX and compression/EQ. In the end we mastered it with jamin.
We hope you like it,
*All* kinds of comments are highly welcome....
best regs
HZN/Berlin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkpvh78ACgkQ1Aecwva1SWOopACdH2DknhYM+e8jYTysJQdtUy0c
MZ4An1D5v8SnWgdvXln7WhnjItFkQeVW
=giPw
-----END PGP SIGNATURE-----
Greetings,
I'm writing an article about using Jaunty for a desktop recording
platform, so of course I had to create a demo. Out of sheer laziness I
decided to record a song written by someone else, thus we now have:
http://linux-sound.org/audio/idontworryaboutathing.ogg
And for the OGG-deficient:
http://linux-sound.org/audio/idontworryaboutathing.mp3
The song is a great Mose Allison tune. The recording was quick & dirty,
done entirely (and literally) from the desktop. All parts performed by
DP except the drums, which are once again from the Beta Monkey Jazz
Essentials collection.
Vast thanks to the Ardour devs. What an amazing program.
Enjoy, and comments are welcome. Go easy on me, folks, this one was a
real rush job.
Best,
dp