Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Takashi Iwai
At Mon, 17 Mar 2008 04:18:15 +0100,
Rene Herman wrote:
> 
> On 17-03-08 03:57, Alexander Indenbaum wrote:
> 
> > I'm playing with embedded system without any hardware sound device. I'd like
> > to grab sound from ALSA application, for instance Firefox displaying YouTube
> > clip inside flash plugin and to store  output PCM stream into file on local
> > disk. I got an advice to use File extension. So I defined following
> > /usr/share/alsa/alsa.conf
> 
> Don't do it there. Use /etc/asound.conf or $HOME/.asoundrc ...

Or /etc/asound.conf.  It's the additional place for the system-wide
definitions.

> > pcm.default{
> > type
> > file
> > file
> > /tmp/pcm.out
> > }
> 
> ... and make it
> 
> pcm.!default {
>  typefile
>  slave   {
>  pcm null
>  }
>  file"/tmp/pcm.out"
> }
> 
> Exactly why you need that slave definition I'm not sure either, but it seems 
> you do.

The file plugin requires the slave for its configuration and as the
timing source.  Using "null" is just to accept any config and feed the
data as fast as possible.  If you need to save the data as if it's
being played, use the kernel dummy driver as the slave.

> Also note that /tmp/pcm.out will be headerless PCM and is recreated 
> for individual opens. I don't believe there's an append mode or anything 
> (and you'd need to make sure that everyone plays the same format) so not 
> toot sure if this is what you need to have a catch all audio-sink...

Recently I added a new option "truncate" to file plugin.  As default,
it's set to true (for compatibility reason), and the plugin overwrite
the existing file if reopened.  When it's set to false, a new file is
created with a different suffix (up to 1000 files) at each time.


Takashi

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Rene Herman
On 17-03-08 04:35, Alexander Indenbaum wrote:

> On Mon, Mar 17, 2008 at 5:18 AM, Rene Herman <[EMAIL PROTECTED] 

> Don't do it there. Use /etc/asound.conf or $HOME/.asoundrc ...
> 
> 
> Generally I'd agree with you that $HOME/.asoundrc is way to go if it was 
> my desktop workstation. But this is an embedded system, so I'd like to 
> force it on system level.

As I said, use /etc/asound.conf

> Still it does not  work ( I still use system alsa.conf though ).

That's the reason.

> You touching here an interesting point. How  indeed I could get an PCM 
> header?

You don't really need one if you know the format. Ie, with aplay (and 
foo.wav being CD format):

aplay foo.wav
aplay -D hw:0 -f cd /tmp/pcm.out

Rene.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Rene Herman
On 17-03-08 09:05, Takashi Iwai wrote:
> At Mon, 17 Mar 2008 04:18:15 +0100,
> Rene Herman wrote:

>> Don't do it there. Use /etc/asound.conf or $HOME/.asoundrc ...
> 
> Or /etc/asound.conf.  It's the additional place for the system-wide
> definitions.

That's what I said. What happened? Alexander also completely missed that...

>> Exactly why you need that slave definition I'm not sure either, but it seems 
>> you do.
> 
> The file plugin requires the slave for its configuration and as the
> timing source.  Using "null" is just to accept any config and feed the
> data as fast as possible.  If you need to save the data as if it's
> being played, use the kernel dummy driver as the slave.

I see, thanks.

