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

At Wed, 15 Dec 2004 15:32:34 +0100,
Karsten Wiese wrote:
> 
> > You can get the card number from ctl or pcm instance.
> > Check snd_*_get_card() functions.
> > 
> We haven't any of those yet, as hwdep device is the first one to be opened.

hwdep has also one - snd_hwdep_info_get_card().

> So we could change jackd's usx2y driver's parameters a little:
>  $ jackd -dusx2y -c1
> or
>  $ jackd -dusx2y --card 1
> in the jackd usx2y driver we would sprintf the real alsa devicenames like this:
> char hwdep_devicename[8];
> char pcm_devicename[8];
> int card; //holds card nr parameter
> 
> sprintf(hwdep_devicename, "hw:%i,1", card);
> sprintf(pcm_devicename, "hw:%i,2", card);
> 
> thus we'd hide away the complications from the commandline.

Yes, this looks much easier (also good for future changes of hwdep/pcm
assignment).


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:38 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
2004-12-15 14:32               ` Karsten Wiese
2004-12-15 14:38                 ` Takashi Iwai [this message]
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=s5hr7lrr5hf.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.