Re: Are hw & plughw different?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> Can you tell me if hw:0,0 is exactly equivalent to the "default" ALSA
>> device *if* dmix is disabled with the following in /etc/asound.conf:
>>
>> pcm.!default {
>> type plug
>> slave.pcm hw
>> }
>
> No hw:0,0 talks directly to hardware (without conversions. Plug is a plugin to
> convert the format and sampling rate in order to connect the input to the
> output.
> So the conf you wrote is equivalent to plughw:0,0 not to hw:0,0.
>
> Anyway I recomend to use the conf you quoted or something like the following
> (which is more readable) as a default device in order to let applications play
> any kind of sound (44khz, 48khz, 8bit and so on)
>
> pcm.digital
>        {
>        type hw
>        card 0
>        device 0
> }
>
> pcm.!default {
>        type plug
>        slave.pcm digital
> }

I think I'm starting to figure this out.  Please correct me if I'm
wrong, but I think the default device converts both format and sample
rate, and plughw converts only format.  This is what I've seen from my
tests and observing the LEDs on my USB DAC.  Does plughw do anything
besides converting the format?

- Grant

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux