From: Takashi Iwai Subject: Re: stateful reconnect with snd-usb-audio Date: Thu, 22 Jun 2006 14:51:32 +0200 Message-ID: References: <8d4807d50606121405n51edef2au3de163b01029aaf5@mail.gmail.com> <8d4807d50606141020w8e29a50t6b97528d7e82a0c5@mail.gmail.com> <8d4807d50606150304o5ae2ccd0xf7af2f4ccf38ec4c@mail.gmail.com> <8d4807d50606170123k51bf2db5ma673b071c8e18d4b@mail.gmail.com> <8d4807d50606170201t4922fd68x9fed2694657ae594@mail.gmail.com> <8d4807d50606212320t29d03c02sdee19658527b013a@mail.gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <8d4807d50606212320t29d03c02sdee19658527b013a@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Sam Revitch Cc: alsa-devel@lists.sourceforge.net, Jaroslav Kysela List-Id: alsa-devel@alsa-project.org At Wed, 21 Jun 2006 23:20:29 -0700, Sam Revitch wrote: > > On 6/20/06, Takashi Iwai wrote: > > The patch still has a problem with ac97_codec.c that has also own > > lowlevel device. opl3 and opl4 have to be fixed. > > > > Looking through the patch, I found that unregister callback can be > > replaced simply with disconnect + free. This will remove the > > complexity a bit. I'll try to make another patch based on yours. > > Thanks for looking at this and fixing it, and sorry to take so long to > get back to ya. I tried out the patch that you sent out earlier and > it definitely behaves correctly when pulling cables with my USB card > and also seems to pass the alsasound restart loop test. Eliminating > dev_unregister seems appropriate, as dev_disconnect was being called > every time anyway and the former certainly became redundant. IMHO the > patch you sent is complete or very close. Good. I'll commit it (splitted to separate patches) to HG repo later after releasing 1.0.12rc1. Also snd_card_free_in_thread() will be replaced with snd_card_free_when_closed(). thanks, Takashi All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642