All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Francisco Moraes <fmoraes74@netzero.net>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Emu10k1x driver
Date: Sun, 16 May 2004 16:59:08 +0200	[thread overview]
Message-ID: <s5hbrkol8oz.wl@alsa2.suse.de> (raw)
In-Reply-To: <40A68C0C.4030308@netzero.net>

At Sat, 15 May 2004 17:30:52 -0400,
Francisco Moraes wrote:
> 
> Takashi Iwai wrote:
> 
> >>Is your patch for kernel 2.6?
> >>    
> >>
> >
> >to the latest ALSA cvs.
> >you'd better to get the CVS tree (either via cvs or snapshot).
> >it already incldues emu10k1x.c.
> >  
> >
> I got it from there but your changes to add the module params don't 
> compile on my system (Red Hat Fedora Core 1 - 2.4.22-2188 kernel).

did you rebuild via cvscompile script?


> There is also a problem with mono streams, so the hw params need to 
> indicate that only stereo is supported.

that's fine.  many hardwares support only stereo indeed.

>  Also, is there any advantage in 
> enabling both interrupts in the buffer (loop and half loop)?

yes, definitely.  (IIRC, it IS enabled?)
otherwise the app won't work proprely in most cases.
remember that the sound system is driven by interrupts.
an irq per buffer means that we have only one chance to update the
data in the accurate timinig.

>  Also, how 
> important is the definition of period bytes? It seems it should be the 
> same as the buffer size.

no, it should be a half of the buffer size.

>  Maybe you can just explain it to me how it 
> relates to the total buffer size being used.

the buffer size is the total size of the memory space you callocate.
when the amount of processed PCM data becomes to the period size, an
irq is issued.  in the case of emu10k1x, hence, period size is ALWAYS
buffer size / 2 (as long as half-interrupt bit is set).


Takashi


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click

  reply	other threads:[~2004-05-16 14:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-15  1:30 Emu10k1x driver fmoraes74
2004-05-15 13:18 ` Takashi Iwai
2004-05-15 21:30   ` Francisco Moraes
2004-05-16 14:59     ` Takashi Iwai [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-05-14 17:02 fmoraes74
     [not found] <20040514.045055.28422.197543@webmail10.nyc.untd.com>
2004-05-14 13:35 ` Takashi Iwai
2004-05-14 23:49   ` Francisco Moraes
2004-05-12 18:36 fmoraes74
2004-05-13 13:17 ` Takashi Iwai
2004-05-12  0:31 fmoraes74
2004-05-12  2:16 ` James Courtier-Dutton
2004-05-12  2:46   ` Francisco Moraes
2004-05-14 16:55   ` Takashi Iwai
2004-05-14 17:14     ` James Courtier-Dutton
2004-05-14 17:32       ` Takashi Iwai
2004-05-14 18:48         ` James Courtier-Dutton
2004-05-12 11:05 ` 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=s5hbrkol8oz.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=fmoraes74@netzero.net \
    /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.