Re: [Alsa-user] ES1370/1371/1373 hardware mixing?
Brought to you by:
perex
From: Jaroslav K. <pe...@pe...> - 2003-04-30 07:14:19
|
On Tue, 29 Apr 2003, Ryan Underwood wrote: > Hi, > > On Tue, Apr 29, 2003 at 01:40:39PM +0200, Jaroslav Kysela wrote: > > > capability (any other input on that?), we went and got a SB PCI128 which > > > has ES1370 chip. According to the datasheet, this chip mixes up to 3 > > > wave streams and 3 mono streams in hardware. > > > > > > However, the mixing test fails like before. Open up realplayer (uses > > > OSS), start playing a stream, then try to play sound with the sox player > > > to the OSS device, and still no sound from the second program. > > > > The second playback device is /dev/adsp for OSS applications. Also note > > that third device is for recording not for playback. > > Thanks for the answer. > > Are multiple opens of the OSS device supported in any way? It would > seem very inconvenient to have to 1) recompile applications to write to > /dev/adsp instead of /dev/dsp, and 2) make sure that you only run > 1 application that uses /dev/dsp and one that uses /dev/adsp at once. > > With the OSS driver you can open /dev/dsp as many times as the hardware > supports, and when run out of hardware streams it returns -EAGAIN. It It's possible with ALSA drivers (trident, emu10k1, ymfpci, cs46xx ...), too. But not for ENS137x. The stream parameters differs a bit so my decision was to use separate devices. Also, you have only two streams, it's not much for multi-open. > would seem to be a good idea that if the user does not want to > differentiate between the individual playback streams (as is frequently > the case on a simple desktop sound card), the streams should be just > allocated from a pool rather than addressed by individual device. Does > that make any sense? > > Also: > On the ALSA side, is there a way to have all alsa streams go through the > software mixer without having to specify the dmix plugin when running > each app that uses alsalib? The C-Media card has a good driver, but the > lack of hardware mixing is a significant nuisance to use it. If there > were some configuration option to make software mixing by dmix the > default behavior (perhaps that alsalib could read from the user's > asoundrc), it would be a lot easier to use. See mail archives and look for 'pcm.!default { }' definition. Jaroslav ----- Jaroslav Kysela <pe...@su...> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs |