Skip to contentSkip to conversation

ymfpci : four speakers with OSS-emulation

DISCUSSION [email protected] 3 participants 10 messages Mar 13, 2002 – Mar 17, 2002

lore
Share & tools
lore
#0 lore raw

Sure Adam, but according to http://www.mail-archive.com/alsa-
[email protected]/msg01977.html , there is a solution. The solution with the option for snd-pcm-oss doesn't work, but at this message
http://www.mail-archive.com/[email protected]/msg01987.html , Jaroslav have given you an another solution. Does it work ?
Thank you.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#1 lore raw

The solution the Jaroslav gave in that e-mail actually requires changes to the ymfpci driver, as I understand it. Last time I pulled code from CVS, this hadn't been done yet. From the sound of it (based on your experience) it looks like it still hasn't been done. At the moment, I don't really understand Alsa (or sound drivers in general) well enough to make the change myself, nor do I really have the time to pick up that knowledge at the moment.

However, it's also my impression from Jaroslav's explanation that this would simply duplicate the output from the fron channel on the rear channel. Can someone let me know if this is correct?

Adam

Quoted 7 lines · On Wed, 13 Mar 2002 [email protected] wrote:

Sure Adam, but according to http://www.mail-archive.com/alsa-
[email protected]/msg01977.html , there is a solution. The solution with the option for snd-pcm-oss doesn't work, but at this message
http://www.mail-archive.com/[email protected]/msg01987.html , Jaroslav have given you an another solution. Does it work ?
Thank you.

Quoted 5 lines

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#2 lore raw

At Wed, 13 Mar 2002 08:01:02 -0500 (EST),

Quoted 9 lines · Adam K Kirchhoff

The solution the Jaroslav gave in that e-mail actually requires changes to the ymfpci driver, as I understand it. Last time I pulled code from CVS, this hadn't been done yet. From the sound of it (based on your experience) it looks like it still hasn't been done. At the moment, I don't really understand Alsa (or sound drivers in general) well enough to make the change myself, nor do I really have the time to pick up that knowledge at the moment.

Quoted 3 lines

However, it's also my impression from Jaroslav's explanation that this would simply duplicate the output from the fron channel on the rear channel. Can someone let me know if this is correct?

if you only need duplication, this can be done on alsa-lib without changing the driver itself.
try to add the following in your ~/.asoundrc.

	pcm.ch4dup {
		type plug
		slave.pcm surround40
		ttable.0.0 1
		ttable.1.1 1
		ttable.0.2 1
		ttable.1.3 1
	}

then run like this

% aplay -D ch4dup foo.wav

To use this technique on OSS emulation, you'll need aoss wrapper (included in alsa-oss package).
suppose that the application uses /dev/dsp, add the following in ~/.asoundrc.

pcm.dsp0 pcm.ch4dup

then run your oss application via aoss script

% aoss foobar

Takashi

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#3 lore raw
Quoted 11 lines · Takashi Iwai

At Wed, 13 Mar 2002 08:01:02 -0500 (EST),

Quoted 9 lines · Adam K Kirchhoff

The solution the Jaroslav gave in that e-mail actually requires changes to the ymfpci driver, as I understand it. Last time I pulled code from CVS, this hadn't been done yet. From the sound of it (based on your experience) it looks like it still hasn't been done. At the moment, I don't really understand Alsa (or sound drivers in general) well enough to make the change myself, nor do I really have the time to pick up that knowledge at the moment.

Quoted 6 lines
Quoted 3 lines

However, it's also my impression from Jaroslav's explanation that this would simply duplicate the output from the fron channel on the rear channel. Can someone let me know if this is correct?

if you only need duplication, this can be done on alsa-lib without changing the driver itself.

<snip>

What would be required if you're looking for more than duplication?

Adam

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#4 lore raw

At Wed, 13 Mar 2002 09:29:58 -0500 (EST),

Quoted 19 lines · Adam K Kirchhoff
Quoted 15 lines · Takashi Iwai

At Wed, 13 Mar 2002 08:01:02 -0500 (EST),

Quoted 12 lines · Adam K Kirchhoff

The solution the Jaroslav gave in that e-mail actually requires changes to the ymfpci driver, as I understand it. Last time I pulled code from CVS, this hadn't been done yet. From the sound of it (based on your experience) it looks like it still hasn't been done. At the moment, I don't really understand Alsa (or sound drivers in general) well enough to make the change myself, nor do I really have the time to pick up that knowledge at the moment.

However, it's also my impression from Jaroslav's explanation that this would simply duplicate the output from the fron channel on the rear channel. Can someone let me know if this is correct?

Quoted 6 lines
Quoted 2 lines

if you only need duplication, this can be done on alsa-lib without changing the driver itself.

<snip>

What would be required if you're looking for more than duplication?

dunno. depending on what you want ;)
for example, if you need dynamic volume/pan controls for each channel, then alsa-lib cannot do it. its routing function is static only.

Takashi

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#5 lore raw
Quoted 24 lines · Takashi Iwai

At Wed, 13 Mar 2002 09:29:58 -0500 (EST),

Quoted 22 lines · Adam K Kirchhoff
Quoted 17 lines · Takashi Iwai

