On Mon, 17 Nov 2003, Nima Ghassemi wrote:
> hi,
>
> there's some problem which I tracked down to
>
> ~alsa-driver/sound/core/control.c
>
> int snd_ctl_add(snd_card_t * card, snd_kcontrol_t * kcontrol)
> {
> snd_ctl_elem_id_t id;
> unsigned int idx;
>
> snd_runtime_check(card != NULL && kcontrol != NULL, return -EINVAL);
> snd_assert(kcontrol->info != NULL, return -EINVAL);
> id = kcontrol->id;
> down_write(&card->controls_rwsem);
> if (_ctl_find_id(card, &id)) {
> up_write(&card->controls_rwsem);
> snd_ctl_free_one(kcontrol);
> return -EBUSY;
> }
> [...]
>
> the problem lies in _ctl_find_id (card, &id). by commenting the if-block
> out, everything (as well
> as the sound-card) works perfectly (as far as I could test it...).
Can you add some printk's to determine which id is causing the problem so
we can fix it? Thanks.
Jaroslav
-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel