Want more features on Pastebin? Sign Up, it's FREE!
Guest

ALSA SW mix for HDA crap

By: a guest on Jun 24th, 2010  |  syntax: None  |  size: 0.84 KB  |  views: 66  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # define the sound card
  2. pcm.card0 {
  3.         type hw
  4.         card 0
  5.         device 0
  6. }
  7.  
  8. # define software mixer device
  9. pcm.dmix0 {
  10.         type dmix
  11.         ipc_key 1000
  12.         slave {
  13.                 pcm     "card0"
  14.                 period_time 0
  15.                 period_size 1024
  16.                 buffer_size 8192
  17.                 rate 48000
  18.         }
  19. }
  20.  
  21. # define dsnoop capture device
  22. pcm.dsnoop0 {
  23.         type dsnoop
  24.         ipc_key 1001
  25.         slave {
  26.                 pcm     "card0"
  27.         }
  28. }
  29.  
  30. # Define the asymetric device
  31. pcm.asym0 {
  32.         type asym
  33.         playback.pcm    "dmix0"
  34.         capture.pcm     "dsnoop0"
  35. }
  36.  
  37. pcm.pasym0 {
  38.         type plug
  39.         slave.pcm "asym0"
  40. }
  41.  
  42. pcm.!default {
  43.         type plug
  44.         slave.pcm "asym0"
  45. }
  46.  
  47. #ctl.!default {
  48. #        type plug
  49. #        slave.pcm "asym0"
  50. #}
clone this paste RAW Paste Data