login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
14
Re: [PATCH] es1968: fix jitter on some maestro cards
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Takashi Iwai
Subject:
Re: [PATCH] es1968: fix jitter on some maestro cards
Date: Monday, April 14, 2008 - 3:22 am
At Tue, 01 Apr 2008 00:24:43 +0200, Rene Herman wrote:
quoted text
> > On 30-03-08 00:49, Andreas Mueller wrote: > > > This patch suppresses jitter on several Maestro cards in stereo mode > > (ALSA of course). > > > > The patch is also incorporated in the *BSD drivers where I "ported" it from. > > I am barely used to driver-development so please take a look (esp. the channel > > parameters), nevertheless it completely works for me. > > > > Without this patch most of the stereo audio gets out of sync and really > > distorted (oss-emulation with mplayer at 48000khz worked somehow). > > > > CCed to those listed in the .c file. > > Added the alsa-devel list (and re-attached the patch). My TerraTec DMX (ESS > Canyon3D, ES1970MS-3D) doesn't need this but doesn't seem to suffer from it > either. Otherwise no idea about this.
This should depend on the sample rate you use. 48k would work without the patch. Anyway, I applied it to ALSA tree now. Thanks. Takashi
quoted text
> > Rene. > [2 es1968_jitter.patch <text/plain (7bit)>] > --- sound/pci/es1968.c.old 2008-03-29 19:17:16.771116317 +0100 > +++ sound/pci/es1968.c 2008-03-30 00:14:35.363057160 +0100 > @@ -1816,7 +1816,24 @@ > > return 0; > } > +/* > + * suppress jitter on some maestros when playing stereo > + */ > +static void snd_es1968_suppress_jitter(struct es1968 *chip, struct esschan *es) > +{ > + unsigned int cp1; > + unsigned int cp2; > + unsigned int diff; > > + cp1 = __apu_get_register(chip, 0, 5); > + cp2 = __apu_get_register(chip, 1, 5); > + diff = (cp1 > cp2 ? cp1 - cp2 : cp2 - cp1); > + > + if (diff > 1) { > + __maestro_write(chip, IDR0_DATA_PORT, cp1); > + } > +} > + > /* > * update pointer > */ > @@ -1937,8 +1954,11 @@ > struct esschan *es; > spin_lock(&chip->substream_lock); > list_for_each_entry(es, &chip->substream_list, list) { > - if (es->running) > + if (es->running) { > snd_es1968_update_pcm(chip, es); > + if (es->fmt & ESS_FMT_STEREO) > + snd_es1968_suppress_jitter(chip, es); > + } > } > spin_unlock(&chip->substream_lock); > if (chip->in_measurement) {
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] es1968: fix jitter on some maestro cards
, Andreas Mueller
, (Sat Mar 29, 4:49 pm)
Re: [PATCH] es1968: fix jitter on some maestro cards
, Rene Herman
, (Mon Mar 31, 3:24 pm)
Re: [PATCH] es1968: fix jitter on some maestro cards
, Takashi Iwai
, (Mon Apr 14, 3:22 am)
Re: [PATCH] es1968: fix jitter on some maestro cards
, Rene Herman
, (Mon Apr 14, 3:43 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Stephen Smalley
Re: [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
Borislav Petkov
drm_vm.c:drm_mmap: possible circular locking dependency detected (was: Re: Linux 2...
git
:
Mike Miller
git message
Wincent Colaiuta
Re: [RFC PATCH] Make the rebase edit mode really end up in an edit state
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Kevin Ballard
Re: git check-attr -z and quoting
Marcel Holtmann
Re: Remove unneeded packs
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Sebastian Andrzej Siewior
[PATCH v2] net/core: use ntohs for skb->protocol
Badalian Vyacheslav
Re: tc filter flow hash question
Parav Pandit
ip6 route output() and ip_route_output_key() by drivers
Jarek Poplawski
Re: tc filter flow hash question
git-commits-head
:
Linux Kernel Mailing List
mm: fix build on non-mmu machines
Linux Kernel Mailing List
ALSA: hda: Use olpc-xo-1_5 quirk for Toshiba Satellite P500-PSPGSC-01800T
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
powerpc/kexec: Add support for FSL-BookE
Linux Kernel Mailing List
Staging: rt2870: Removal of kernel_thread() API
openbsd-misc
:
Tony Abernethy
Re: The Atheros story in much fewer words
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
ropers
Re: Real men don't attack straw men
Nick Holland
Re: Install OpenBSD from USB ?
Colocation donated by:
Syndicate