mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	emu10k1: Front channels via fxbus 8 and 9
Routes front channels via fxbus 8 and 9 instead of fxbus 0 and 1. This makes the front and default devices independent of each other, and "Wave Surround", "Wave Center" and "Wave LFE" don't have to be muted during 5.1 playback. Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
This commit is contained in:
		
							parent
							
								
									5240107559
								
							
						
					
					
						commit
						148c2b8e7c
					
				
					 1 changed files with 45 additions and 22 deletions
				
			
		| 
						 | 
					@ -9,10 +9,52 @@ EMU10K1.pcm.front.0 {
 | 
				
			||||||
	@args.CARD {
 | 
						@args.CARD {
 | 
				
			||||||
		type string
 | 
							type string
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						type hooks
 | 
				
			||||||
 | 
						slave.pcm {
 | 
				
			||||||
		type hw
 | 
							type hw
 | 
				
			||||||
		card $CARD
 | 
							card $CARD
 | 
				
			||||||
		device 0
 | 
							device 0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						hooks.0 {
 | 
				
			||||||
 | 
							type ctl_elems
 | 
				
			||||||
 | 
							hook_args [
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									interface PCM
 | 
				
			||||||
 | 
									device 0
 | 
				
			||||||
 | 
									name "EMU10K1 PCM Send Volume"
 | 
				
			||||||
 | 
									index { @func private_pcm_subdevice }
 | 
				
			||||||
 | 
									lock true
 | 
				
			||||||
 | 
									optional true
 | 
				
			||||||
 | 
									value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									# for compatibility with older drivers
 | 
				
			||||||
 | 
									name "EMU10K1 PCM Send Volume"
 | 
				
			||||||
 | 
									index { @func private_pcm_subdevice }
 | 
				
			||||||
 | 
									lock true
 | 
				
			||||||
 | 
									optional true
 | 
				
			||||||
 | 
									value [ 255 255 0 0 255 0 0 0 0 255 0 0 ]
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									interface PCM
 | 
				
			||||||
 | 
									device 0
 | 
				
			||||||
 | 
									name "EMU10K1 PCM Send Routing"
 | 
				
			||||||
 | 
									index { @func private_pcm_subdevice }
 | 
				
			||||||
 | 
									lock true
 | 
				
			||||||
 | 
									optional true
 | 
				
			||||||
 | 
									value [ 8 9 0 0 8 9 0 0 8 9 0 0 ]
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								{
 | 
				
			||||||
 | 
									# for compatibility with older drivers
 | 
				
			||||||
 | 
									name "EMU10K1 PCM Send Routing"
 | 
				
			||||||
 | 
									index { @func private_pcm_subdevice }
 | 
				
			||||||
 | 
									lock true
 | 
				
			||||||
 | 
									optional true
 | 
				
			||||||
 | 
									value [ 8 9 0 0 8 9 0 0 8 9 0 0 ]
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							]
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}	
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<confdir:pcm/rear.conf>
 | 
					<confdir:pcm/rear.conf>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,13 +72,6 @@ EMU10K1.pcm.rear.0 {
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
		hook_args [
 | 
							hook_args [
 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				name "Wave Surround Playback Volume"
 | 
					 | 
				
			||||||
				preserve true
 | 
					 | 
				
			||||||
				# don't lock a global control
 | 
					 | 
				
			||||||
				# lock true
 | 
					 | 
				
			||||||
				value [ 0 0 ]
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				interface PCM
 | 
									interface PCM
 | 
				
			||||||
				device 0
 | 
									device 0
 | 
				
			||||||
| 
						 | 
					@ -74,18 +109,6 @@ EMU10K1.pcm.center_lfe.0 {
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
		hook_args [
 | 
							hook_args [
 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				name "Wave Center Playback Volume"
 | 
					 | 
				
			||||||
				preserve true
 | 
					 | 
				
			||||||
 				# lock true
 | 
					 | 
				
			||||||
				value 0
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			{
 | 
					 | 
				
			||||||
				name "Wave LFE Playback Volume"
 | 
					 | 
				
			||||||
				preserve true
 | 
					 | 
				
			||||||
				# lock true
 | 
					 | 
				
			||||||
				value 0
 | 
					 | 
				
			||||||
			}
 | 
					 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				name "Headphone Center Playback Switch"
 | 
									name "Headphone Center Playback Switch"
 | 
				
			||||||
				index 1
 | 
									index 1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue