jpayne@68: # jpayne@68: # Default output jpayne@68: # jpayne@68: jpayne@68: pcm.!default { jpayne@68: @args [ CARD ] jpayne@68: @args.CARD { jpayne@68: type string jpayne@68: default { jpayne@68: @func getenv jpayne@68: vars [ jpayne@68: ALSA_PCM_CARD jpayne@68: ALSA_CARD jpayne@68: ] jpayne@68: default { jpayne@68: @func refer jpayne@68: name defaults.pcm.card jpayne@68: } jpayne@68: } jpayne@68: } jpayne@68: type empty jpayne@68: slave.pcm { jpayne@68: # use card-specific definition if exists jpayne@68: @func refer jpayne@68: name { jpayne@68: @func concat jpayne@68: strings [ jpayne@68: "cards." jpayne@68: { jpayne@68: @func card_driver jpayne@68: card $CARD jpayne@68: } jpayne@68: ".pcm.default:CARD=" $CARD jpayne@68: ] jpayne@68: } jpayne@68: default { jpayne@68: # use plughw as default jpayne@68: type plug jpayne@68: slave.pcm { jpayne@68: type hw jpayne@68: card $CARD jpayne@68: } jpayne@68: hint.device 0 jpayne@68: } jpayne@68: } jpayne@68: hint { jpayne@68: description "Default Audio Device" jpayne@68: device_output { jpayne@68: @func refer jpayne@68: name defaults.pcm.dmix.device jpayne@68: } jpayne@68: device_input { jpayne@68: @func refer jpayne@68: name defaults.pcm.dsnoop.device jpayne@68: } jpayne@68: } jpayne@68: }