File alsa-lib-fix-dmix-subdevice.diff of Package alsa

tree 923dc1303d0a
parent 5e72b6913eb3
author tiwai 1190034232 -7200
committer tiwai 1190034232 -7200
revision 2329

Fix subdevice number to 0 for dmix/dsnoop

The dmix and dsnoop plugins need a fixed substream number instead of
the next-available one (-1) as the default number.  Now it's set to 0.
diff --git a/src/conf/pcm/dmix.conf b/src/conf/pcm/dmix.conf
--- a/src/conf/pcm/dmix.conf
+++ b/src/conf/pcm/dmix.conf
@@ -20,7 +20,7 @@ pcm.!dmix {
 	}
 	@args.SUBDEV {
 		type integer
-		default -1
+		default 0
 	}
 	@args.FORMAT {
 		type string
diff --git a/src/conf/pcm/dsnoop.conf b/src/conf/pcm/dsnoop.conf
--- a/src/conf/pcm/dsnoop.conf
+++ b/src/conf/pcm/dsnoop.conf
@@ -20,7 +20,7 @@ pcm.!dsnoop {
 	}
 	@args.SUBDEV {
 		type integer
-		default -1
+		default 0
 	}
 	@args.FORMAT {
 		type string
openSUSE Build Service is sponsored by