All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <syrjala@sci.fi>
To: alsa-devel@lists.sourceforge.net
Cc: perex@alsa-project.org
Subject: Simple instruments w/ GUS
Date: Tue, 7 May 2002 06:18:12 +0300	[thread overview]
Message-ID: <20020507061812.A8585@sci.fi> (raw)

Ok this is now the third message I've sent about this issue. Jaroslav can
you please say something.

I've written an ALSA sequencer driver for MikMod. It's based on code from
alsamod. The problem is that it won't make any sound. I'm using a GUS
PnP w/ 16 MB. The code is at "http://www.saunalahti.fi/~syrjala/alsa/"

I can open the sequencer, allocate a queue and subscribe to the Interwave
port. Sample loading/unloading seems to work ok.

$ cat /proc/asound/GusPnP/gusmem 
8-bit banks       : 
    0x000000 (4096k),0x400000 (4096k),0x800000 (4096k),0xc00000 (4096k)
16-bit banks      : 
    0x000000 (4096k),0x400000 (4096k),0x800000 (4096k),0xc00000 (4096k)
Block 0 at 0xcbcab394 onboard 0x400000 size 9312 (0x2460):
  Flags           :
  Owner           : SIMPLE wave
Block 1 at 0xcbcab3d4 onboard 0x402460 size 10354 (0x2872):
  Flags           :
  Owner           : SIMPLE wave
...
  Total: memory = 16777216, used = 127016, free = 16650200


Subscribtion works.

$ cat /proc/asound/seq/clients
...
Client  65 : "AMD InterWave" [Kernel]
  Port   0 : "AMD InterWave port 0" (-We-)
    Connected From: 0:1, 128:0
  Port   1 : "AMD InterWave port 1" (-We-)
  Port   2 : "AMD InterWave port 2" (-We-)
  Port   3 : "AMD InterWave port 3" (-We-)
Client 128 : "MikMod" [User]
  Port   0 : "Output" (rwe-)
    Connecting To: 65:0
  Output pool :
    Pool size          : 500
    Cells in use       : 0
    Peak cells in use  : 1
    Alloc success      : 6709
    Alloc failures     : 0
  Input pool :
    Pool size          : 200
    Cells in use       : 0
    Peak cells in use  : 1
    Alloc success      : 13
    Alloc failures     : 0


Timer is running with the right BPM. Using the system timer.

$ cat /proc/asound/seq/queues 
queue 0: [Queue-0]
owned by client    : 128
lock status        : Locked
queued time events : 0
queued tick events : 0
timer state        : Running
timer PPQ          : 96
current tempo      : 480000
current BPM        : 125
current time       : 1.500000000 s
current tick       : 300


But I don't get any sound. It doesn't even generate interrupts.

$ cat /proc/asound/GusPnP/gusirq 
midi out = 0
midi in = 0
timer1 = 0
timer2 = 0
dma write = 0
dma read = 0
voice lost = 0
voice 0: wave = 0, volume = 0
voice 1: wave = 0, volume = 0
voice 2: wave = 0, volume = 0
...


So what's the problem? Is the driver broken or is it my code? I know this
stuff used to work at some point with alsamod but may the API changes or
whatever broke it.

-- 
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net

                 reply	other threads:[~2002-05-07  3:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20020507061812.A8585@sci.fi \
    --to=syrjala@sci.fi \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@alsa-project.org \
    /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.