All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "René Kermis" <kermis@gmx.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Updated: via8233 driver -- testers wanted
Date: Fri, 31 May 2002 15:31:21 +0200	[thread overview]
Message-ID: <s5hbsawh2ae.wl@alsa2.suse.de> (raw)
In-Reply-To: <00da01c2089c$96239570$6abc5f86@kermit>

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

Hi,

At Fri, 31 May 2002 14:13:28 +0200,
René Kermis wrote:
> 
> Hi,
> 
> I tried to to record from mic and line in. I have no problems with
> recording, but the file is empty.
> 
> Some very strange things happend on my machine. I tried to use the oss
> module and it worked without problems. Then I uninstalled the evaluation
> version and removed the modules from memory and reloaded your modules. Now I
> can playback sounds without getting an error, but the sound is too fast,
> exactly 2x faster than it should be. Is it possible, that it is only an
> initialization problem of the sound chip?

now found out obvious typos - patch attached (already on cvs).
hopefull this fixes the problem...


Takashi

[-- Attachment #2: via-fix.dif --]
[-- Type: application/octet-stream, Size: 1092 bytes --]

Index: alsa-kernel/pci/via8233.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/via8233.c,v
retrieving revision 1.15
diff -u -r1.15 via8233.c
--- alsa-kernel/pci/via8233.c	29 May 2002 09:42:36 -0000	1.15
+++ alsa-kernel/pci/via8233.c	31 May 2002 13:23:18 -0000
@@ -361,7 +361,7 @@
 		unsigned int slots;
 		int fmt = (runtime->format == SNDRV_PCM_FORMAT_S16_LE) ? VIA_REG_MULTPLAY_FMT_16BIT : VIA_REG_MULTPLAY_FMT_8BIT;
 		fmt |= runtime->channels << 4;
-		outb(fmt, VIA_REG_MULTPLAY_FORMAT);
+		outb(fmt, chip->port + VIA_REG_MULTPLAY_FORMAT);
 		/* set sample number to slot 3, 4, 7, 8, 6, 9 */
 		switch (runtime->channels) {
 		case 1: slots = (1<<0); break;
@@ -371,7 +371,7 @@
 		default: slots = 0;
 		}
 		/* STOP index is never reached */
-		outl(0xff000000 | slots, VIA_REG_MULTPLAY_STOP_IDX);
+		outl(0xff000000 | slots, chip->port + VIA_REG_MULTPLAY_STOP_IDX);
 	} else {
 		outl((runtime->format == SNDRV_PCM_FORMAT_S16_LE ? VIA_REG_TYPE_16BIT : 0) |
 		     (runtime->channels > 1 ? VIA_REG_TYPE_STEREO : 0) |

  parent reply	other threads:[~2002-05-31 13:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-31  8:51 Updated: via8233 driver -- testers wanted René Kermis
2002-05-31  8:00 ` Niek van der Maas
2002-05-31 10:55 ` Takashi Iwai
2002-05-31 10:36   ` Niek van der Maas
2002-05-31 12:13     ` René Kermis
2002-05-31 13:23       ` Takashi Iwai
2002-05-31 13:31       ` Takashi Iwai [this message]
2002-05-31 13:50         ` René Kermis
2002-05-31 14:03           ` René Kermis
2002-05-31 12:33     ` René Kermis
2002-05-31 13:21       ` René Kermis
2002-05-31 12:52         ` Niek van der Maas
2002-05-31 18:35           ` Vlad Danego
  -- strict thread matches above, loose matches on Subject: below --
2002-05-30 13:58 Vlad Danego
2002-05-27 13:39 Takashi Iwai
2002-05-27 14:29 ` Stephen Hassard

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=s5hbsawh2ae.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=kermis@gmx.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.