At Wed, 13 Mar 2002 08:01:02 -0500 (EST),

Quoted 9 lines · Adam K Kirchhoff

The solution the Jaroslav gave in that e-mail actually requires changes to the ymfpci driver, as I understand it. Last time I pulled code from CVS, this hadn't been done yet. From the sound of it (based on your experience) it looks like it still hasn't been done. At the moment, I don't really understand Alsa (or sound drivers in general) well enough to make the change myself, nor do I really have the time to pick up that knowledge at the moment.

Quoted 3 lines

However, it's also my impression from Jaroslav's explanation that this would simply duplicate the output from the fron channel on the rear channel. Can someone let me know if this is correct?

if you only need duplication, this can be done on alsa-lib without changing the driver itself.

Quoted 7 lines
Quoted 3 lines

<snip>

What would be required if you're looking for more than duplication?

dunno. depending on what you want ;)
for example, if you need dynamic volume/pan controls for each channel, then alsa-lib cannot do it. its routing function is static only.

Well, this is largely what comes to mind (speaking as one who has a limited understanding of sound drivers)...

When playing mp3s with a SB Live (using the Alsa drivers) I'm quite certain that each channel, and each speaker on the channel, is outputting sound quite independent of the other speakers/channels. In other words, the left and right front speakers, and the left and right rear speakers are independent of each other. This also works when playing games such as UnrealTournament. You can tell whether someone is coming up behind you from the left or the right. Make sense so far?

Now, this also works with the ymfpci OSS drivers (the commercial ones, anyway) as well as the BeOS drivers for the card, so it doesn't seem to be a limitation of the hardware (though please correct me if I'm wrong).

Now, I'm going to assume here that the ymfpci driver would need some significant work to be able to do this, correct?

Adam

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#6 lore raw
In reply to Takashi Iwai
Quoted 13 lines · Takashi Iwai

if you only need duplication, this can be done on alsa-lib without changing the driver itself.
try to add the following in your ~/.asoundrc.

	pcm.ch4dup {
		type plug
		slave.pcm surround40
		ttable.0.0 1
		ttable.1.1 1
		ttable.0.2 1
		ttable.1.3 1
	}
Quoted 3 lines

then run like this

% aplay -D ch4dup foo.wav

Well, even this doesn't seem to want to work for me at the moment :-( I'm still only getting audio from the front speakers.

[ adamk@sorrow ~ ]$ cat .asoundrc

pcm.ch4dup {
        type plug
        slave.pcm surround40
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 1
        ttable.1.3 1
}

[ adamk@sorrow ~ ]$ aplay -D ch4dup saved/sounds/Thunder.wav
Playing WAVE 'saved/sounds/Thunder.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo

Any further ideas?

Adam

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#7 lore raw

At Tue, 13 Mar 2001 17:57:14 -0500 (EST),

Quoted 34 lines · Adam K Kirchhoff
Quoted 13 lines · Takashi Iwai

if you only need duplication, this can be done on alsa-lib without changing the driver itself.
try to add the following in your ~/.asoundrc.

	pcm.ch4dup {
		type plug
		slave.pcm surround40
		ttable.0.0 1
		ttable.1.1 1
		ttable.0.2 1
		ttable.1.3 1
	}
Quoted 3 lines

then run like this

% aplay -D ch4dup foo.wav

Well, even this doesn't seem to want to work for me at the moment :-( I'm still only getting audio from the front speakers.

[ adamk@sorrow ~ ]$ cat .asoundrc

pcm.ch4dup {
        type plug
        slave.pcm surround40
        ttable.0.0 1
        ttable.1.1 1
        ttable.0.2 1
        ttable.1.3 1
}
Quoted 4 lines

[ adamk@sorrow ~ ]$ aplay -D ch4dup saved/sounds/Thunder.wav
Playing WAVE 'saved/sounds/Thunder.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo

Any further ideas?

what shows with -v option?
can you hear from rear speakers when you play with -Drear ?

Takashi

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#8 lore raw
Quoted 7 lines · Takashi Iwai

what shows with -v option?
can you hear from rear speakers when you play with -Drear ?

Takashi

Takashi,

My apologies, but for some reason I had "surround" muted in
alsamixer. Once I unmuted it, I *am* getting the duplicate sound on the rear speakers.

So now, is it likely that we'll see the ymfpci driver changed at
some point so that we can use both the front and rear speakers so that they don't duplicate each other (as I described in my message yesterday)? :-)

Adam

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#9 lore raw
Quoted 13 lines · Adam K Kirchhoff
Quoted 7 lines · Takashi Iwai

what shows with -v option?
can you hear from rear speakers when you play with -Drear ?

Takashi

Takashi,

Quoted 8 lines

My apologies, but for some reason I had "surround" muted in
alsamixer. Once I unmuted it, I *am* getting the duplicate sound on the rear speakers.

So now, is it likely that we'll see the ymfpci driver changed at
some point so that we can use both the front and rear speakers so that they don't duplicate each other (as I described in my message yesterday)? :-)

I guess that this is something I shouldn't expect to see from Alsa any time in the not-too-distant future unless I do it myself, then.

Does anyone have any tips or pointers they'd like to give on how one would go about adding this support to a driver?

Adam

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel