All of lore.kernel.org
 help / color / mirror / Atom feed
* patch for hammerfall driver
@ 2003-02-02 21:37 Paul Davis
  2003-02-03  9:57 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Davis @ 2003-02-02 21:37 UTC (permalink / raw)
  To: alsa-devel

i don't know how we ended up with such incorrect values for the
period/buffer size limits, but this corrects them. this previously
prevented applications from requesting a period size of 8192
frames. an identical patch is needed for the hdsp driver. i'll post
one tomorrow if jaroslav or takashi don't want to just hand-apply this
one. let me know.

--p


Index: rme9652.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme9652/rme9652.c,v
retrieving revision 1.22
diff -u -u -r1.22 rme9652.c
--- rme9652.c   14 Jul 2002 21:01:18 -0000      1.22
+++ rme9652.c   2 Feb 2003 21:31:49 -0000
@@ -2279,9 +2279,9 @@
        rate_max:               96000,
        channels_min:           10,
        channels_max:           26,
-       buffer_bytes_max:       1024*1024,
-       period_bytes_min:       1,
-       period_bytes_max:       1024*1024,
+       buffer_bytes_max:       RME9652_CHANNEL_BUFFER_BYTES * 26,
+       period_bytes_min:       (64 * sizeof(int)) * 10,
+       period_bytes_max:       (8192 * sizeof(int)) * 26,
        periods_min:            2,
        periods_max:            2,
        fifo_size:              0,
@@ -2302,9 +2302,9 @@
        rate_max:               96000,
        channels_min:           10,
        channels_max:           26,
-       buffer_bytes_max:       1024*1024,
-       period_bytes_min:       1,
-       period_bytes_max:       1024*1024,
+       buffer_bytes_max:       RME9652_CHANNEL_BUFFER_BYTES *26,
+       period_bytes_min:       (64 * sizeof(int)) * 10,
+       period_bytes_max:       (8192 * sizeof(int)) * 26,
        periods_min:            2,
        periods_max:            2,
        fifo_size:              0,



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-04 11:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-02 21:37 patch for hammerfall driver Paul Davis
2003-02-03  9:57 ` Takashi Iwai
     [not found]   ` <3E3E6079.2050905@monmouth.com>
2003-02-03 12:40     ` Takashi Iwai
2003-02-03 14:49       ` Paul Davis
2003-02-04 11:10         ` Takashi Iwai

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.