1# 2# dsnoop 3# 4 5pcm.!dsnoop { 6 @args [ CARD DEV SUBDEV FORMAT RATE ] 7 @args.CARD { 8 type string 9 default { 10 @func refer 11 name defaults.pcm.dsnoop.card 12 } 13 } 14 @args.DEV { 15 type integer 16 default { 17 @func refer 18 name defaults.pcm.dsnoop.device 19 } 20 } 21 @args.SUBDEV { 22 type integer 23 default 0 24 } 25 @args.FORMAT { 26 type string 27 default { 28 @func refer 29 name defaults.pcm.dmix.format 30 } 31 } 32 @args.RATE { 33 type integer 34 default { 35 @func refer 36 name defaults.pcm.dmix.rate 37 } 38 } 39 type dsnoop 40 ipc_key { 41 @func refer 42 name defaults.pcm.ipc_key 43 } 44 ipc_gid { 45 @func refer 46 name defaults.pcm.ipc_gid 47 } 48 ipc_perm { 49 @func refer 50 name defaults.pcm.ipc_perm 51 } 52 tstamp_type { 53 @func refer 54 name defaults.pcm.tstamp_type 55 } 56 slave { 57 pcm { 58 type hw 59 card $CARD 60 device $DEV 61 subdevice $SUBDEV 62 } 63 format $FORMAT 64 rate $RATE 65 period_size { 66 @func refer 67 name { 68 @func concat 69 strings [ 70 "cards." 71 { 72 @func card_id 73 card $CARD 74 } 75 ".pcm.dsnoop.period_size" 76 ] 77 } 78 default 1024 79 } 80 period_time { 81 @func refer 82 name { 83 @func concat 84 strings [ 85 "cards." 86 { 87 @func card_id 88 card $CARD 89 } 90 ".pcm.dsnoop.period_time" 91 ] 92 } 93 default -1 94 } 95 periods { 96 @func refer 97 name { 98 @func concat 99 strings [ 100 "cards." 101 { 102 @func card_id 103 card $CARD 104 } 105 ".pcm.dsnoop.periods" 106 ] 107 } 108 default 16 109 } 110 } 111 hint { 112 show { 113 @func refer 114 name defaults.namehint.extended 115 } 116 description "Direct sample snooping device" 117 device_input $DEV 118 } 119} 120