Comment 11 for bug 1329014

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

post the pulseaudio verbose log

https://wiki.ubuntu.com/PulseAudio/Log

you will notice that pulseaudio Probe the sound card by open devices front,...., IEC958 for both playback and capture

but the Audigy2.conf have lock on the controls and those playback route only used by playback device

you need asym plugin to put those hooks plugin into playback slave of asym plugin

not sure what controls need for iec958 capture device ?

Audigy2.pcm.iec958.0 {
 @args [ CARD AES0 AES1 AES2 AES3 ]
 @args.CARD {
  type string
 }
 @args.AES0 {
  type integer
 }
 @args.AES1 {
  type integer
 }
 @args.AES2 {
  type integer
 }
 @args.AES3 {
  type integer
 }
 type hooks
 slave.pcm {
  type hw
  card $CARD
 }

 hooks.0 {
  type ctl_elems
  hook_args [
   {
    interface PCM
    name "IEC958 Playback Default"
    preserve true
    optional true
    value [ $AES0 $AES1 $AES2 $AES3 ]
   }
   {
    # for compatibility with older drivers
    name "IEC958 Playback Default"
    preserve true
    optional true
    value [ $AES0 $AES1 $AES2 $AES3 ]
   }
   {
    name "IEC958 Optical Raw Playback Switch"
    lock true
    preserve true
    value [ 1 1 ]
   }
   {
    interface PCM
    name "EMU10K1 PCM Send Volume"
    index { @func private_pcm_subdevice }
    lock true
    optional true
    value [ 255 255 0 0 0 0 0 0 255 0 0 0 0 0 0 0 0 255 0 0 0 0 0 0 ]
   }
   {
    # for compatibility with older drivers
    name "EMU10K1 PCM Send Volume"
    index { @func private_pcm_subdevice }
    lock true
    optional true
    value [ 255 255 0 0 0 0 0 0 255 0 0 0 0 0 0 0 0 255 0 0 0 0 0 0 ]
   }
   {
    interface PCM
    name "EMU10K1 PCM Send Routing"
    index { @func private_pcm_subdevice }
    lock true
    optional true
    value [ 20 21 0 0 0 0 0 0 20 21 0 0 0 0 0 0 20 21 0 0 0 0 0 0 ]
   }
   {
    # for compatibility with older drivers
    name "EMU10K1 PCM Send Routing"
    index { @func private_pcm_subdevice }
    lock true
    optional true
    value [ 20 21 0 0 0 0 0 0 20 21 0 0 0 0 0 0 20 21 0 0 0 0 0 0 ]
   }
   {
    name "Audigy Analog/Digital Output Jack"
    lock true
    preserve true
    value 1
   }
  ]
 }
}