]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Turn on iec958 capture of iec1724 boards with spdif PCM
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Jun 2006 12:42:59 +0000 (14:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 23 Jun 2006 12:42:59 +0000 (14:42 +0200)
Automatically turn on iec958 capture of iec1724 boards
with spdif PCM via hooks plugin.

src/conf/cards/Aureon51.conf
src/conf/cards/Aureon71.conf
src/conf/cards/ICE1724.conf

index d63d8b7da2c149a0d4f41afa89b861c10ef05518..996beda565c571d6960d476d91ecd7a1cda0c630 100644 (file)
@@ -150,8 +150,23 @@ Aureon51.pcm.iec958.0 {
                }
        }
        capture.pcm {
-               type hw
-               card $CARD
-               device 1
+               type hooks
+               slave.pcm {
+                       type hw
+                       card $CARD
+                       device 1
+               }
+               hooks.0 {
+                       type ctl_elems
+                       hook_args [
+                               {
+                                       interface MIXER
+                                       name "IEC958 Capture Switch"
+                                       lock true
+                                       preserve true
+                                       value true
+                               }
+                       ]
+               }
        }
 }
index 8e05098c8c395c3420d292a39d2cc484ad9bc1f8..38d47202ce8c10ad092d78c45849e0cfc88ad78c 100644 (file)
@@ -161,8 +161,23 @@ Aureon71.pcm.iec958.0 {
                }
        }
        capture.pcm {
-               type hw
-               card $CARD
-               device 1
+               type hooks
+               slave.pcm {
+                       type hw
+                       card $CARD
+                       device 1
+               }
+               hooks.0 {
+                       type ctl_elems
+                       hook_args [
+                               {
+                                       interface MIXER
+                                       name "IEC958 Capture Switch"
+                                       lock true
+                                       preserve true
+                                       value true
+                               }
+                       ]
+               }
        }
 }
index ba77e212330199251938c578de3d217b7331a1ae..41b16ffeb9903adac765ec76b941c05730f136dc 100644 (file)
@@ -195,8 +195,23 @@ ICE1724.pcm.iec958.0 {
                }
        }
        capture.pcm {
-               type hw
-               card $CARD
-               device 1
+               type hooks
+               slave.pcm {
+                       type hw
+                       card $CARD
+                       device 1
+               }
+               hooks.0 {
+                       type ctl_elems
+                       hook_args [
+                               {
+                                       interface MIXER
+                                       name "IEC958 Capture Switch"
+                                       lock true
+                                       preserve true
+                                       value true
+                               }
+                       ]
+               }
        }
 }