]> git.alsa-project.org Git - alsa-lib.git/commitdiff
oxygen: add channel status controls
authorClemens Ladisch <clemens@ladisch.de>
Fri, 30 Nov 2007 07:10:58 +0000 (08:10 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Fri, 30 Nov 2007 07:10:58 +0000 (08:10 +0100)
Add mixer controls to manage the S/PDIF channel status bits.

src/conf/cards/CMI8788.conf

index e05da8f656a9542958cb229a50cf3d5795a4b804..59b560cb21413d766938833f64dc5bc6191d60de 100644 (file)
@@ -2,8 +2,6 @@
 # Configuration for the CMI8788 chip
 #
 
-# TODO: add hooks for SPDIF mixer controls
-
 <confdir:pcm/front.conf>
 
 CMI8788.pcm.front.0 {
@@ -126,9 +124,25 @@ CMI8788.pcm.iec958.0 {
        }
        type asym
        playback.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 PCM
+                                       device 1
+                                       name "IEC958 Playback PCM Stream"
+                                       lock true
+                                       preserve true
+                                       value [ $AES0 $AES1 $AES2 $AES3 ]
+                               }
+                       ]
+               }
        }
        capture.pcm {
                type hw