title: How do I configure JACK audio server to automatically use a specific card?
body: <p>I'm running Ubuntu 12.04 studio on a HP Pavilion dm1 4200sg netbook. It's pretty much a fresh install. I try to start jackd server by running </p>
  
  <pre><code>jackd -R -d alsa
  </code></pre>
  
  <p>and it fails with output:</p>
  
  <pre><code>JACK server starting in realtime mode with priority 10
  control device hw:0
  control device hw:0
  audio_reservation_init
  Acquire audio card Audio0
  creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
  control device hw:0
  ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
  Cannot initialize driver
  JackServer::Open() failed with -1
  Failed to open server
  </code></pre>
  
  <p>Running aplay -l gives the following output:</p>
  
  <pre><code>**** List of PLAYBACK Hardware Devices ****
  card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  card 1: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
  </code></pre>
  
  <p>I find that by running </p>
  
  <pre><code>jackd -R -d alsa -d hw:1
  </code></pre>
  
  <p>jackd starts successfully. I would like to configure my machine so that hw:1 is the default option (i.e. to make the original 'jackd -R -d alsa' command work). Can anyone help me to do this?</p>
  
  <p>I've tried editing ~/.asoundrc to be</p>
  
  <pre><code>pcm.!default {
       type hw
       card 1
  }
  
  ctl.!default {
       type hw
       card 1
  }
  </code></pre>
  
  <p>but this doesn't seem to work. I'm well out of my comfort zone here and any help would be appreciated. Thanks!</p>