From: Matthieu CASTET <matthieu.castet@parrot.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: ALSA devel <alsa-devel@alsa-project.org>
Subject: Re: Salsa-lib : doesn't handle multiple device
Date: Tue, 30 Sep 2008 15:09:57 +0200 [thread overview]
Message-ID: <48E22525.1070607@parrot.com> (raw)
In-Reply-To: <s5hod25hjxq.wl%tiwai@suse.de>
Takashi Iwai a écrit :
> At Tue, 30 Sep 2008 14:11:30 +0200,
> Matthieu CASTET wrote:
>> Hi,
>>
>> it seems there is a bug in card parsing (snd_card_get_index).
>>
>> If the device name is "hw:0,1", then in _snd_dev_get_device,
>> snd_card_get_index will be called with "0,1".
>>
>> But snd_card_get_index expect to be called with only the card string
>> number or name : it first check that the string is a number [1], and
>> then try for each card to compare with the card name [2]
>
> Indeed.
>
>> I don't know what suppose to do snd_card_get_index, but I thing a easy
>> way to fix it is to pass to snd_card_get_index only the string before
>> the first comma.
>
> I think the patch below is much simpler.
> Could you check whether this works?
thanks, this patch also work.
Matthieu
next prev parent reply other threads:[~2008-09-30 13:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-30 12:11 Salsa-lib : doesn't handle multiple device Matthieu CASTET
2008-09-30 12:55 ` Takashi Iwai
2008-09-30 13:09 ` Matthieu CASTET [this message]
2008-09-30 13:41 ` Takashi Iwai
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=48E22525.1070607@parrot.com \
--to=matthieu.castet@parrot.com \
--cc=alsa-devel@alsa-project.org \
--cc=tiwai@suse.de \
/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.