To configure audio of soundcard I did the following settings:
sudo nano /etc/modprobe.d/alsa-base.conf
I commented options snd-usb-audio index=-2
and added options snd_bcm2835 index=1
so speaker was properly working with usb sound card
now for microphone configuration I went to
sudo nano /etc/asound.conf
and did the following changes:
pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}
ctl.!default {
type hw
card 1
}
using arecord only noise is recorded and also i am not able to play files through speakers.
I am using Storite 7.1 Channel USB External Sound Card Audio Adapter With Mic and r-pi B+ model