All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dino Puller <dino@e4a.it>
To: Takashi Iwai <tiwai@suse.de>, alsa-devel@lists.sourceforge.net
Subject: Re: Surround example?
Date: Mon, 21 Nov 2005 17:57:50 +0100	[thread overview]
Message-ID: <4381FC8E.8060404@e4a.it> (raw)
In-Reply-To: <s5hr79anvrt.wl%tiwai@suse.de>

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 <dino@e4a.it>
>>To: 	Takashi Iwai <tiwai@suse.de>
>>References: 	<437CFAE5.5080908@e4a.it> <437DC4D3.3050900@e4a.it> 
>><s5hoe4ip00t.wl%tiwai@suse.de> <437DDD5E.8060405@e4a.it> 
>><s5hlkzmoxxm.wl%tiwai@suse.de>
>>
>>
>>
>>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?

bye,
   Dino




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

  reply	other threads:[~2005-11-21 16:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-19  9:26 Surround example? Dino Puller
2005-11-21 10:24 ` Takashi Iwai
2005-11-21 16:57   ` Dino Puller [this message]
2005-11-22 11:38     ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2005-11-17 21:49 Dino Puller
2005-11-18 12:10 ` Dino Puller
2005-11-18 13:18   ` Takashi Iwai
2005-11-18 13:55     ` Dino Puller
2005-11-18 14:03       ` 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=4381FC8E.8060404@e4a.it \
    --to=dino@e4a.it \
    --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 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.