From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: usb-audio Date: Tue, 28 Oct 2003 19:25:41 +0100 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20031027180300.GA5016@Zeryn> <200310281248.17285.bergtroll@gmx.li> <200310281342.15649.bergtroll@gmx.li> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: multipart/mixed; boundary="Multipart_Tue_Oct_28_19:25:41_2003-1" Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Niklas Werner Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org --Multipart_Tue_Oct_28_19:25:41_2003-1 Content-Type: text/plain; charset=US-ASCII 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 --Multipart_Tue_Oct_28_19:25:41_2003-1 Content-Type: application/octet-stream Content-Disposition: attachment; filename="linear-debug.dif" Content-Transfer-Encoding: 7bit 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; } --Multipart_Tue_Oct_28_19:25:41_2003-1-- ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/