>> Also note that /tmp/pcm.out will be headerless PCM and is recreated 
>> for individual opens. I don't believe there's an append mode or anything 
>> (and you'd need to make sure that everyone plays the same format) so not 
>> toot sure if this is what you need to have a catch all audio-sink...
> 
> Recently I added a new option "truncate" to file plugin.  As default,
> it's set to true (for compatibility reason), and the plugin overwrite
> the existing file if reopened.  When it's set to false, a new file is
> created with a different suffix (up to 1000 files) at each time.

That sounds useful...

Rene.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Takashi Iwai
At Mon, 17 Mar 2008 13:34:11 +0100,
Rene Herman wrote:
> 
> On 17-03-08 09:05, Takashi Iwai wrote:
> > At Mon, 17 Mar 2008 04:18:15 +0100,
> > Rene Herman wrote:
> 
> >> Don't do it there. Use /etc/asound.conf or $HOME/.asoundrc ...
> > 
> > Or /etc/asound.conf.  It's the additional place for the system-wide
> > definitions.
> 
> That's what I said.

Ah, I must have been too careless...

> >> Also note that /tmp/pcm.out will be headerless PCM and is recreated 
> >> for individual opens. I don't believe there's an append mode or anything 
> >> (and you'd need to make sure that everyone plays the same format) so not 
> >> toot sure if this is what you need to have a catch all audio-sink...
> > 
> > Recently I added a new option "truncate" to file plugin.  As default,
> > it's set to true (for compatibility reason), and the plugin overwrite
> > the existing file if reopened.  When it's set to false, a new file is
> > created with a different suffix (up to 1000 files) at each time.
> 
> That sounds useful...

And I added another new feature to the file plugin to write WAV files
instead of raw files now to HG tree.  You can specify the format "wav"
instead of "raw" (the default one).

It's a so dumb implmenetation and has no check for over 2GB files.
But it might be more useful in many cases than raw outputs.


Takashi

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Rene Herman
On 17-03-08 16:07, Takashi Iwai wrote:

>>> Recently I added a new option "truncate" to file plugin.  As default,
>>> it's set to true (for compatibility reason), and the plugin overwrite
>>> the existing file if reopened.  When it's set to false, a new file is
>>> created with a different suffix (up to 1000 files) at each time.
> 
> And I added another new feature to the file plugin to write WAV files
> instead of raw files now to HG tree.  You can specify the format "wav"
> instead of "raw" (the default one).
> 
> It's a so dumb implmenetation and has no check for over 2GB files.
> But it might be more useful in many cases than raw outputs.

Yes. I've used the file plugin occasionally if only for some testing and 
appreciate this. Many thanks.

Rene.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Newbie question - cannot get sound to work in Ubuntu

2008-03-17 Thread Peter Toye
Nigel,

Well, as I said in my private email (forgot to include the mailing list), I
connected up my USB box, and can now both record and play back using
arecord and aplay. So the problem seems to be in the configuration of the
SB sound card. It was a cheap OEM one, so probably isn't well supported
anywhere.

I wish I'd had the courage to try the USB box first, but was a bit
worried about having 2 cards configured and wasn't sure about USB in
Linux.

As I'm more interested in the USB box, I think it's best to close this
thread, and thank you very much for your help and encouragement. Now for
some quality tests.

Best regards,

Peter
mailto:[EMAIL PROTECTED]
www.ptoye.com

-
Sunday, March 16, 2008, 12:39:45 PM, you wrote:

> On Friday 14 March 2008 23:14, Peter Toye wrote:
>> Nigel,
>>
>> I've had a play, and have another problem, which I'd already found before,
>> but hoped it would go away. When I try using aplay or arecord I get this
>> error message:
>>
>> $ arecord -d 30 -f cd -t wav test1.wav
>> ALSA lib confmisc.c:769:(parse_card) cannot find card '�g_driver'
>> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_card_driver
>> returned error: No such device ALSA lib confmisc.c:392:(snd_func_concat)
>> error evaluating strings ALSA lib conf.c:3510:(_snd_config_evaluate)
>> function snd_func_concat returned error: No such device ALSA lib
>> confmisc.c:1251:(snd_func_refer) error evaluating name
>> ALSA lib conf.c:3510:(_snd_config_evaluate) function snd_func_refer
>> returned error: No such device ALSA lib conf.c:3982:(snd_config_expand)
>> Evaluate error: No such device ALSA lib pcm.c:2144:(snd_pcm_open_noupdate)
>> Unknown PCM default
>> arecord: main:545: audio open error: No such device
>> $
>>
>> I can't say I'm surprised it can't find a driver with such an odd name.
>>
>> Best regards,
>>
>> Peter

> Hi Peter. I'm a bit lost as to your 
> problem. One thing I did see on the file you posted to pastebin was this.

 
> User specific config file (/home/ptoye/.asoundrc)
 
> # ALSA library configuration file
 
> # Include settings that are under the control of asoundconf(1).
> # (To disable these settings, comment out this line.)
> 

> In most cases an .asoundrc file is not necessary. I'd suggest renaming it 
> to .asoundrc.old, or whatever, then rebooting, and logging in again, and see 
> if anything has changed.

> It's strange that you have problems with alsamixer, in having to type 
> alsamixer -c 1 to get it to open the default, and also the problems with 
> aplay, and arecord. All three are part of the alsa-utils package, and could 
> be that your 1.0.14 one is faulty. I'd suggest upgrading both alsa-lib, and 
> alsa-utils to version 1.0.16.

> You can get the latest 1.0.16 versions from:
> http://alsa-project.org/main/index.php/Main_Page

> You will need to install the development package for the libncurses pkg you 
> have installed,  "before installing alsa-utils pkg", as alsamixer in 
> alsa-utils will need it, to build properly.

> I'd install the alsa-libs pkg first, followed by alsa-utils.

> The install after unpacking the tarball, and cd'ing to the newly created 
> directory, follows the usual.
> ./configure
> make
> sudo make install

> You probably know all that install stuff, but just in case.

> All the best.

> Nigel.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Forcing Alsa only in Ubuntu (7.10)?

2008-03-17 Thread Davd Topper
I've just apt-got a few alsa packages and out of habit installed the
alsa-oss package.  I've since removed that package and reinstalled.  But
lsmod still shows:

snd54660  23
snd_atiixp_modem,snd_via82xx_modem,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device


Does this mean that the package manager did not remove the alsa-oss
package?  Or is this normal behavior for the snd / alsa module under Ubuntu?

I'm asking because I want to make sure my apps interface via ALSA calls
at not OSS ones for the time being.  IE., I want to see errors if I make
any kind of an OSS call.

Thanks,

DT

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Forcing Alsa only in Ubuntu (7.10)?

2008-03-17 Thread Tobin Davis
This is normal.  The alsa-oss package is a wrapper for non-alsa
applications.  The snd-seq-oss and snd-pcm_oss are drivers that help
translate OSS calls to ALSA at the kernel level, whereas the alsa-oss
package contains a library that converts OSS system calls to alsa system
calls.  The driver version is better for applications that need direct
hardware control, the alsa-oss libraries are better for sharing the
sound codec between multiple applications.

Tobin


On Mon, 2008-03-17 at 16:24 -0400, Davd Topper wrote:

> I've just apt-got a few alsa packages and out of habit installed the
> alsa-oss package.  I've since removed that package and reinstalled.  But
> lsmod still shows:
> 
> snd54660  23
> snd_atiixp_modem,snd_via82xx_modem,snd_intel8x0m,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
> 
> 
> Does this mean that the package manager did not remove the alsa-oss
> package?  Or is this normal behavior for the snd / alsa module under Ubuntu?
> 
> I'm asking because I want to make sure my apps interface via ALSA calls
> at not OSS ones for the time being.  IE., I want to see errors if I make
> any kind of an OSS call.
> 
> Thanks,
> 
> DT
> 
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Alsa-user mailing list
> Alsa-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-user

-- 
Tobin Davis 


It's easy, Mmmkay!
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Alexander Indenbaum
>
> > pcm.!default {
> >  typefile
> >  slave   {
> >  pcm null
> >  }
> >  file"/tmp/pcm.out"
> > }
>

OK  - this goes to /etc/alsa.conf


>
> >
> > Exactly why you need that slave definition I'm not sure either, but it
> seems
> > you do.
>
> The file plugin requires the slave for its configuration and as the
> timing source.  Using "null" is just to accept any config and feed the
> data as fast as possible.  If you need to save the data as if it's
> being played, use the kernel dummy driver as the slave.


OK, I compiled alsa-drivers with Dummy as one and only card and loaded it
into the kernel:
# cat /proc/asound/card0/id
Dummy

Still no PCM in /tmp/pcm.out. I get following error messages though:
"(snd_determine_driver) could not open control for card 0"
"(_snd_config_evaluate) function snd_func_concat returned error: No such
file or directory"
"(snd_func_concat) error evaluating strings"
"(_snd_config_evaluate) function snd_func_concat returned error: No such
file or directory"
"(snd_func_refer) error evaluating name"
"(_snd_config_evaluate) function snd_func_refer returned error: No such file
or directory"
"(snd_config_expand) Evaluate error: No such file or directory"
"(snd_pcm_open_noupdate) Unknown PCM default"
"(_snd_pcm_plug_open) Unknown field hint"

Any clues?

Alexander Indenbaum
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Lee Revell
On Mon, Mar 17, 2008 at 8:27 PM, Alexander Indenbaum
<[EMAIL PROTECTED]> wrote:
> Still no PCM in /tmp/pcm.out. I get following error messages though:
>  "(snd_determine_driver) could not open control for card 0"
> "(_snd_config_evaluate) function snd_func_concat returned error: No such
> file or directory"
> "(snd_func_concat) error evaluating strings"
>  "(_snd_config_evaluate) function snd_func_concat returned error: No such
> file or directory"
> "(snd_func_refer) error evaluating name"
>  "(_snd_config_evaluate) function snd_func_refer returned error: No such
> file or directory"
>  "(snd_config_expand) Evaluate error: No such file or directory"
> "(snd_pcm_open_noupdate) Unknown PCM default"
>  "(_snd_pcm_plug_open) Unknown field hint"

Please strace aplay and see what files it's trying to open.

Lee

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Alexander Indenbaum
On Tue, Mar 18, 2008 at 2:45 AM, Lee Revell <[EMAIL PROTECTED]> wrote:

>
> Please strace aplay and see what files it's trying to open.
>

You're absolutely right.  I was missing /dev device files.
So my test goes like this:
- run snddevices script to create  /dev
- load snd drivers with Dummy compiled in
- open browser on YouTube clip

 Now there is no error messages. From other hand I do not see /tmp/pcm.out.
I tried to "touch" this file but it stays zero length.

So what next?


> Lee
>



-- 
Alexander Indenbaum
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Rene Herman
On 18-03-08 01:27, Alexander Indenbaum wrote:

> Still no PCM in /tmp/pcm.out. I get following error messages though:
> "(snd_determine_driver) could not open control for card 0"
> "(_snd_config_evaluate) function snd_func_concat returned error: No such 
> file or directory"
> "(snd_func_concat) error evaluating strings"
> "(_snd_config_evaluate) function snd_func_concat returned error: No such 
> file or directory"
> "(snd_func_refer) error evaluating name"
> "(_snd_config_evaluate) function snd_func_refer returned error: No such 
> file or directory"
> "(snd_config_expand) Evaluate error: No such file or directory"
> "(snd_pcm_open_noupdate) Unknown PCM default"
> "(_snd_pcm_plug_open) Unknown field hint"
> 
> Any clues? 

Yes, aplay would've worked. What you are using is trying to open controls 
for the card though and non are defined. If you will be using the dummy 
driver anyway, use:

pcm.!default {
typefile
slave   {
pcm "hw:0"  
}
file"/tmp/pcm.out"
}


with snd-dummy having index 0. I tested this just now with firefox and the 
flash plugin on youtube and it works for me.

Rene.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Stereo Downmix with cmipci

2008-03-17 Thread Lee Revell
On Sat, Mar 15, 2008 at 3:43 PM, Hendrik Friedel <[EMAIL PROTECTED]> wrote:
> Hello,
>
>  I'm trying to get the AC3 output coming from a digital Video Card converted
>  to a plain old analog stereo signal.
>  For this, I connected the SPDIF out of the video Card to the SPDIF in of the
>  soundcard (cmipci, CMI8738MC6). For stereo/pcm signals, this works. I get
>  the digital signal converted to an analog signal at the speaker output of my
>  soundcard.
>  But if the TV-Station sends AC3 signals, apperently this is not downmixed to
>  stereo by the soundcard. Moreover, it sounds like a helicopter.
>  How do I have to configure the soundcard to convert the AC3 to stereo?

You can't, unless the card does hardware AC3 decoding (very rare) or
you use a userspace app to decode and output the sound.

Lee

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Alexander Indenbaum
On Tue, Mar 18, 2008 at 3:42 AM, Rene Herman <[EMAIL PROTECTED]>
wrote:

> Yes, aplay would've worked. What you are using is trying to open controls
> for the card though and non are defined. If you will be using the dummy
> driver anyway, use:
>
> pcm.!default {
>typefile
>slave   {
> pcm "hw:0"
>}
>file"/tmp/pcm.out"
> }
>
>
> with snd-dummy having index 0. I tested this just now with firefox and the
> flash plugin on youtube and it works for me.
>

I wish I could say it works for me too :) But still there is no data in
/tmp/pcm.out in my setup.
There is no error messages, as if everything works OK.
How can I troubleshoot it more deeply?


>
> Rene.
>

Alexander Indenbaum
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] Recording streams before dmix

