Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Szekeres István" <szekeres@iii.hu>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: USB headset problem
Date: Tue, 18 Oct 2005 21:46:08 +0200	[thread overview]
Message-ID: <20051018194608.GA23908@pulsussoft.hu> (raw)
In-Reply-To: <s5hhdbgz6m2.wl%tiwai@suse.de>

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 <szekeres@iii.hu>

--- 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

  reply	other threads:[~2005-10-18 19:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-14  5:43 USB headset problem Szekeres István
2005-10-14  8:00 ` Martin Habets
2005-10-14  9:22   ` Szekeres István
2005-10-14  8:07 ` Clemens Ladisch
2005-10-14  9:17   ` Szekeres István
2005-10-14 10:51     ` Clemens Ladisch
2005-10-14 20:21       ` Szekeres István
2005-10-14 22:05         ` Szekeres István
2005-10-17 10:27           ` Takashi Iwai
2005-10-17 12:40             ` Szekeres István
2005-10-17 12:10               ` Takashi Iwai
2005-10-18 19:46                 ` Szekeres István [this message]
2005-10-18 19:13                   ` Lee Revell
2005-10-19  9:28                     ` Takashi Iwai
2005-10-19  9:40                       ` Takashi Iwai
2005-10-17  7:04         ` Clemens Ladisch
  -- strict thread matches above, loose matches on Subject: below --
2008-05-16 22:35 usb " Anselm Reisner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051018194608.GA23908@pulsussoft.hu \
    --to=szekeres@iii.hu \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox