From: Takashi Iwai <tiwai@suse.de>
To: Niklas Werner <bergtroll@gmx.li>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: usb-audio
Date: Tue, 28 Oct 2003 19:25:41 +0100 [thread overview]
Message-ID: <s5had7l43tm.wl@alsa2.suse.de> (raw)
In-Reply-To: <s5hwuap4hk6.wl@alsa2.suse.de>
[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]
At Tue, 28 Oct 2003 14:28:57 +0100,
I wrote:
>
> > gdb:
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 16384 (LWP 28218)]
> > 0x0fd47d64 in snd_pcm_linear_convert () from /usr/lib/libasound.so.2
> > (gdb) bt
> > #0 0x0fd47d64 in snd_pcm_linear_convert () from /usr/lib/libasound.so.2
> > #1 0x0fd47b00 in snd_pcm_linear_convert () from /usr/lib/libasound.so.2
> > #2 0x0fd4643c in snd_pcm_plugin_write_areas () from /usr/lib/
> > libasound.so.2
> > #3 0x0fd3ce54 in snd_pcm_write_areas () from /usr/lib/libasound.so.2
> > #4 0x0fd467bc in snd_pcm_plugin_writei () from /usr/lib/libasound.so.2
> > #5 0x0fd3615c in snd_pcm_writei () from /usr/lib/libasound.so.2
> > #6 0x10078718 in outputaudio ()
> > #7 0x1007837c in outputaudio ()
> > #8 0x1002ed74 in main ()
>
> hmm, then something wrong in the converter routine...
> needs to take a deeper look.
i found a bug regarding the plugin but it must be another bug from the
above problem.
segfault is a bit puzzling. could you try the attached patch to see
the parameters? or, even better, check the values in gdb's
backtrace.
also, what happens if running mplayer with mmap option, i.e.
% mplayer -ao alsa9:emi26:mmap
?
Takashi
[-- Attachment #2: linear-debug.dif --]
[-- Type: application/octet-stream, Size: 999 bytes --]
Index: alsa-lib/src/pcm/pcm_linear.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-lib/src/pcm/pcm_linear.c,v
retrieving revision 1.41
diff -u -r1.41 pcm_linear.c
--- alsa-lib/src/pcm/pcm_linear.c 25 Jul 2003 16:56:36 -0000 1.41
+++ alsa-lib/src/pcm/pcm_linear.c 28 Oct 2003 18:23:41 -0000
@@ -167,6 +167,7 @@
#undef CONV_LABELS
void *conv = conv_labels[convidx];
unsigned int channel;
+ fprintf(stderr, "XXX linear_convert: dst=%p/%d, src=%p/%d, ch=%d, frames=%d, idx=%d\n", dst_areas, (int)dst_offset, src_areas, (int)src_offset, channels, (int)frames, convidx);
for (channel = 0; channel < channels; ++channel) {
const char *src;
char *dst;
@@ -339,6 +340,8 @@
linear->conv_idx = snd_pcm_linear_convert_index(linear->sformat,
format);
}
+ fprintf(stderr, "XXX linear: hw_params getput=%d (get=%d,put=%d,conv=%d)\n",
+ linear->use_getput, linear->get_idx, linear->put_idx, linear->conv_idx);
return 0;
}
next prev parent reply other threads:[~2003-10-28 18:25 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-27 18:03 usb-audio Antonio Willy Malara
2003-10-27 18:16 ` usb-audio Takashi Iwai
2003-10-27 19:53 ` usb-audio Antonio Willy Malara
2003-10-28 10:11 ` usb-audio Takashi Iwai
2003-10-28 10:41 ` usb-audio Niklas Werner
2003-10-28 11:10 ` usb-audio Takashi Iwai
2003-10-28 11:48 ` usb-audio Niklas Werner
2003-10-28 12:13 ` usb-audio Takashi Iwai
2003-10-28 12:42 ` usb-audio Niklas Werner
2003-10-28 13:28 ` usb-audio Takashi Iwai
2003-10-28 18:25 ` Takashi Iwai [this message]
2003-10-28 19:18 ` usb-audio Niklas Werner
2003-10-29 18:24 ` usb-audio Takashi Iwai
2003-10-29 22:26 ` usb-audio Niklas Werner
2003-10-30 12:17 ` usb-audio Takashi Iwai
2003-10-30 12:42 ` usb-audio Niklas Werner
2003-10-30 19:46 ` usb-audio Takashi Iwai
2003-10-31 8:23 ` usb-audio Niklas Werner
2003-10-31 11:02 ` usb-audio Takashi Iwai
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=s5had7l43tm.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@lists.sourceforge.net \
--cc=bergtroll@gmx.li \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.