Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Rui Nuno Capela <rncbc@rncbc.org>
Cc: Karsten Wiese <annabellesgarden@yahoo.de>,
	alsa-devel@lists.sourceforge.net
Subject: Re: snd-usb-usx2y 0.8.7 hwdep pcm oopses!
Date: Wed, 15 Dec 2004 15:12:04 +0100	[thread overview]
Message-ID: <s5hy8fzr6q3.wl@alsa2.suse.de> (raw)
In-Reply-To: <46792.195.245.190.94.1103119505.squirrel@195.245.190.94>

At Wed, 15 Dec 2004 14:05:05 -0000 (WET),
Rui Nuno Capela wrote:
> 
> Hi Karsten,
> 
> >   jackd -d usx2y -d hw:n,2 ... returns a 'resource busy' condition.
> >
> > Without the 0.8.7.1 patch, it works BUT iif n < 2; if n >= 2, I get the
> > 'hwdep' assertion failure on jackd; aplay crashes on either value of n.
> >
> > With the patch applied, I always get the "resource busy" error on 'jackd
> > -d usx2y -d hw:n,2 ...' and on 'aplay -D hw:n,2 ...'.
> >
> > So, the sacred question is: How can I make jackd to work with the "rawusb"
> > interface?
> >
> > Just a clueless question: does it need a newer version for the jackd usx2y
> > backend driver? I'm still using your's original one you've ever posted.
> > I've been maintaining it as a jack patch and can be found on my personal
> > home server (http://www.rncbc.org/usx2y/jack-0.99.35-usx2y.patch.gz).
> >
> 
> I found the culprid, almost for sure.
> 
> On jack/drivers/usx2y/usx2y_driver.c:2158, you may find there's this
> hardcoded:
> 
>     snd_hwdep_open(&driver->hwdep_handle, "hw:1,1", O_RDWR);
>                                            ^^^^^^
> 
> so I guess this could only work if snd-usb-usx2y is your second soundcard
> (index=1). Indeed it was on all my successful tests. That explains a lot
> of trouble.
> 
> Simple dummy question: how can I avoid that hardwiring, and fill in the
> proper soundcard index number n, as in "hw:n,1" ? In other words, how can
> I retrieve that number, given the alsa device name (e.g. str="hw:2,2")
> without going dirty as in sscanf(str, "hw:%d", &n); ?

You can get the card number from ctl or pcm instance.
Check snd_*_get_card() functions.


Takashi


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

  reply	other threads:[~2004-12-15 14:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-14  9:47 snd-usb-usx2y 0.8.7 hwdep pcm oopses! Rui Nuno Capela
2004-12-14 18:49 ` Karsten Wiese
2004-12-14 20:12   ` Rui Nuno Capela
     [not found]   ` <32821.192.168.1.5.1103069479.squirrel@192.168.1.5>
2004-12-15  0:17     ` Rui Nuno Capela
2004-12-15  1:15       ` Karsten Wiese
2004-12-15  9:30         ` Rui Nuno Capela
2004-12-15 14:05           ` Rui Nuno Capela
2004-12-15 14:12             ` Takashi Iwai [this message]
2004-12-15 14:32               ` Karsten Wiese
2004-12-15 14:38                 ` Takashi Iwai
2004-12-15 22:54                   ` Karsten Wiese
2004-12-16  0:41                     ` Rui Nuno Capela
2004-12-23 14:02                       ` [JACK-PATCH] Tascam US-X2Y hwdep pcm (aka rawusb) backend driver Rui Nuno Capela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hy8fzr6q3.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=annabellesgarden@yahoo.de \
    --cc=rncbc@rncbc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox