Skip to contentSkip to conversation

Question regarding substreams or voices

DISCUSSION James Courtier-Dutton 2 participants 2 messages May 29, 2004 – Jun 1, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to do work on the Audigy LS driver.

I have now discovered that I can send sound to the Front, Rear and Center/LFE.
I have not found out how to set the amount of interleaved channels that the sound card can do, so it is fixed at 2 channels per stream.

The sound card has 4 voices for 4 separate stereo streams.
Each voice has it's own DMA and HW pointer.
voice 0 sends sound to the Front speakers.
voice 1 sends sound to the Center/LFE speakers.
voice 2 sends sound to unknown, (no sound comes out yet)
voice 3 sends sound to the Rear speakers.
There does not appear to be any hardware mixing, so each voice can only be opened once.

Should this be set up as: -
1)
/proc/asound/card0/pcm0p
info sub0 sub1 sub2 sub3

or instead ?
2)
/proc/asound/card0/pcm0p
/proc/asound/card0/pcm1p
/proc/asound/card0/pcm2p
/proc/asound/card0/pcm3p

I think (2) is the correct way, so I will make a start using that method.

Cheers
James

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

#1 lore raw

At Sat, 29 May 2004 16:05:05 +0100,

Quoted 24 lines · James Courtier-Dutton

Hi,

I am trying to do work on the Audigy LS driver.

I have now discovered that I can send sound to the Front, Rear and Center/LFE.
I have not found out how to set the amount of interleaved channels that the sound card can do, so it is fixed at 2 channels per stream.

The sound card has 4 voices for 4 separate stereo streams. Each voice has it's own DMA and HW pointer.
voice 0 sends sound to the Front speakers.
voice 1 sends sound to the Center/LFE speakers.
voice 2 sends sound to unknown, (no sound comes out yet) voice 3 sends sound to the Rear speakers.
There does not appear to be any hardware mixing, so each voice can only be opened once.

Should this be set up as: -
1)
/proc/asound/card0/pcm0p
info sub0 sub1 sub2 sub3

Quoted 8 lines

or instead ?
2)
/proc/asound/card0/pcm0p
/proc/asound/card0/pcm1p
/proc/asound/card0/pcm2p
/proc/asound/card0/pcm3p

I think (2) is the correct way, so I will make a start using that method.

both are ok for ALSA native apps. you can specify the substream index in the configuration.
the latter would be easier for OSS compatible layer, though.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click