title: Alsa issues on Raspberry pi
body: <p>I am trying to use IBM watson TTS engine to play back the text. While playing the sound, I get the following error:</p>
  <blockquote>
  <p>ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
  ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
  ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.surround40.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
  ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
  ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
  ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.surround51.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
  ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.surround71.0:CARD=0' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
  ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958 ALSA
  lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA
  lib confmisc.c:1286:(snd_func_refer) Unable to find definition
  'cards.bcm28<br />
  35.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2' ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned
  err<br />
  or: No such file or directory ALSA lib conf.c:4738:(snd_config_expand)
  Evaluate error: No such file or directo<br />
  ry ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif ALSA
  lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect:
  Connection r<br />
  efused</p>
  <p>ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect:
  Connection r<br />
  efused</p>
  <p>connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such
  file or dir<br />
  ectory)</p>
  </blockquote>
  <p>My output of <code>aplay -l</code> is :</p>
  <pre><code>**** List of PLAYBACK Hardware Devices ****
  card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
    Subdevices: 8/8
    Subdevice #0: subdevice #0
    Subdevice #1: subdevice #1
    Subdevice #2: subdevice #2
    Subdevice #3: subdevice #3
    Subdevice #4: subdevice #4
    Subdevice #5: subdevice #5
    Subdevice #6: subdevice #6
    Subdevice #7: subdevice #7
  card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
  card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB Audio]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
  </code></pre>
  <p>My output of <code>.asoundrc</code> is :</p>
  <pre><code>pcm.!default {
    type asym
     playback.pcm {
       type plug
       slave.pcm &quot;hw:0,0&quot;
     }
     capture.pcm {
       type plug
       slave.pcm &quot;hw:1,0&quot;
     }
  }
  </code></pre>
  <p>I have been trying various ways to tackle the problem, but to no avail.</p>
  <p>Any help or directions would be appreciated.</p>