Re: Need help with asound.conf

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

 



>> For me, hw:0,1 is the SPDIF connector, so I just put this in
>> /etc/asound.conf:
>>
>>   defaults.pcm.card 0
>>   defaults.pcm.device 1
>>   
> What if I need a more generic version of asound.conf so it works without
> changes on machines where spdif is hw:0,2 ?

I'm certainly no expert, but to do this you may need to find the config
file in /usr/share/alsa/ that implements dmix (perhaps pcm/dmix.conf) or
anything that refers to defaults.pcm.card (or defaults.pcm.dmix.card)
and change that to pcm.spdif or whichever device you want to become the
default.

>> You can also set this if you want something other than 48kHz:
>>
>>   defaults.pcm.dmix.rate 48000
>>   
> I'm trying to make sense of the files in /usr/share/alsa and extrapolate
> the language so I can understand the flow and write an entire
> asound.conf script, but I was thinking there's a simpler way to do this,
> since the "spdif" pcm is already pointing to the right device.

Changing all references from the default PCM device to the SPDIF device
should work, but again, I'm not an expert at this :-)

Cheers,
Adam.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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