From: Takashi Iwai Subject: Re: Surround example? Date: Tue, 22 Nov 2005 12:38:42 +0100 Message-ID: References: <437EEFB6.6010801@e4a.it> <4381FC8E.8060404@e4a.it> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <4381FC8E.8060404@e4a.it> 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: Dino Puller Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Mon, 21 Nov 2005 17:57:50 +0100, Dino Puller wrote: > > Takashi Iwai wrote: > > >At Sat, 19 Nov 2005 10:26:14 +0100, > >Dino Puller wrote: > > > > > >> > >>-------- Original Message -------- > >>Subject: Re: [Alsa-devel] Surround example? > >>Date: Sat, 19 Nov 2005 10:25:34 +0100 > >>From: Dino Puller > >>To: Takashi Iwai > >>References: <437CFAE5.5080908@e4a.it> <437DC4D3.3050900@e4a.it> > >> <437DDD5E.8060405@e4a.it> > >> > >> > >> > >> > >>Takashi Iwai wrote: > >> > >> > >> > >>>At Fri, 18 Nov 2005 14:55:42 +0100, > >>>Dino Puller wrote: > >>> > >>> > >>> > >>> > >>>>Takashi Iwai wrote: > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>At Fri, 18 Nov 2005 13:10:59 +0100, > >>>>>Dino Puller wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Dino Puller wrote: > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>>Hi all, > >>>>>>> i'd like to code a surround player, but i haven't found any > >>>>>>>documentation about it, can you give me a link to a tutorial or an > >>>>>>>example or something? > >>>>>>> > >>>>>>>Thanks, > >>>>>>>Dino Puller > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>Ok now i've opened my surrond40 device but now what i have to change to > >>>>>>my snd_pcm_mmap_begin/snd_pcm_mmap_commit routine? Actully i can hear > >>>>>>noise only from front channels. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>Are you using 1.0.10-final? > >>>>> > >>>>> > >>>>>Takashi > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>No i'm using default alsalib that come with debian sid: 1.0.9 > >>>>are there any improvement or issue in 1.0.10 ? > >>>> > >>>> > >>>> > >>>> > >>>Yes. > >>> > >>> > >>>Takashi > >>> > >>> > >>> > >>> > >>> > >>> > >>Hmm i'm looking to pcm.c example but when i lunch > >>#./pcm -Dsurround40 -c4 -mdirect_interleaved > >>I obtain: > >> > >>Access type not available for playback: Invalid argument > >>Setting of hwparams failed: Invalid argument > >> > >> > > > >WORKSFORME. Which driver? > > > > > >Takashi > > > > > I'm using an Herculess Fortissimo II with a cs46xx driver. > Anyway i was looking for an example/documentation. > I've found that pcm.c is not correct for a mmaped play in surround mode: > we have to setting the device with SND_PCM_ACCESS_MMAP_COMPLEX flag and > pcm.c doesn't do it. For the remaining code pcm.c is right and nothing > change from 2 channels to 4 ones in terms of main loop. > I've found how alsa works, thanks. > Ah direct_loop (always in pcm.c) doesn't use the parameter areas, why > not to clean it out? Keeping the uniform function type is nice, IMO. The parameters are marked as ATTRIBUTE_UNUSED now on CVS. Takashi ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click