From: Takashi Iwai Subject: Re: stateful reconnect with snd-usb-audio Date: Mon, 19 Jun 2006 13:04:50 +0200 Message-ID: References: <8d4807d50606121405n51edef2au3de163b01029aaf5@mail.gmail.com> <8d4807d50606141020w8e29a50t6b97528d7e82a0c5@mail.gmail.com> <8d4807d50606150304o5ae2ccd0xf7af2f4ccf38ec4c@mail.gmail.com> <8d4807d50606170123k51bf2db5ma673b071c8e18d4b@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: <8d4807d50606170123k51bf2db5ma673b071c8e18d4b@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 Sat, 17 Jun 2006 01:23:23 -0700, Sam Revitch wrote: > > Now, there has got to be some way to make usb-audio retain its > snd_card structure at disconnect time. Perhaps it could optionally > leave things hanging for some period of time before calling > snd_card_disconnect(), leaving a window for the same device to be > reconnected...? Does this sound too kludgy? The principle question about this is how to determine "some period". One hour, one day, one week or one month? It cannot be decided uniquely. Also, from the architecture POV, the determination of suspend/resume should be done in the usb core side rather than in each driver. Each driver can implement suspend/resume callback easily. Takashi