Change dmix.conf to accept user configuration from defaults.dmix.<driver_id>.xxx
authorJaroslav Kysela <perex@perex.cz>
Wed, 9 Sep 2009 09:38:11 +0000 (11:38 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 9 Sep 2009 09:40:03 +0000 (11:40 +0200)
An attempt to fix problem described in reverted patch "Fix driver conf
parsing in snd_config_hook_load_for_all_cards()".

Signed-off-by: Jaroslav Kysela <perex@perex.cz>

src/conf/pcm/dmix.conf

index 4108ddb..e62cb29 100644 (file)
@@ -63,12 +63,12 @@ pcm.!dmix {
                        name {
                                @func concat
                                strings [
-                                       "cards."
+                                       "defaults.dmix."
                                        {
                                                @func card_driver
                                                card $CARD
                                        }
-                                       ".pcm.dmix.period_size"
+                                       ".period_size"
                                ]
                        }
                        default 1024
@@ -78,12 +78,12 @@ pcm.!dmix {
                        name {
                                @func concat
                                strings [
-                                       "cards."
+                                       "defaults.dmix."
                                        {
                                                @func card_driver
                                                card $CARD
                                        }
-                                       ".pcm.dmix.period_time"
+                                       ".period_time"
                                ]
                        }
                        default -1
@@ -93,12 +93,12 @@ pcm.!dmix {
                        name {
                                @func concat
                                strings [
-                                       "cards."
+                                       "defaults.dmix."
                                        {
                                                @func card_driver
                                                card $CARD
                                        }
-                                       ".pcm.dmix.periods"
+                                       ".periods"
                                ]
                        }
                        default 16