On Fri, 10 Jan 2003, Troy Benjegerdes wrote: > > > results in alsa-kernel/core/pcm_memory.c:alloc_pcm_pages() getting > > > called with substream->dma_type= SNDRV_PCM_DMA_TYPE_UNKNOWN. > > > > oh, you found a bug :) it was introduced due to my last change to pcm > > pre-allocator. now fixed on cvs. > > > > thanks for your report! > > Okay, now we're getting somewhere.. I'm not getting any errors anymore. > The reciever (hardware AC3 decoder) is recognizing I'm sending it > something other than PCM, but no sound comes out and none of the dolby > digital or other indicators light up. Any ideas?
Please, use this patch and try to change '#if 0' to '#if 1' until it works (any combination): Index: ac3spdif.c =================================================================== RCS file: /cvsroot/alsa/alsa-tools/ac3dec/ac3spdif.c,v retrieving revision 1.4 diff -u -r1.4 ac3spdif.c --- ac3spdif.c 8 Jan 2003 11:30:04 -0000 1.4 +++ ac3spdif.c 11 Jan 2003 09:52:32 -0000 @@ -154,10 +154,15 @@ done_banner = 1; } -#ifndef _a_b_c_d_e_f /* WORDS_BIGENDIAN */ +#if 0 // extract_ac3 seems to write swabbed data swab(&buf[10], &buf[10], syncinfo.frame_size * 2 - 2); #endif + +#if 0 + swab(buf, buf, (syncinfo.frame_size * 2 - 2) + 10); +#endif + res = output_play((short *)buf, BLOCK_SIZE / 2 / 2); /* 2 channels, 16-bit samples */ ret = ret < 0 ? ret : res; bzero(buf,BLOCK_SIZE); Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project, SuSE Labs ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel