From mboxrd@z Thu Jan 1 00:00:00 1970 From: Szekeres =?iso-8859-2?Q?Istv=E1n?= Subject: Re: USB headset problem Date: Tue, 18 Oct 2005 21:46:08 +0200 Message-ID: <20051018194608.GA23908@pulsussoft.hu> References: <20051014091716.GA30524@pulsussoft.hu> <20051014202153.GA1428@pulsussoft.hu> <20051014220539.GA1818@pulsussoft.hu> <20051017124011.GA16144@pulsussoft.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Takashi Iwai Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org Hi, > > I already tried aoss, the result is a big fat SIGSEGV. > > That's more interesting. > Can you get a stack trace via gdb? I have a stack trace but I think a patch for the solution is more useful ;-) I don't know if it is necessary or useful, but: Signed-off-by: Szekeres Istvan --- alsa-oss.c~ 2005-10-18 21:04:21.000000000 +0200 +++ alsa-oss.c 2005-10-18 21:04:21.000000000 +0200 @@ -344,10 +344,13 @@ int fcntl(int fd, int cmd, ...) { va_list args; void *arg; + if (!initialized) + initialize(); + va_start(args, cmd); arg = va_arg(args, void *); va_end(args); if (fd < 0 || fd >= open_max || fds[fd] == NULL) return _fcntl(fd, cmd, arg); Next thing is to compare the kernel oss emulation with aoss on a non-working kernel. Best regards, Szekeres Istvan ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl