mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Add chmap override definitions for Emu10k1, Audigy and Audigy2 cards
These cards won't provide the channel maps from the driver itself because of the dynamic routing. For simplicity, define chmaps in the configurations, so that chmap querying of individual stereo streams and combined multi streams works properly. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									a102028a5a
								
							
						
					
					
						commit
						5ba11d69da
					
				
					 3 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -13,6 +13,7 @@ Audigy.pcm.front.0 {
 | 
				
			||||||
	slave.pcm {
 | 
						slave.pcm {
 | 
				
			||||||
		type hw
 | 
							type hw
 | 
				
			||||||
		card $CARD
 | 
							card $CARD
 | 
				
			||||||
 | 
							chmap "FL,FR"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
| 
						 | 
					@ -65,6 +66,7 @@ Audigy.pcm.rear.0 {
 | 
				
			||||||
	slave.pcm {
 | 
						slave.pcm {
 | 
				
			||||||
		type hw
 | 
							type hw
 | 
				
			||||||
		card $CARD
 | 
							card $CARD
 | 
				
			||||||
 | 
							chmap "RL,RR"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
| 
						 | 
					@ -100,6 +102,7 @@ Audigy.pcm.center_lfe.0 {
 | 
				
			||||||
	slave.pcm {
 | 
						slave.pcm {
 | 
				
			||||||
		type hw
 | 
							type hw
 | 
				
			||||||
		card $CARD
 | 
							card $CARD
 | 
				
			||||||
 | 
							chmap "FC,LFE"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,7 @@ Audigy2.pcm.front.0 {
 | 
				
			||||||
	slave.pcm {
 | 
						slave.pcm {
 | 
				
			||||||
		type hw
 | 
							type hw
 | 
				
			||||||
		card $CARD
 | 
							card $CARD
 | 
				
			||||||
 | 
							chmap "FL,FR"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
| 
						 | 
					@ -65,6 +66,7 @@ Audigy2.pcm.rear.0 {
 | 
				
			||||||
	slave.pcm {
 | 
						slave.pcm {
 | 
				
			||||||
		type hw
 | 
							type hw
 | 
				
			||||||
		card $CARD
 | 
							card $CARD
 | 
				
			||||||
 | 
							chmap "RL,RR"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
| 
						 | 
					@ -100,6 +102,7 @@ Audigy2.pcm.center_lfe.0 {
 | 
				
			||||||
	slave.pcm {
 | 
						slave.pcm {
 | 
				
			||||||
		type hw
 | 
							type hw
 | 
				
			||||||
		card $CARD
 | 
							card $CARD
 | 
				
			||||||
 | 
							chmap "FC,LFE"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
| 
						 | 
					@ -151,6 +154,7 @@ Audigy2.pcm.side.0 {
 | 
				
			||||||
	slave.pcm {
 | 
						slave.pcm {
 | 
				
			||||||
		type hw
 | 
							type hw
 | 
				
			||||||
		card $CARD
 | 
							card $CARD
 | 
				
			||||||
 | 
							chmap "SL,SR"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	hooks.0 {
 | 
						hooks.0 {
 | 
				
			||||||
		type ctl_elems
 | 
							type ctl_elems
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,6 +15,7 @@ EMU10K1.pcm.front.0 {
 | 
				
			||||||
		slave.pcm {
 | 
							slave.pcm {
 | 
				
			||||||
			type hw
 | 
								type hw
 | 
				
			||||||
			card $CARD
 | 
								card $CARD
 | 
				
			||||||
 | 
								chmap "FL,FR"
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		hooks.0 {
 | 
							hooks.0 {
 | 
				
			||||||
			type ctl_elems
 | 
								type ctl_elems
 | 
				
			||||||
| 
						 | 
					@ -73,6 +74,7 @@ EMU10K1.pcm.rear.0 {
 | 
				
			||||||
		slave.pcm {
 | 
							slave.pcm {
 | 
				
			||||||
			type hw
 | 
								type hw
 | 
				
			||||||
			card $CARD
 | 
								card $CARD
 | 
				
			||||||
 | 
								chmap "RL,RR"
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		hooks.0 {
 | 
							hooks.0 {
 | 
				
			||||||
			type ctl_elems
 | 
								type ctl_elems
 | 
				
			||||||
| 
						 | 
					@ -111,6 +113,7 @@ EMU10K1.pcm.center_lfe.0 {
 | 
				
			||||||
		slave.pcm {
 | 
							slave.pcm {
 | 
				
			||||||
			type hw
 | 
								type hw
 | 
				
			||||||
			card $CARD
 | 
								card $CARD
 | 
				
			||||||
 | 
								chmap "FC,LFE"
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		hooks.0 {
 | 
							hooks.0 {
 | 
				
			||||||
			type ctl_elems
 | 
								type ctl_elems
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue