Re: no .asoundrc

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

 




18 aug 2012 kl. 18:20 skrev Doug <dmcgarrett@xxxxxxxxxxxxx>:

> On 08/18/2012 02:38 AM, Anders Genell wrote:
>> 
>> 18 aug 2012 kl. 00:15 skrev Doug <dmcgarrett@xxxxxxxxxxxxx>:
>> 
>>> On 08/17/2012 03:49 AM, Anders Genell wrote:
>>> 
>>> /snip/
>>> 
>>>> 
>>>> 17 aug 2012 kl. 04:44 skrev Doug <dmcgarrett@xxxxxxxxxxxxx <mailto:dmcgarrett@xxxxxxxxxxxxx>>:
>>>>>> Thank you for your patience!  --doug
>>>>>> 
>>>>>> 
>>>>> Did what I said--it hasn't blown up the local sound, but there's still
>>>>> no sound
>>>>> on the HDMI channel.  No way to know if the machine has even looked at
>>>>> the /etc/.asoundrc file, but it's definitely there. I'm listening to an
>>>>> Internet
>>>>> radio station on realplayer, and it's coming out my local speakers, but
>>>>> no sound from the TV. Of course, the file refers to quattro, which I don't
>>>>> have.  I didn't do anything with jack, since I don't understand it at all.
>>>>> There is no q4 device, that I know of.
>>>>> 
>>>>> --doug
>>>>> 
>>>>> 
>>>> Hi again, Doug!
>>>> 
>>>> Sorry to confuse you, I'll see if I can make amends.
>>>> 
>>>> First, I found this about Nvidia HDA and alsa.
>>>> ftp://download.nvidia.com/XFree86/gpu-hdmi-audio-document/gpu-hdmi-audio.html
>>>> 
>>>> I don't know what device out of the four that should be used, but for the instructions below I'll assume it's card 1, device 7, and has 7.1 channels out and we'll combine it with the Intel analog out which is card 0, device 0 which I assume has stereo output. I also assume you want to duplicate the front channels of the surround-capable Nvidia-card to the Intel card. If you need other devices just change those numbers in the asoundrc/asound.conf file.
>>>> 
>>>> I will also assume you want system wide settings, since you say you put something in /etc. If that is the case the file name should be asound.conf as alsa only looks for .asoundrc in your home directory (e.g. /home/doug/.asoundrc). You could start by renaming the file you have to /etc/asound.conf and try to play something.
>>>> 
>>>> The Quattro is as you guessed the M-Audio USB Quattro sound card, which shows up as a pair of dual channel devices, and that is of course not what you have, but the instructions for setting up a "multi" device works for any two sound cards. The naming in asound.conf can be chosen  arbitrarily, so we don't need to call the pcm's (i.e. 'virtual sound cards', more or less) q4 or quattro.
>>>> 
>>>> In short this is what we'll do:
>>>> 
>>>> We link the Nvidia and Intel sound cards using the "multi" pcm, so that they become one single virtual sound card.
>>>> We add a "plug" pcm on top of the "multi" so that we can rout incoming channels to arbitrary output channels, and so that alsa automatically converts incoming audio to a format the "multi" virtual sound card understands.
>>>> Using the routing abilities, we duplicate the first two incoming channels and send them to the Intel stereo outs as well as the Nvidia front outputs.
>>>> I copied the asoundrc-file from the M-Audio Quattro example, removed what was not needed and altered the rest according to my assumptions above. Here is the result, which you should put in a file that you name asound.conf and put in /etc:
>>> /snip
>>> 
>>> OK, created asound.conf per your instructions.  While looking at /etc in Konqueror I found a file called asound.state
>>> Looking at the modification dates, Digging further, I find that /etc/asound.state is a link that points to: /var/lib/alsa/asound.state
>>> At any rate, asound.state was last modified on 8/14, which means that some mixer (or something) must dynamically alter it.
>>> The fact that if shows a volume level indicates to me that it is dynamically modified.
>>> 
>>> I tried listening to that radio station with the new asound.conf with and without the asound.state link.  (Before I realized
>>> that asound.state was a link, I temporarily renamed it in /etc) In both cases, the realplayer window tried to open and then
>>> vanished, and no sound came out anywhere.
>>> 
>>> Here is the asound.state file:
>> The .state is NOT a replacement for the .conf. You should leave the .state as is, and create the .conf with the suggested content. The .state contains all the settings that has been set using e.g. alsamixer, i.e. playback and recording levels etc. If you have changed some levels and want to keep them permanent you can store them in an updated .state file by issuing
>> sudo alsactl store
>> which overwrites the /var/lib/alsa/asound.state file with a newer version.
>> One thing you might need, if you use programs in which you cannot choose specific alsa devices, as is the case for realplayer I believe, is to set your newly created device as default. It can be done by changing the name of your virtual sound card from dougplug to !default in asound.conf:
>> 
>> 
>> 
>> pcm.!default{
>>         type plug
>>         slave.pcm "dougs_multi"
>> ...
>> 
>> 
>> The exclamation mark is needed to override the built in use of the name "default" in alsa (which always points to hw:0,0) and is not actually part of the name.
>> 
>> Give it a try and let us know how it works.
>> 
>> Regards,
>> /A
>> 
> OK, made that modification.  No change in performance: when asound.conf is present, there is no sound. RealPlayer box appears for ~0.1 second and vanishes.
> 
> I think I must be missing something. The system just doesn't like asound.conf!
> 
> --doug
> 
> 
> -- 
> Blessed are the peacekeepers...for they shall be shot at from both sides. --A.M. Greeley
> 

Mysterious indeed. Could you try if there is sound using

speaker-test -c 2 -D default
or if you have a wav file to use
aplay -D default file.wav

What distro are you using?

Regards,
/A

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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