2008-03-17 Thread weleven
Hi,

  I am new to this Linux audio. I am trying to record the audio streams from 
different instances of firefox playing flash video into different files. I 
tried using dmix and the file plugin but that only gives me the mixed stream. 
What I would like to do is to record the individual streams before it hit the 
dmix. Is this possible? I thought of creating a virtual pcm with say 6 channels 
and use dshare and file plugin to split it to support 3 instances of flash 
video. However, flash player in firefox only understand the default pcm so how 
can I force the other instances to use the other dshared channels? Hope this is 
not too confusing. Currently trying this in CentOS 5.1. Would appreciate any 
help and pointers to do this. If anyone has done similar stuff, would be glad 
if you could post your .asoundrc or asound.conf for reference.

Thanks,
Shaun

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] [alsa-devel] /usr/share/alsa/alsa.conf :and file extention

2008-03-17 Thread Alexander Indenbaum
On Tue, Mar 18, 2008 at 4:06 AM, Alexander Indenbaum <
[EMAIL PROTECTED]> wrote:

> On Tue, Mar 18, 2008 at 3:42 AM, Rene Herman <[EMAIL PROTECTED]>
> wrote:
>
> > Yes, aplay would've worked. What you are using is trying to open
> > controls
> > for the card though and non are defined. If you will be using the dummy
> > driver anyway, use:
> >
> > pcm.!default {
> >typefile
> >slave   {
> > pcm "hw:0"
> >}
> >file"/tmp/pcm.out"
> > }
> >
> >
> > with snd-dummy having index 0. I tested this just now with firefox and
> > the
> > flash plugin on youtube and it works for me.
> >
>
OK, it works on Linux 2.6 but silently fails on Linux 2.4.
Unfortunately, I need it to work on  Linux 2.4 :)
So what can be done?

-- 
Alexander Indenbaum
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] No surround sound under Doom 3

2008-03-17 Thread William R. Zwicky
I can't get surround sound with Doom 3 and Quake 4 under Linux.  Stereo 
output works fine, aplay works fine, and speaker-test works in every 
mode, stereo and surround.  But when I try to enable surround sound in 
Doom 3, I get this:

dlopen(libasound.so.2)
asoundlib version: 1.0.14a
opened Alsa PCM device doom for playback
buffer size select failed: Invalid argument
close pcm
dlclose
WARNING: sound subsystem disabled

This is under Ubuntu 7.10 (kernel 2.6.22-14).  The chip is a Realtek 
ALC883, the driver is hda-intel.  I've installed Ubuntu's drivers 
(1.0.14), Realtek's drivers (apparently 1.0.15), and the latest HG 
drivers as of 2008 Mar 17 (1.0.16), and they all behave the same way.

I've found one bug report that seems relevent:
  https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1725
and one discussion:
  http://article.gmane.org/gmane.linux.alsa.devel/23989

Can anyone verify this?  Am I out of luck here?  Is there a plugin or 
other asoundrc hack that will isolate Doom 3 from the card?

-B

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user