Re: [Alsa-devel] problems with the mixer

2004-05-19 Thread Takashi Iwai
At Wed, 19 May 2004 00:13:58 +0200,
Aner Gusic wrote:
 
 * Takashi Iwai [EMAIL PROTECTED]:
 
  doesn't it work like below?
  
  % aplay -Dfront some-2ch.wav
  % aplay -Drear some-2ch.wav
 
 You missunderstood me, I want to use one player to play regular mp3's
 and be able to hear it on both front and rear speakers.  Even if I
 could sync that thing above it would be a very ugly solution to my
 problem. 
 
 Så, aplay some-2ch.wav works fine, except for the fact that rear
 volume is initialized to 0.  I can get some other routing channels
 with a swich so rear volume isn't used, but then rear and front volume
 aren't independent (se my first mail for details)  :/ .

ok, then you need something similar like below:

pcm.dup4ch {
type hooks
slave.pcm {
type hw
card 0
device 0
}
hooks.0 {
type ctl_elems
hook_args [
{
name Rear Path
preserve true
value true
}
{
name PCM Reverb Playback Volume
index { @func private_pcm_subdevice }
preserve true
value 127
}
]
}
}   


then run aplay -Ddup4ch some-2ch.wav


Takashi


---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62alloc_ida84op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] problems with the mixer

2004-05-18 Thread Takashi Iwai
At Tue, 18 May 2004 17:24:54 +0200,
Aner Gusic wrote:
 
 * Takashi Iwai [EMAIL PROTECTED]:
 
  did you play a 4-channel sample file?
 
 Ah, no I didn't.  What I want is to play 2-channel samples on both
 front and rear speakers and to be able to control the volume
 independently. 

doesn't it work like below?

% aplay -Dfront some-2ch.wav
% aplay -Drear some-2ch.wav


Takashi


---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562alloc_id=6184op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


Re: [Alsa-devel] problems with the mixer

2004-05-14 Thread Takashi Iwai
At Fri, 14 May 2004 20:05:09 +0200,
Aner Gusic wrote:
 
 * Takashi Iwai [EMAIL PROTECTED]:
 
  you can use front, rear and surround40 PCMs.
  then the volumes and the route should be initialized properly.
 
 I've tryed playing some samples with aplay combined with -D parameter,
 e.g. aplay -Dfront foo.wav.  However, what I want is to play a
 sample on both front and rear speakers, but control the sound level
 independently, so what remains is the surround40-pcm.
 
 When I try this (-Dsurround40) I get the following message:
 aplay: set_params:837: Channels count non available
 
did you play a 4-channel sample file?

 I've tried reading documentation in alsa-driver source-tree, but it is
 sparse.  No documentation on the homepage that I found covers what I
 am having problems with. :/  Any suggestions to where I should look?
 Mostly, it should cover pcm:s, this routing stuff and such.

it's not the scope of the driver but the library.
you might find some useful info in ALSA wiki page...


Takashi


---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562alloc_id=6184op=click
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] problems with the mixer (fwd)

2004-05-08 Thread Aner Gusic
Hi!

I didn't get any answer on alsa-user list so I try here.


I have a Hoontech NX card with outputs for front and rear speakers.
Volume settings for these I would like to set independently of each
other, and this worked just fine while I was running ALSA 0.5.x.
However, a couple of days ago I upgraded to ALSA 1.0.3.

Now, there are two possibilities for controling volume settings on
speakers, one with Sigmatel 4-speaker stereo off and another with
this switch turned on.

The second posibility (4-s s on), has following setup:
  - Master controls front speakers
  - PCM controls both front and rear speakers

Sigmatel 4-speaker stereo off is almost what I want:
  - Master, PCM, PCM Front control front speakers
  - Surrownd, PCM Reverb control rear speakers

However, PCM Front and PCM Reverb are set to 100% resp. 0% each time
/dev/dsp is opened.  This works perfectly for front speakers since
they can be controled with Master or PCM controls, but rear speakers
are muted each time a new song starts.

Is this a bug? (I hope it is.)  Is it a known bug, or is it some kind
of feature I can hope to be able to go around in future release of
trident driver?

Regards,

-- 
Aner Gusic,
Linköping
Sweden


---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson  Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel


[Alsa-devel] Problems with Extigy mixer settings.

2004-03-03 Thread Tommy Schultz Lassen
Hi

I have been having som problems with mixer settings on my Sound Blaster
Extigy. 

I am using the alsa from the linux 2.6.3 kernel. White alsa's usbaudio. 

When starting it wood fail. When i set #define IGNORE_CTL_ERROR in
usbmixer.c it wood load but when alsamixer came to the settings for the
digital In mixer port it wood start printing errors to the console.

This patch fixes it by disabling the mixer channel which gave the
problems.

Tommy
--- linux-2.6.3/sound/usb/usbmixer_maps.c	2004-02-25 18:22:10.0 +0100
+++ linux-2.6.3-usbaudio/sound/usb/usbmixer_maps.c	2004-02-26 21:32:54.0 +0100
@@ -86,6 +86,7 @@
 	{ 26, IEC958 Optical Playback }, /* OT */
 	{ 27, NULL }, /* DISABLED: EU (for what?) */
 	/* 28: FU speaker (mute) */
+	{ 29, NULL /*Digital In Playback Source*/}, /* */
 	{ 0 } /* terminator */
 };