home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / linux / system / LinuxConsole 0.4 / linuxconsole0.4install-en.iso / linuxconsole0.4.lcm / local / linuxconsole / share / alsa / cards / CMI8338.conf < prev    next >
Encoding:
Text File  |  2004-03-26  |  1.4 KB  |  108 lines

  1. #
  2. # Configuration for the CMI8338/8738 chip (w/o multi-channel support)
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. CMI8338.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14.     device 0
  15. }    
  16.  
  17. <confdir:pcm/rear.conf>
  18.  
  19. # 2nd DAC
  20. # FIXME: we need a volume attenuator for rear channel.
  21. CMI8338.pcm.rear.0 {
  22.     @args [ CARD ]
  23.     @args.CARD {
  24.         type string
  25.     }
  26.     type hw
  27.     card $CARD
  28.     device 1
  29. }
  30.  
  31. <confdir:pcm/surround40.conf>
  32.  
  33. # for the old CM8738 with 2nd DAC for rear
  34. CMI8338.pcm.surround40.0 {
  35.     @args [ CARD ]
  36.     @args.CARD {
  37.         type string
  38.     }
  39.     type multi
  40.     master 1
  41.     slaves [
  42.         {
  43.             pcm {
  44.                 @func concat
  45.                 strings [
  46.                     "cards.CMI8338.pcm.front.0:CARD=" $CARD
  47.                 ]
  48.             }
  49.             channels 2
  50.         }
  51.         {
  52.             pcm {
  53.                 @func concat
  54.                 strings [
  55.                     "cards.CMI8338.pcm.rear.0:CARD=" $CARD
  56.                 ]
  57.             }
  58.             channels 2
  59.         }
  60.     ]
  61.     bindings [
  62.         { slave 0 channel 0 }
  63.         { slave 0 channel 1 }
  64.         { slave 1 channel 0 }
  65.         { slave 1 channel 1 }
  66.     ]
  67. }
  68.  
  69. <confdir:pcm/iec958.conf>
  70.  
  71. CMI8338.pcm.iec958.0 {
  72.     @args [ CARD AES0 AES1 AES2 AES3 ]
  73.     @args.CARD {
  74.         type string
  75.     }
  76.     @args.AES0 {
  77.         type integer
  78.     }
  79.     @args.AES1 {
  80.         type integer
  81.     }
  82.     @args.AES2 {
  83.         type integer
  84.     }
  85.     @args.AES3 {
  86.         type integer
  87.     }
  88.     type hooks
  89.     slave.pcm {
  90.         type hw
  91.         card $CARD
  92.         device 2
  93.     }
  94.     hooks.0 {
  95.         type ctl_elems
  96.         hook_args [
  97.             {
  98.                 interface PCM
  99.                 name "IEC958 Playback PCM Stream"
  100.                 device 2
  101.                 lock true
  102.                 preserve true
  103.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  104.             }
  105.         ]
  106.     }
  107. }
  108.