Re: [Alsa-user] Audio hardware with pause support
Florian Winter wrote: - What is the dmix plugin and what are the benefits of using it? - Is it possible to disable the dmix plugin? - What consequences does disabling the dmix plugin have? What essential features of ALSA will be missing without it? The dmix plugin allows multiple applications to play to one sound device by mixing multiple streams together. The default device automatically uses dmix when the sound card does not have hardware mixing; to disable this, configure your applications to use device name plughw instead of default. Regards, Clemens - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Audio hardware with pause support
Again thanks you for your answer. You have been of great help. Using plughw instead of default seems to do the trick. I have some more questions: Is there a way to find out which soundcards support hardware mixing (and have support for it implemented in their corresponding ALSA drivers)? Is it safe to assume that ALSA will not use dmix if the sound card (and the ALSA driver for it) supports hardware mixing? Best regards, Florian Clemens Ladisch wrote: Florian Winter wrote: - What is the dmix plugin and what are the benefits of using it? - Is it possible to disable the dmix plugin? - What consequences does disabling the dmix plugin have? What essential features of ALSA will be missing without it? The dmix plugin allows multiple applications to play to one sound device by mixing multiple streams together. The default device automatically uses dmix when the sound card does not have hardware mixing; to disable this, configure your applications to use device name plughw instead of default. Regards, Clemens - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Audio hardware with pause support
On 12-06-08 16:14, Florian Winter wrote: I have some more questions: Is there a way to find out which soundcards support hardware mixing (and have support for it implemented in their corresponding ALSA drivers)? Not all that easily from the code. The ALSA soundcard matrix at: http://www.alsa-project.org/main/index.php/Matrix:Main might be the best source. You'll have to compensate for not everything on there being accurate; for the TerraTec page I know that where HWMIX is listed, it's accurate: http://www.alsa-project.org/main/index.php/Matrix:Vendor-Terratec Those are older chips though. Is it safe to assume that ALSA will not use dmix if the sound card (and the ALSA driver for it) supports hardware mixing? Yes. And as such, checking the files under /usr/share/alsa/cards to note which ones DO setup dmix and subtracing those from the complete set would be another way of answering the above question. If a card uses dmix by default, it's through the mechanism you see in those files (for example, see ENS1370.conf for a card that uses dmix). As an aside -- note that hardware mixing might not be any better than software mixing. One obvious way of implementing it inside a chip is as much upsampling to a common internal rate as it is software and in hardware you have even fewer resources meaning it might very well be that you'd in fact be better of with dmix than without. A while ago I for example noticed that an 8000 Hz file played back by a TerraTec DMX (snd-es1968) sounded every bit as crummy as that same file at 48000 after externally upsampling it (with sox) through bad quality linear upsampling. A good quality upsampling to 48000 got me the same sound from the DMX as a different, non-mixing, card produced while playing back the original file so the DMX is using bad upsampling, at least for 8000 Hz sources. Rene. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Audio hardware with pause support
On 12-06-08 17:09, Rene Herman wrote: On 12-06-08 16:14, Florian Winter wrote: I have some more questions: Is there a way to find out which soundcards support hardware mixing (and have support for it implemented in their corresponding ALSA drivers)? Not all that easily from the code. The ALSA soundcard matrix at: [ ... ] To: Florian Winter [EMAIL PROTECTED] Cc: alsa-user@lists.sourceforge.net Now what? This list strips CCs it seems. This went out with Clemens in CC. If that's a sourceforge thing, Jaroslav, is it a good idea to move alsa-user to wherever alsa-devel runs as well? Rene. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Audio hardware with pause support
Florian Winter wrote: Is there another way to determine whether a certain hardware supports snd_pcm_pause without having to test the hardware? $ grep -rl SNDRV_PCM_INFO_PAUSE sound sound/arm/pxa2xx-pcm.c sound/arm/sa11xx-uda1341.c sound/core/pcm_native.c sound/drivers/vx/vx_pcm.c sound/pci/als300.c sound/pci/atiixp.c sound/pci/au88x0/au88x0_pcm.c sound/pci/cmipci.c sound/pci/cs4281.c sound/pci/cs5535audio/cs5535audio_pcm.c sound/pci/echoaudio/darla20.c sound/pci/echoaudio/darla24.c sound/pci/echoaudio/echo3g.c sound/pci/echoaudio/gina20.c sound/pci/echoaudio/gina24.c sound/pci/echoaudio/indigo.c sound/pci/echoaudio/indigodj.c sound/pci/echoaudio/indigoio.c sound/pci/echoaudio/layla20.c sound/pci/echoaudio/layla24.c sound/pci/echoaudio/mia.c sound/pci/echoaudio/mona.c sound/pci/emu10k1/emupcm.c sound/pci/ens1370.c sound/pci/es1968.c sound/pci/fm801.c sound/pci/hda/hda_intel.c sound/pci/ice1712/ice1712.c sound/pci/ice1712/ice1724.c sound/pci/intel8x0.c sound/pci/intel8x0m.c sound/pci/maestro3.c sound/pci/mixart/mixart.c sound/pci/nm256/nm256.c sound/pci/oxygen/oxygen_pcm.c sound/pci/pcxhr/pcxhr.c sound/pci/riptide/riptide.c sound/pci/rme32.c sound/pci/rme96.c sound/pci/trident/trident_main.c sound/pci/via82xx.c sound/pci/via82xx_modem.c sound/pci/ymfpci/ymfpci_main.c sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c sound/soc/at91/at91-pcm.c sound/soc/davinci/davinci-pcm.c sound/soc/omap/omap-pcm.c sound/soc/pxa/pxa2xx-pcm.c sound/soc/s3c24xx/s3c24xx-pcm.c sound/usb/usbaudio.c Please note that the dmix plugin does not support pausing even if the hardware device does. HTH Clemens - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] Audio hardware with pause support
Thanks for the hint, Clemens. If I interpret this information correctly, then it seems that many different sound drivers actually support pause, and consequently many audio architectures have the functionality as well (or it is emulated by the drivers). The real problem is the dmix plugin. In particular, I see hda_intel in the list. When I used ALSA with HDA Intel onboard hardware, pause was not available, probably due to the dmix plugin being used. So my next questions are: - What is the dmix plugin and what are the benefits of using it? - Is it possible to disable the dmix plugin? - What consequences does disabling the dmix plugin have? What essential features of ALSA will be missing without it? Best regards, Florian Clemens Ladisch wrote: Florian Winter wrote: Is there another way to determine whether a certain hardware supports snd_pcm_pause without having to test the hardware? $ grep -rl SNDRV_PCM_INFO_PAUSE sound sound/arm/pxa2xx-pcm.c sound/arm/sa11xx-uda1341.c sound/core/pcm_native.c sound/drivers/vx/vx_pcm.c sound/pci/als300.c sound/pci/atiixp.c sound/pci/au88x0/au88x0_pcm.c sound/pci/cmipci.c sound/pci/cs4281.c sound/pci/cs5535audio/cs5535audio_pcm.c sound/pci/echoaudio/darla20.c sound/pci/echoaudio/darla24.c sound/pci/echoaudio/echo3g.c sound/pci/echoaudio/gina20.c sound/pci/echoaudio/gina24.c sound/pci/echoaudio/indigo.c sound/pci/echoaudio/indigodj.c sound/pci/echoaudio/indigoio.c sound/pci/echoaudio/layla20.c sound/pci/echoaudio/layla24.c sound/pci/echoaudio/mia.c sound/pci/echoaudio/mona.c sound/pci/emu10k1/emupcm.c sound/pci/ens1370.c sound/pci/es1968.c sound/pci/fm801.c sound/pci/hda/hda_intel.c sound/pci/ice1712/ice1712.c sound/pci/ice1712/ice1724.c sound/pci/intel8x0.c sound/pci/intel8x0m.c sound/pci/maestro3.c sound/pci/mixart/mixart.c sound/pci/nm256/nm256.c sound/pci/oxygen/oxygen_pcm.c sound/pci/pcxhr/pcxhr.c sound/pci/riptide/riptide.c sound/pci/rme32.c sound/pci/rme96.c sound/pci/trident/trident_main.c sound/pci/via82xx.c sound/pci/via82xx_modem.c sound/pci/ymfpci/ymfpci_main.c sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c sound/soc/at91/at91-pcm.c sound/soc/davinci/davinci-pcm.c sound/soc/omap/omap-pcm.c sound/soc/pxa/pxa2xx-pcm.c sound/soc/s3c24xx/s3c24xx-pcm.c sound/usb/usbaudio.c Please note that the dmix plugin does not support pausing even if the hardware device does. HTH Clemens -- Florian Winter Software-Entwickler - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user