title: Portaudio select input device for capturing
body: <p>I face some problems with set up input device for portaudio. 
  I have 2 cards 0 and 1, and I want to configure: 
  card 0 for capturing, card 1 for playing. </p>
  
  <p>So, I edit <code>asound.conf</code> like this:</p>
  
  <pre><code>pcm!.default 
  {
      type asym
      playback.pcm "plughw:1"
      capture.pcm "plughw:0"
  }
  </code></pre>
  
  <p>I realize portaudio can not record audio file, it's always 0 byte in record file. In case of doesn't have <code>asound.conf</code> in path /etc/, Portaudio works fine. So, my question is:
  How can I choose input device for portaudio between 2 cards?</p>
  
  <p>Attached is my cards:
  <a href="https://i.stack.imgur.com/BpAbw.png" rel="nofollow noreferrer">enter image description here</a></p>