Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Tobias Hansen <Tobias.Hansen@physik.uni-hamburg.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH] snd-usb-us122l: added support for US-144
Date: Tue, 22 Sep 2009 15:14:05 +0200	[thread overview]
Message-ID: <s5hws3runoi.wl%tiwai@suse.de> (raw)
In-Reply-To: <4AB82D17.8090100@physik.uni-hamburg.de>

At Tue, 22 Sep 2009 03:49:11 +0200,
Tobias Hansen wrote:
> 
> @@ -443,6 +476,13 @@
>  	int err;
>  	struct us122l *us122l = US122L(card);
>  
> +	if (us122l->chip.dev->descriptor.idProduct == USB_ID_US144) {
> +		err = usb_set_interface(us122l->chip.dev, 0, 1);
> +		if (err) {
> +			snd_printk(KERN_ERR "usb_set_interface error \n");
> +			return false;
> +		}
> +	}
>  	err = usb_set_interface(us122l->chip.dev, 1, 1);
>  	if (err) {
>  		snd_printk(KERN_ERR "usb_set_interface error \n");

Strictly speaking, the first interface should be reset in the error
path...

> @@ -530,7 +573,7 @@
>  	if (err < 0)
>  		return err;
>  
> -	snd_card_set_dev(card, &intf->dev);
> +	snd_card_set_dev(card, &device->dev);
>  	if (!us122l_create_card(card)) {
>  		snd_card_free(card);
>  		return -EINVAL;

Any reason to change this again?
This actually reverts the fix in the upstream:
	3f5d3465be8f6e04f43d9b6d543fe28d4be07d78
	ALSA: usx2y - reparent sound device

Also, please give your sign-off.  See
$LINUX/Documentation/SubmittingPatches  for details.
Could you repost with it?


thanks,

Takashi

  reply	other threads:[~2009-09-22 13:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-22  1:49 [PATCH] snd-usb-us122l: added support for US-144 Tobias Hansen
2009-09-22 13:14 ` Takashi Iwai [this message]
2009-09-22 13:56   ` Tobias Hansen
2009-09-22 14:04     ` Takashi Iwai
2009-09-22 14:52       ` Tobias Hansen
2009-09-22 20:14         ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2009-09-27 17:40 Eric Luiggi
2009-09-29  7:24 ` Takashi Iwai
2009-10-12 14:33 Tobias Hansen

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=s5hws3runoi.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=Tobias.Hansen@physik.uni-hamburg.de \
    --cc=alsa-devel@alsa-project.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