All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Revell <rlrevell@joe-job.com>
To: alsa-devel <alsa-devel@lists.sourceforge.net>
Cc: Takashi Iwai <tiwai@suse.de>,
	James Courtier-Dutton <James@superbug.co.uk>
Subject: Re: [PATCH 4/8] emu10k1 multichannel support
Date: Tue, 15 Feb 2005 19:47:18 -0500	[thread overview]
Message-ID: <1108514838.3772.33.camel@krustophenia.net> (raw)
In-Reply-To: <1108514291.3772.19.camel@krustophenia.net>

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

On Tue, 2005-02-15 at 19:38 -0500, Lee Revell wrote:
> This series of patches adds a 16 channel non interleaved PCM playback
> device, hw:x,3, to the emu10k1 driver.  It also adds support for the
> newly discovered per channel half loop interrupt.

Add support for half loop interrupt.

Signed-Off-By: Lee Revell <rlrevell@joe-job.com>

[-- Attachment #2: io.c.patch --]
[-- Type: text/x-patch, Size: 2054 bytes --]

Index: alsa-v009-test/alsa-kernel/pci/emu10k1/io.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/emu10k1/io.c,v
retrieving revision 1.8
diff -u -r1.8 io.c
--- alsa-v009-test/alsa-kernel/pci/emu10k1/io.c	22 Nov 2004 18:36:05 -0000	1.8
+++ alsa-v009-test/alsa-kernel/pci/emu10k1/io.c	15 Feb 2005 23:51:23 -0000
@@ -170,6 +170,63 @@
 	spin_unlock_irqrestore(&emu->emu_lock, flags);
 }
 
+void snd_emu10k1_voice_half_loop_intr_enable(emu10k1_t *emu, unsigned int voicenum)
+{
+	unsigned long flags;
+	unsigned int val;
+
+	spin_lock_irqsave(&emu->emu_lock, flags);
+	/* voice interrupt */
+	if (voicenum >= 32) {
+		outl(HLIEH << 16, emu->port + PTR);
+		val = inl(emu->port + DATA);
+		val |= 1 << (voicenum - 32);
+	} else {
+		outl(HLIEL << 16, emu->port + PTR);
+		val = inl(emu->port + DATA);
+		val |= 1 << voicenum;
+	}
+	outl(val, emu->port + DATA);
+	spin_unlock_irqrestore(&emu->emu_lock, flags);
+}
+
+void snd_emu10k1_voice_half_loop_intr_disable(emu10k1_t *emu, unsigned int voicenum)
+{
+	unsigned long flags;
+	unsigned int val;
+
+	spin_lock_irqsave(&emu->emu_lock, flags);
+	/* voice interrupt */
+	if (voicenum >= 32) {
+		outl(HLIEH << 16, emu->port + PTR);
+		val = inl(emu->port + DATA);
+		val &= ~(1 << (voicenum - 32));
+	} else {
+		outl(HLIEL << 16, emu->port + PTR);
+		val = inl(emu->port + DATA);
+		val &= ~(1 << voicenum);
+	}
+	outl(val, emu->port + DATA);
+	spin_unlock_irqrestore(&emu->emu_lock, flags);
+}
+
+void snd_emu10k1_voice_half_loop_intr_ack(emu10k1_t *emu, unsigned int voicenum)
+{
+	unsigned long flags;
+
+	spin_lock_irqsave(&emu->emu_lock, flags);
+	/* voice interrupt */
+	if (voicenum >= 32) {
+		outl(HLIPH << 16, emu->port + PTR);
+		voicenum = 1 << (voicenum - 32);
+	} else {
+		outl(HLIPL << 16, emu->port + PTR);
+		voicenum = 1 << voicenum;
+	}
+	outl(voicenum, emu->port + DATA);
+	spin_unlock_irqrestore(&emu->emu_lock, flags);
+}
+
 void snd_emu10k1_voice_set_loop_stop(emu10k1_t *emu, unsigned int voicenum)
 {
 	unsigned long flags;

  parent reply	other threads:[~2005-02-16  0:47 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16  0:38 [PATCH 0/8] emu10k1 multichannel support Lee Revell
2005-02-16  0:42 ` [PATCH 1/8] " Lee Revell
2005-02-16  0:43 ` [PATCH 2/8] " Lee Revell
2005-02-16  0:46 ` [PATCH 3/8] " Lee Revell
2005-02-16  0:47 ` Lee Revell [this message]
2005-02-16  0:48 ` [PATCH 5/8] " Lee Revell
2005-02-16  0:49 ` [PATCH 6/8] " Lee Revell
2005-02-16  0:50 ` [PATCH 7/8] " Lee Revell
2005-02-16  0:51 ` [PATCH 8/8] " Lee Revell
     [not found] ` <42129C4F.4060507@machinehasnoagenda.com>
     [not found]   ` <1108515965.14789.1.camel@krustophenia.net>
     [not found]     ` <4212D49F.40404@machinehasnoagenda.com>
     [not found]       ` <1108530906.26851.2.camel@krustophenia.net>
2005-02-16  7:31         ` [PATCH 0/8] " Shayne O'Connor
2005-02-16 13:16           ` emu10k1 multichannel support & 2.6.11.rc4 - bug? Shayne O'Connor
     [not found]             ` <1108574835.28955.2.camel@krustophenia.net>
2005-02-16 23:40               ` Shayne O'Connor
2005-02-16 23:37                 ` Lee Revell
     [not found]                   ` <1108597405.3481.4.camel@krustophenia.net>
2005-02-17  0:42                     ` Shayne O'Connor
2005-02-16 10:22 ` [PATCH 0/8] emu10k1 multichannel support Jaroslav Kysela
2005-02-19 19:33 ` Lee Revell

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=1108514838.3772.33.camel@krustophenia.net \
    --to=rlrevell@joe-job.com \
    --cc=James@superbug.co.uk \
    --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.