]> git.alsa-project.org Git - alsa-lib.git/commitdiff
add softvol for CMI8788
authorClemens Ladisch <clemens@ladisch.de>
Mon, 19 Jan 2009 09:20:38 +0000 (10:20 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 19 Jan 2009 09:20:38 +0000 (10:20 +0100)
Master Volume controls were removed from Xonar D2/D2X cards; add the
softvol plugin so that we have at least PCM volume.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
src/conf/cards/CMI8788.conf

index 0ca71e9d28de5a7095d475ab79c6d9f65f1d6f3b..26910d511cd7386ffad3a4c929d95c0756fa0531 100644 (file)
@@ -13,7 +13,7 @@ CMI8788.pcm.front.0 {
        card $CARD
 }      
 
-# default with dmix & dsnoop
+# default with dmix+softvol & dsnoop
 CMI8788.pcm.default {
        @args [ CARD ]
        @args.CARD {
@@ -23,8 +23,15 @@ CMI8788.pcm.default {
        playback.pcm {
                type plug
                slave.pcm {
-                       @func concat
-                       strings [ "dmix:" $CARD ",FORMAT=S32_LE" ]
+                       type softvol
+                       slave.pcm {
+                               @func concat
+                               strings [ "dmix:" $CARD ",FORMAT=S32_LE" ]
+                       }
+                       control {
+                               name "PCM Playback Volume"
+                               card $CARD
+                       }
                }
        }
        capture.pcm {