Problems with USB sound card

Unofficial support for the KXStudio Linux distribution and applications.
More info at http://kxstudio.linuxaudio.org/

Moderators: khz, MattKingUSA

Pablo
Established Member
Posts: 1269
Joined: Thu Apr 17, 2008 9:57 pm

Re: Problems with USB sound card

Postby Pablo » Sun Oct 07, 2012 7:37 pm

Try starting jack in capture only mode, then run this command in a terminal:

alsa_out -dhw:PCH,0

By the way, is alsa_out (or Fons' similar utility) integrated in Cadence?

icedfiend
Established Member
Posts: 14
Joined: Wed Oct 03, 2012 2:41 pm

Re: Problems with USB sound card

Postby icedfiend » Sun Oct 07, 2012 10:44 pm

How can I start jack in capture-only mode? Selectiong only the input device? or is there any special command?

icedfiend
Established Member
Posts: 14
Joined: Wed Oct 03, 2012 2:41 pm

Re: Problems with USB sound card

Postby icedfiend » Mon Oct 08, 2012 2:35 pm

I unchecked the Duplex Mode in Cadence, write down hw:2, hw:2,0, hw:Device or hw:Device,0 in the Device/Interface box.

The command alsa_out -dhw:PCH,0 always return "Capture open error: Device or resource busy"

Well, my main problem is already solved (recording through the guitar interface), and although I can't monitor anything this way, I don't mind sticking to any of my other interfaces. It would be nice to be able to get to solve this last problem though :P

Pablo
Established Member
Posts: 1269
Joined: Thu Apr 17, 2008 9:57 pm

Re: Problems with USB sound card

Postby Pablo » Mon Oct 08, 2012 5:58 pm

lsa_out -dhw:PCH,0 always return "Capture open error: Device or resource busy"


Try closing firefox, or whatever. This might suffice.

To see what process is using the soundcard, you can use:

fuser -u /dev/snd/pcmC0D0p

(this is card 0, device 0, pcm playback)

You will see something like:
/dev/snd/pcmC0D0p: 3812m(pablo)

Then do a:

kill 3812

or whatever process ID number

Pablo
Established Member
Posts: 1269
Joined: Thu Apr 17, 2008 9:57 pm

Re: Problems with USB sound card

Postby Pablo » Mon Oct 08, 2012 6:04 pm

Pablo wrote:
By the way, is alsa_out (or Fons' similar utility) integrated in Cadence?
[quote=falktx]There is something related yes, but it's only for alsa-audio into jack (the asoundrc + snd-aloop trick).[/quote]

That is for applications, isn't it? It would be nice selecting additional audio cards from within Cadence :)

icedfiend
Established Member
Posts: 14
Joined: Wed Oct 03, 2012 2:41 pm

Re: Problems with USB sound card

Postby icedfiend » Wed Oct 10, 2012 4:17 pm

Even with many programs open (Opera Browser, Spotify, Kopete, etc) the only program listed using that interface (integrated sound card) is jackdbus, so killing it stops jack completly, so this doesn't seem to work either...

icedfiend
Established Member
Posts: 14
Joined: Wed Oct 03, 2012 2:41 pm

Re: Problems with USB sound card

Postby icedfiend » Fri Nov 09, 2012 11:30 am

Sorry for bumping this, but I found something interesting while reading the Ardour tutorial/manual

Currently, JACK can only communicate with one hardware audio device at a time.


Soon after I googled a little bit since the tutorial got a few years on his back already to see if there had been any change and found out this

So it seems that it's possible to do what I was looking for, but not without consecuences and a lot of manual tweaking. Guess I will stick to a single interface and get some "good" audio monitors :P

User avatar
English Guy
Established Member
Posts: 472
Joined: Wed Oct 17, 2012 7:28 pm
Location: England

Re: Problems with USB sound card

Postby English Guy » Sun Nov 11, 2012 6:10 am

icedfiend wrote:On the bright side (thing that I forgot to test yesterday), setting up the guitar in the Device/Interface as hw:Device allowed me to record it, but I can't monitor anything.


I had a similar problem recently. I got round it by using qjackctl to connect the input to 'system playback' to get monitor.

icedfiend
Established Member
Posts: 14
Joined: Wed Oct 03, 2012 2:41 pm

Re: Problems with USB sound card

Postby icedfiend » Sun Nov 18, 2012 8:12 pm

Ok... I re-read this topic and noticed (again) what was mentioned about alsa_in command.

Easy enough I googled a bit, read the man page and wrote this:

Code: Select all

alsa_in -j guitar -d hw:Device


And voila... My guitar now shows up on Carla as a new device, I can monitor it through my laptop integrated soundcard, and the best of all, alsa_in can detect the best configuration for the device. I just had to tweak it a bit to point the guitar input to rakarack.

Thanks again for the great support guys :)


Return to “KXStudio Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests