home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / share / alsa / cards / ICH4.conf < prev    next >
Encoding:
Text File  |  2007-04-10  |  2.9 KB  |  220 lines

  1. #
  2. # Configuration for the Intel ICH4/ICH5/ICH6 chips
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. ICH4.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type softvol
  13.     slave.pcm {
  14.         type hw
  15.         card $CARD
  16.         device 0
  17.     }
  18.     control {
  19.         name "PCM Playback Volume"
  20.         card $CARD
  21.     }
  22. }    
  23.  
  24. # default with dmix+softvol & dsnoop
  25. ICH4.pcm.default {
  26.     @args [ CARD ]
  27.     @args.CARD {
  28.         type string
  29.     }
  30.     type asym
  31.     playback.pcm {
  32.         type plug
  33.         slave.pcm {
  34.             type softvol
  35.             slave.pcm {
  36.                 @func concat
  37.                 strings [ "dmix:" $CARD ]
  38.             }
  39.             control {
  40.                 name "PCM Playback Volume"
  41.                 card $CARD
  42.             }
  43.         }
  44.     }
  45.     capture.pcm {
  46.         type plug
  47.         slave.pcm {
  48.             @func concat
  49.             strings [ "dsnoop:" $CARD ]
  50.         }
  51.     }
  52. }
  53.  
  54. <confdir:pcm/surround40.conf>
  55.  
  56. ICH4.pcm.surround40.0 {
  57.     @args [ CARD ]
  58.     @args.CARD {
  59.         type string
  60.     }
  61.     type softvol
  62.     slave.pcm {
  63.         type hooks
  64.         slave.pcm {
  65.             type hw
  66.             card $CARD
  67.             device 0
  68.             channels 4
  69.         }
  70.         hooks.0 {
  71.             type ctl_elems
  72.             hook_args [
  73.             {
  74.                 name "Channel Mode"
  75.                 preserve true
  76.                 value "4ch"
  77.                 lock true
  78.                 optional true
  79.             }
  80.             # for old drivers
  81.             {
  82.                 name "Line-In As Surround"
  83.                 preserve true
  84.                 value true
  85.                 optional true
  86.             }
  87.             {
  88.                 name "Surround Down Mix"
  89.                 preserve true
  90.                 value off
  91.                 lock true
  92.                 optional true
  93.             }
  94.             ]
  95.         }
  96.     }
  97.     control {
  98.         name "PCM Playback Volume"
  99.         card $CARD
  100.     }
  101. }
  102.  
  103. <confdir:pcm/surround41.conf>
  104. <confdir:pcm/surround50.conf>
  105. <confdir:pcm/surround51.conf>
  106.  
  107. ICH4.pcm.surround51.0 {
  108.     @args [ CARD ]
  109.     @args.CARD {
  110.         type string
  111.     }
  112.     type softvol
  113.     slave.pcm {
  114.         type hooks
  115.         slave.pcm {
  116.             type hw
  117.             card $CARD
  118.             device 0
  119.             channels 6
  120.         }
  121.         hooks.0 {
  122.             type ctl_elems
  123.             hook_args [
  124.             {
  125.                 name "Channel Mode"
  126.                 preserve true
  127.                 value "6ch"
  128.                 lock true
  129.                 optional true
  130.             }
  131.             # for old drivers
  132.             {
  133.                 name "Line-In As Surround"
  134.                 preserve true
  135.                 value true
  136.                 optional true
  137.             }
  138.             {
  139.                 name "Mic As Center/LFE"
  140.                 preserve true
  141.                 value true
  142.                 optional true
  143.             }
  144.             {
  145.                 name "Surround Down Mix"
  146.                 preserve true
  147.                 value off
  148.                 lock true
  149.                 optional true
  150.             }
  151.             {
  152.                 name "Center/LFE Down Mix"
  153.                 preserve true
  154.                 value off
  155.                 lock true
  156.                 optional true
  157.             }
  158.             ]
  159.         }
  160.     }
  161.     control {
  162.         name "PCM Playback Volume"
  163.         card $CARD
  164.     }
  165. }
  166.  
  167. <confdir:pcm/iec958.conf>
  168.  
  169. ICH4.pcm.iec958.0 {
  170.     @args [ CARD AES0 AES1 AES2 AES3 ]
  171.     @args.CARD {
  172.         type string
  173.     }
  174.     @args.AES0 {
  175.         type integer
  176.     }
  177.     @args.AES1 {
  178.         type integer
  179.     }
  180.     @args.AES2 {
  181.         type integer
  182.     }
  183.     @args.AES3 {
  184.         type integer
  185.     }
  186.     type hooks
  187.     slave.pcm {
  188.         type hw
  189.         card $CARD
  190.         device 4
  191.     }
  192.     hooks.0 {
  193.         type ctl_elems
  194.         hook_args [
  195.             {
  196.                 name "IEC958 Playback AC97-SPSA"
  197.                 device 0
  198.                 lock true
  199.                 preserve true
  200.                 value 3
  201.                 optional true
  202.             }
  203.             {
  204.                 name "IEC958 Playback Default"
  205.                 device 0
  206.                 lock true
  207.                 preserve true
  208.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  209.             }
  210.             {
  211.                 name "IEC958 Playback Switch"
  212.                 device 0
  213.                 lock true
  214.                 preserve true
  215.                 value true
  216.             }
  217.         ]
  218.     }
  219. }
  220.