0

Use Amp2 with USB Audio Adapter?

I've built an AlexaPi (Amazon Alexa) and got it all working with a USB Audio Adapter (mic and headphone jacks). All works fine.

However I wanted to drive some external speakers for music and so bought the Amp2. If I set-up the Amp 2 then I can hear sounds over my speakers but then the USB Audio Adapter seems to get disabled, certainly the mic no longer works.

In the set-up of AlexaPi a .asoundrc file is created, this is mine:

pcm.!default {
  type asym
  capture.pcm "mic"
  playback.pcm "speaker"
}
pcm.mic {
  type plug
  slave {
    pcm "hw:1,0"
  }
}
pcm.speaker {
  type plug
  slave {
    pcm "hw:0,0"
  }
}

My USB Audio Adapter is device 1,0 the Amp2 is device 0,0


I've also had to remove dtparam=audio=on and add dtoverlay=hifiberry-dacplus to the /boot/config.txt file as without this the Amp2 wouldn't work.

I only want the USB Audio Adapter to be used for the Mic input, all sound output should go to the Amp2. Is there a way of specifying a different sound card for input and output?

0 comments

Please sign in to leave a comment.