[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] Patch for Linphone missing ALSA card

From: Thomas Reitmayr
Subject: [Linphone-developers] Patch for Linphone missing ALSA card
Date: Fri, 29 Dec 2006 11:13:10 -0800 (PST)

Hi Simon,
My system consists of an embedded device + a few USB sound adapters, one of 
which is my handset. To distinguish between them I have fixed ALSA card numbers 
assigned to each of them. This however means that unplugging one of the cards 
may create a "hole" in the card number sequence.

Linphone 1.5.1 interprets this hole as the end of all available cards thus 
making it impossible for it to use card#1 while card#0 is unplugged.

The following patch removes this limitation. If it does not break things 
somewhere else, feel free to apply it to your sources.

--- linphone-1.5.1/mediastreamer2/src/alsa.c    2006-11-09 11:45:26.000000000 
+++ linphone-1.5.1-yea/mediastreamer2/src/alsa.c        2006-12-29 
19:05:18.000000000 +0100
@@ -448,8 +448,6 @@ static void alsa_card_detect(MSSndCardMa
                MSSndCard *card=alsa_card_new(i);
                if (card!=NULL)
-               else
-                       return;


Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]