Re: [Alsa-user] hw or plughw
Hi paul blakeley! On 2007.11.20 at 12:26:29 +, paul blakeley wrote next: Can someone please explain the differences between these? What impact they have on the application? plughw supports much more sample formats / channel configurations than underlying hardware supports natively, and performs conversion if needed. hw performs no conversion, but supports less configuration, sometimes only very obscure ones, but when used you can rest assured that no conversion takes place. Mostly you'd want these conversions to take place, like mono-stereo conversion or S16LE-S32LE conversion etc (all depending on your hardware) If I need to drive the sound card directly should I use 'hw'? You can use hw, but it isn't really recommended unless you REALLY know how to use it and have support of every weird format in all possible combinations. That's about underlying hardware details, and most applications don't want to deal with them. For example my soundcard supports only S24_3BE format; you can't open hw device in any other mode, if you want to output S16LE (most applications never heard of S24_3 formats, let alone BE variations), you must use plughw, there is no other choice. Or p16v device on audigy2 supports only 8-channel modes; you can't output stereo signal to it, no matter how you try. So you either can output 8 channels to hw device or let plughw to do stereo-8ch conversion for you automatically. Unless you want to take care of all these little details, using hw is probably not a good idea. Though it's required for some applications because you don't actually know if/what kind of conversion takes place when you use plughw, most application would trouble users much less if they were to use plughw instead of hw. Actually, almost all application shouldn't even use plughw, sticking to default device, to allow software mixing, jack/pulse routing plugins, user choosen conversions to take place. If you do anything else, you create problems for users, so you must have really good reasons to do so.. -- Vladimir - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] hw vs. plughw
On Mon, 18 Nov 2002, Magnus Ullberg wrote: Is there a way to force the driver to use plughw instead of hw? Yup... aplay, etc. works fine since they support ~/.asoundrc but programs that doesnt support that will not work ... ~/.asoundrc. It's automatically used by all apps that use alsa-lib - in other words practically all ALSA 0.9.x apps. -- http://www.eca.cx Audio software for Linux! --- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html ___ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] hw vs. plughw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hmm.. im trying to get MPlayer to work but apparently it doesn't support ~/.asoundrc or mine is set up wrong. Does this look right? pcm.intel8x0 { type plug card 0 } ctl.intel8x0 { type plug card 0 } Thanks, Magnus - - Original Message - From: Kai Vehmanen [EMAIL PROTECTED] To: Magnus Ullberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 18, 2002 5:12 PM Subject: Re: [Alsa-user] hw vs. plughw On Mon, 18 Nov 2002, Magnus Ullberg wrote: Is there a way to force the driver to use plughw instead of hw? Yup... aplay, etc. works fine since they support ~/.asoundrc but programs that doesnt support that will not work ... ~/.asoundrc. It's automatically used by all apps that use alsa-lib - in other words practically all ALSA 0.9.x apps. -- http://www.eca.cx Audio software for Linux! --- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html ___ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPdgsisu3lhUVmrCaEQKmMACffBJZSZulFFndGhyqdEacgCmLHRcAmQEv Ojq1hsF0KM48g1OksEYdA8eJ =l6lD -END PGP SIGNATURE- --- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html ___ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] hw vs. plughw
On Sun, 17 Nov 2002, Magnus Ullberg wrote: hmm.. im trying to get MPlayer to work but apparently it doesn't support ~/.asoundrc or mine is set up wrong. While asoundrc specifies different configurations, applications must still select which they will use. I haven't used mplayer recently, but afaik it uses syntax: mplayer -ao alsa:adevice=plughw.0,0 mplayer -ao alsa:adevice=intel8x0 mplayer -ao alsa:adevice=default ... someone who has a current mplayer installed can correct me if the above examples are wrong, but that's the principle anyway. -- http://www.eca.cx Audio software for Linux! --- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html ___ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user
Re: [Alsa-user] hw vs. plughw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 do you know if there is a way to set a default configuration? Another program i've got has no way of specifying a configuration.. I dont even think it uses alsa-lib, it just tries to use the soundcard (but i could be wrong about that one..) - - Original Message - From: Kai Vehmanen [EMAIL PROTECTED] To: Magnus Ullberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, November 18, 2002 6:46 PM Subject: Re: [Alsa-user] hw vs. plughw On Sun, 17 Nov 2002, Magnus Ullberg wrote: hmm.. im trying to get MPlayer to work but apparently it doesn't support ~/.asoundrc or mine is set up wrong. While asoundrc specifies different configurations, applications must still select which they will use. I haven't used mplayer recently, but afaik it uses syntax: mplayer -ao alsa:adevice=plughw.0,0 mplayer -ao alsa:adevice=intel8x0 mplayer -ao alsa:adevice=default ... someone who has a current mplayer installed can correct me if the above examples are wrong, but that's the principle anyway. -- http://www.eca.cx Audio software for Linux! --- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html ___ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPdhL5su3lhUVmrCaEQLmbQCbB1AaoGfvMWOfbYQ5Cg6X1cFjcVsAnjlR ZCdmafrehgAgKkMjMlbXHGNd =Ps2f -END PGP SIGNATURE- --- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html ___ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user