On 08/17/2012 03:49 AM, Anders Genell wrote:

/snip/

>
>
> 17 aug 2012 kl. 04:44 skrev Doug <dmcgarr...@optonline.net 
> <mailto:dmcgarr...@optonline.net>>:
>>> 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:

state.Intel {
     control.1 {
         iface MIXER
         name 'Channel Mode'
         value '2ch'
         comment {
             access 'read write'
             type ENUMERATED
             count 1
             item.0 '2ch'
             item.1 '4ch'
             item.2 '6ch'
         }
     }
     control.2 {
         iface MIXER
         name 'Front Playback Volume'
         value.0 64
         value.1 64
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 64'
             dbmin -6400
             dbmax 0
             dbvalue.0 0
             dbvalue.1 0
         }
     }
     control.3 {
         iface MIXER
         name 'Front Playback Switch'
         value.0 true
         value.1 true
         comment {
             access 'read write'
             type BOOLEAN
             count 2
         }
     }
     control.4 {
         iface MIXER
         name 'Surround Playback Volume'
         value.0 64
         value.1 64
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 64'
             dbmin -6400
             dbmax 0
             dbvalue.0 0
             dbvalue.1 0
         }
     }
     control.5 {
         iface MIXER
         name 'Surround Playback Switch'
         value.0 true
         value.1 true
         comment {
             access 'read write'
             type BOOLEAN
             count 2
         }
     }
     control.6 {
         iface MIXER
         name 'Center Playback Volume'
         value 64
         comment {
             access 'read write'
             type INTEGER
             count 1
             range '0 - 64'
             dbmin -6400
             dbmax 0
             dbvalue.0 0
         }
     }
     control.7 {
         iface MIXER
         name 'LFE Playback Volume'
         value 64
         comment {
             access 'read write'
             type INTEGER
             count 1
             range '0 - 64'
             dbmin -6400
             dbmax 0
             dbvalue.0 0
         }
     }
     control.8 {
         iface MIXER
         name 'Center Playback Switch'
         value true
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.9 {
         iface MIXER
         name 'LFE Playback Switch'
         value true
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.10 {
         iface MIXER
         name 'Headphone Playback Switch'
         value.0 true
         value.1 true
         comment {
             access 'read write'
             type BOOLEAN
             count 2
         }
     }
     control.11 {
         iface MIXER
         name 'Rear Mic Playback Volume'
         value.0 0
         value.1 0
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 31'
             dbmin -3450
             dbmax 1200
             dbvalue.0 -3450
             dbvalue.1 -3450
         }
     }
     control.12 {
         iface MIXER
         name 'Rear Mic Playback Switch'
         value.0 false
         value.1 false
         comment {
             access 'read write'
             type BOOLEAN
             count 2
         }
     }
     control.13 {
         iface MIXER
         name 'Front Mic Playback Volume'
         value.0 21
         value.1 21
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 31'
             dbmin -3450
             dbmax 1200
             dbvalue.0 -300
             dbvalue.1 -300
         }
     }
     control.14 {
         iface MIXER
         name 'Front Mic Playback Switch'
         value.0 false
         value.1 false
         comment {
             access 'read write'
             type BOOLEAN
             count 2
         }
     }
     control.15 {
         iface MIXER
         name 'Line Playback Volume'
         value.0 0
         value.1 0
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 31'
             dbmin -3450
             dbmax 1200
             dbvalue.0 -3450
             dbvalue.1 -3450
         }
     }
     control.16 {
         iface MIXER
         name 'Line Playback Switch'
         value.0 true
         value.1 true
         comment {
             access 'read write'
             type BOOLEAN
             count 2
         }
     }
     control.17 {
         iface MIXER
         name 'Auto-Mute Mode'
         value Enabled
         comment {
             access 'read write'
             type ENUMERATED
             count 1
             item.0 Disabled
             item.1 Enabled
         }
     }
     control.18 {
         iface MIXER
         name 'Rear Mic Boost Volume'
         value.0 0
         value.1 0
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 3'
             dbmin 0
             dbmax 3000
             dbvalue.0 0
             dbvalue.1 0
         }
     }
     control.19 {
         iface MIXER
         name 'Front Mic Boost Volume'
         value.0 2
         value.1 2
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 3'
             dbmin 0
             dbmax 3000
             dbvalue.0 2000
             dbvalue.1 2000
         }
     }
     control.20 {
         iface MIXER
         name 'Capture Switch'
         value.0 true
         value.1 true
         comment {
             access 'read write'
             type BOOLEAN
             count 2
         }
     }
     control.21 {
         iface MIXER
         name 'Capture Switch'
         index 1
         value.0 true
         value.1 true
         comment {
             access 'read write'
             type BOOLEAN
             count 2
         }
     }
     control.22 {
         iface MIXER
         name 'Capture Volume'
         value.0 0
         value.1 0
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 31'
             dbmin -1350
             dbmax 3300
             dbvalue.0 -1350
             dbvalue.1 -1350
         }
     }
     control.23 {
         iface MIXER
         name 'Capture Volume'
         index 1
         value.0 0
         value.1 0
         comment {
             access 'read write'
             type INTEGER
             count 2
             range '0 - 31'
             dbmin -1350
             dbmax 3300
             dbvalue.0 -1350
             dbvalue.1 -1350
         }
     }
     control.24 {
         iface MIXER
         name 'Input Source'
         value 'Rear Mic'
         comment {
             access 'read write'
             type ENUMERATED
             count 1
             item.0 'Rear Mic'
             item.1 'Front Mic'
             item.2 Line
         }
     }
     control.25 {
         iface MIXER
         name 'Input Source'
         index 1
         value 'Rear Mic'
         comment {
             access 'read write'
             type ENUMERATED
             count 1
             item.0 'Rear Mic'
             item.1 'Front Mic'
             item.2 Line
         }
     }
     control.26 {
         iface MIXER
         name 'IEC958 Playback Con Mask'
         value 
'0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.27 {
         iface MIXER
         name 'IEC958 Playback Pro Mask'
         value 
'0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.28 {
         iface MIXER
         name 'IEC958 Playback Default'
         value 
'0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access 'read write'
             type IEC958
             count 1
         }
     }
     control.29 {
         iface MIXER
         name 'IEC958 Playback Switch'
         value false
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.30 {
         iface MIXER
         name 'IEC958 Default PCM Playback Switch'
         value true
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.31 {
         iface MIXER
         name 'Master Playback Volume'
         value 52
         comment {
             access 'read write'
             type INTEGER
             count 1
             range '0 - 64'
             dbmin -6400
             dbmax 0
             dbvalue.0 -1200
         }
     }
     control.32 {
         iface MIXER
         name 'Master Playback Switch'
         value true
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.33 {
         iface MIXER
         name 'Digital Capture Volume'
         value.0 120
         value.1 120
         comment {
             access 'read write user'
             type INTEGER
             count 2
             range '0 - 120'
             tlv '0000000100000008fffff44800000032'
             dbmin -3000
             dbmax 3000
             dbvalue.0 3000
             dbvalue.1 3000
         }
     }
     control.34 {
         iface MIXER
         name 'PCM Playback Volume'
         value.0 189
         value.1 189
         comment {
             access 'read write user'
             type INTEGER
             count 2
             range '0 - 255'
             tlv '0000000100000008ffffec1400000014'
             dbmin -5100
             dbmax 0
             dbvalue.0 -1320
             dbvalue.1 -1320
         }
     }
}
state.Webcam {
     control.1 {
         iface MIXER
         name 'Mic Capture Switch'
         value true
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.2 {
         iface MIXER
         name 'Mic Capture Volume'
         value 0
         comment {
             access 'read write'
             type INTEGER
             count 1
             range '0 - 2'
             dbmin 3000
             dbmax 5000
             dbvalue.0 3000
         }
     }
}
state.NVidia {
     control.1 {
         iface MIXER
         name 'IEC958 Playback Con Mask'
         value 
'0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.2 {
         iface MIXER
         name 'IEC958 Playback Pro Mask'
         value 
'0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.3 {
         iface MIXER
         name 'IEC958 Playback Default'
         value 
'0482000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access 'read write'
             type IEC958
             count 1
         }
     }
     control.4 {
         iface MIXER
         name 'IEC958 Playback Switch'
         value true
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.5 {
         iface PCM
         device 3
         name ELD
         value ''
         comment {
             access read
             type BYTES
             count 0
         }
     }
     control.6 {
         iface MIXER
         name 'IEC958 Playback Con Mask'
         index 1
         value 
'0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.7 {
         iface MIXER
         name 'IEC958 Playback Pro Mask'
         index 1
         value 
'0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.8 {
         iface MIXER
         name 'IEC958 Playback Default'
         index 1
         value 
'0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access 'read write'
             type IEC958
             count 1
         }
     }
     control.9 {
         iface MIXER
         name 'IEC958 Playback Switch'
         index 1
         value false
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.10 {
         iface PCM
         device 7
         name ELD
         value ''
         comment {
             access read
             type BYTES
             count 0
         }
     }
     control.11 {
         iface MIXER
         name 'IEC958 Playback Con Mask'
         index 2
         value 
'0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.12 {
         iface MIXER
         name 'IEC958 Playback Pro Mask'
         index 2
         value 
'0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.13 {
         iface MIXER
         name 'IEC958 Playback Default'
         index 2
         value 
'0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access 'read write'
             type IEC958
             count 1
         }
     }
     control.14 {
         iface MIXER
         name 'IEC958 Playback Switch'
         index 2
         value false
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.15 {
         iface PCM
         device 8
         name ELD
         value ''
         comment {
             access read
             type BYTES
             count 0
         }
     }
     control.16 {
         iface MIXER
         name 'IEC958 Playback Con Mask'
         index 3
         value 
'0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.17 {
         iface MIXER
         name 'IEC958 Playback Pro Mask'
         index 3
         value 
'0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access read
             type IEC958
             count 1
         }
     }
     control.18 {
         iface MIXER
         name 'IEC958 Playback Default'
         index 3
         value 
'0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
         comment {
             access 'read write'
             type IEC958
             count 1
         }
     }
     control.19 {
         iface MIXER
         name 'IEC958 Playback Switch'
         index 3
         value false
         comment {
             access 'read write'
             type BOOLEAN
             count 1
         }
     }
     control.20 {
         iface PCM
         device 9
         name ELD
         value ''
         comment {
             access read
             type BYTES
             count 0
         }
     }
}


Hope I am not taking up too much bandwidth here.  I thank you for your 
interest.  It seems to me
that things are even more complicated than first appeared.  --doug

------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to