Comment 20 for bug 1315212

Revision history for this message
In , Raymond (superquad-vortex2) wrote :

 }
 type hooks
 slave.pcm {
  type hw
  card $CARD
 }
 hooks.0 {
  type ctl_elems
  hook_args [
   {
    name "IEC958 Front Playback Volume"
    index 0
    lock true
    preserve true
    value [ 207 207 ] # Puts 0x30303030 in the Volume register. 0xff - 0x30 = 0xcf = 207
   }
   {
    name "IEC958 Playback Switch"
    lock true
    preserve true
    value 1
   }
   {
    interface PCM
    name "IEC958 Playback Default"
    index 1
    lock true
    preserve true
    optional true
    value [ $AES0 $AES1 $AES2 $AES3 ]
   }
   {
    # for compatibility with older drivers
    name "IEC958 Playback Default"
    index 1
    lock true
    preserve true
    optional true
    value [ $AES0 $AES1 $AES2 $AES3 ]
   }
  ]
 }
}