Skip to contentSkip to conversation

ICE1712 softdevices fixes

PATCH New Diego E. 'Flameeyes' Pettenò 1 participant 3 messages Jan 20, 2009

lore
Share & tools
lore
#0 lore raw

The following patches fixes the default device as they appear for ICE1712-based cards. Without this cards, 'aplay -L' will show a series of devices like surround40 and surround71 that are not meaningful for this card, and a front device that would not work.

#1 lore raw

PATCH 1/2 Remove definition for surround sound devices on ICE1712.

The ICE1712-based cards are non-surround cards with only stereo final output. It's not possible to use them as surround cards, so these devices don't make sense.

They also don't work since opening those devices with less than the amount of channels will fail.

---
 src/conf/cards/ICE1712.conf |   40 ----------------------------------------
 1 files changed, 0 insertions(+), 40 deletions(-)
src/conf/cards/ICE1712.conf +0 -40
index 01e50d2..5445920 100644
@@ -39,46 +39,6 @@ ICE1712.pcm.front.0 {
 		type hw
 		card $CARD
 	}
-}	
-
-<confdir:pcm/surround40.conf>
-
-ICE1712.pcm.surround40.0 {
-	@args [ CARD ]
-	@args.CARD {
-		type string
-	}
-	type route
-	ttable.0.0 1
-	ttable.1.1 1
-	ttable.2.2 1
-	ttable.3.3 1
-	slave.pcm {
-		type hw
-		card $CARD
-	}
-}	
-
-<confdir:pcm/surround41.conf>
-<confdir:pcm/surround50.conf>
-<confdir:pcm/surround51.conf>
-
-ICE1712.pcm.surround51.0 {
-	@args [ CARD ]
-	@args.CARD {
-		type string
-	}
-	type route
-	ttable.0.0 1
-	ttable.1.1 1
-	ttable.2.2 1
-	ttable.3.3 1
-	ttable.4.4 1
-	ttable.5.5 1
-	slave.pcm {
-		type hw
-		card $CARD
-	}
 }
 
 <confdir:pcm/iec958.conf>
Signature · 6 lines
1.6.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#2 lore raw

PATCH 2/2 Make the front:idx device work for ICE1712.

The default definition of front:idx for ICE1712-based cards didn't work previously because the route plugin cannot change the number of channels between the hardware device (with 10 or 12 channels) and the soft-device (with 2 channels).

---
 src/conf/cards/ICE1712.conf |   28 ++++++++++++++++++++++------
 1 files changed, 22 insertions(+), 6 deletions(-)
src/conf/cards/ICE1712.conf +22 -6
index 5445920..bb93c1d 100644
@@ -32,12 +32,28 @@ ICE1712.pcm.front.0 {
 	@args.CARD {
 		type string
 	}
-	type route
-	ttable.0.0 1
-	ttable.1.1 1
-	slave.pcm {
-		type hw
-		card $CARD
+	type asym
+	playback.pcm {
+		type route
+		ttable.0.0 1
+		ttable.1.1 1
+		slave.pcm {
+			type hw
+			card $CARD
+		}
+		slave.format S32_LE
+		slave.channels 10
+	}
+	capture.pcm {
+		type route
+		ttable.0.8 1
+		ttable.1.9 1
+		slave.pcm {
+			type hw
+			card $CARD
+		}
+		slave.format S32_LE
+		slave.channels 12
 	}
 }
 
Signature · 6 lines
1.6.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel