All of lore.kernel.org
 help / color / mirror / Atom feed
* integration of via668 and via8233 drivers
@ 2002-09-04 14:24 Takashi Iwai
  2002-09-05  7:53 ` Pavel Roskin
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Iwai @ 2002-09-04 14:24 UTC (permalink / raw)
  To: alsa-devel; +Cc: alsa-user

Hi,

right now I committed the changes for VIA chip drivers to cvs.

now via686 and via8233 drivers are merged into a unified driver,
via82xx.  this supports both VIA686 and VIA8233 south bridges.
the supported functions are identical with older drivers.
so it's nothing but a merge of two modules into one.

i've tested it shortly on my via686 chip, and confirmed to work.
but on via8233 it's not tested much.

if you have via8233 chipset, please test a newer driver.


thanks,

Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-04 14:24 integration of via668 and via8233 drivers Takashi Iwai
@ 2002-09-05  7:53 ` Pavel Roskin
  2002-09-05  8:43   ` Takashi Iwai
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Roskin @ 2002-09-05  7:53 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Hello!

> right now I committed the changes for VIA chip drivers to cvs.
> 
> now via686 and via8233 drivers are merged into a unified driver,
> via82xx.  this supports both VIA686 and VIA8233 south bridges.
> the supported functions are identical with older drivers.
> so it's nothing but a merge of two modules into one.
> 
> i've tested it shortly on my via686 chip, and confirmed to work.
> but on via8233 it's not tested much.

Actually, I have via686, and it used to work with the CVS version a few
months ago.  I tried it a week ago and it didn't work (it produced wrong
sounds).  We'll see if your integration fixed it.  If it didn't I'll do a 
binary search.

Right now, I have unresolved symbols with the CVS version:

# depmod -ae
depmod: *** Unresolved symbols in 
/lib/modules/2.4.20-pre5/kernel/sound/pci/snd-via82xx.o
depmod:         snd_mpu401_uart_new_R84d07db1
depmod:         snd_mpu401_uart_interrupt_R4ea4dc60
depmod:         snd_ac97_set_rate_Rae15d98c
depmod:         snd_ac97_mixer_Rb0b86cda

snd-mpu401.o and snd-mpu401-uart.o are not compiled and not installed.  
The configure options are:

--without-sequencer --with-oss --without-isapnp --with-cards=via82xx

Looks like a configuration problem to me.  --with-cards=via82xx should
enable the mpu401 and ac97 modules if the symbols from them are used in
the driver.

-- 
Regards,
Pavel Roskin



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-05  7:53 ` Pavel Roskin
@ 2002-09-05  8:43   ` Takashi Iwai
  2002-09-05 13:33     ` Pavel Roskin
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Iwai @ 2002-09-05  8:43 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: alsa-devel

At Thu, 5 Sep 2002 03:53:00 -0400 (EDT),
Pavel Roskin wrote:
> 
> Hello!
> 
> > right now I committed the changes for VIA chip drivers to cvs.
> > 
> > now via686 and via8233 drivers are merged into a unified driver,
> > via82xx.  this supports both VIA686 and VIA8233 south bridges.
> > the supported functions are identical with older drivers.
> > so it's nothing but a merge of two modules into one.
> > 
> > i've tested it shortly on my via686 chip, and confirmed to work.
> > but on via8233 it's not tested much.
> 
> Actually, I have via686, and it used to work with the CVS version a few
> months ago.  I tried it a week ago and it didn't work (it produced wrong
> sounds).  We'll see if your integration fixed it.  If it didn't I'll do a 
> binary search.
> 
> Right now, I have unresolved symbols with the CVS version:
> 
> # depmod -ae
> depmod: *** Unresolved symbols in 
> /lib/modules/2.4.20-pre5/kernel/sound/pci/snd-via82xx.o
> depmod:         snd_mpu401_uart_new_R84d07db1
> depmod:         snd_mpu401_uart_interrupt_R4ea4dc60
> depmod:         snd_ac97_set_rate_Rae15d98c
> depmod:         snd_ac97_mixer_Rb0b86cda
> 
> snd-mpu401.o and snd-mpu401-uart.o are not compiled and not installed.  
> The configure options are:
> 
> --without-sequencer --with-oss --without-isapnp --with-cards=via82xx
> 
> Looks like a configuration problem to me.  --with-cards=via82xx should
> enable the mpu401 and ac97 modules if the symbols from them are used in
> the driver.

please rebuild the driver with cvscompile script.
you need to regenerate acinclude.m4 etc.


Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-05  8:43   ` Takashi Iwai
@ 2002-09-05 13:33     ` Pavel Roskin
  2002-09-05 13:47       ` Takashi Iwai
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Roskin @ 2002-09-05 13:33 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Hello!

> please rebuild the driver with cvscompile script.
> you need to regenerate acinclude.m4 etc.

It was a clean build.  The patch (tested) is attached.  Unfortunately, the 
sound is still helicopter-like, but it's another problem.  Tested on this 
device:

00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 
Audio Controller (rev 20)
        Subsystem: Unknown device 5860:11d4
        Flags: medium devsel, IRQ 10
        I/O ports at cc00 [size=256]
        I/O ports at d000 [size=4]
        I/O ports at d400 [size=4]
        Capabilities: [c0] Power Management version 2

====================== cut here ====================
Index: alsa-kernel/core/Makefile
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/Makefile,v
retrieving revision 1.28
diff -u -r1.28 Makefile
--- alsa-kernel/core/Makefile	26 Aug 2002 16:05:37 -0000	1.28
+++ alsa-kernel/core/Makefile	5 Sep 2002 13:15:06 -0000
@@ -78,8 +78,7 @@
 obj-$(CONFIG_SND_RME32) += snd-pcm.o snd-timer.o snd.o
 obj-$(CONFIG_SND_RME96) += snd-pcm.o snd-timer.o snd.o
 obj-$(CONFIG_SND_SONICVIBES) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o snd-hwdep.o
-obj-$(CONFIG_SND_VIA686) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o
-obj-$(CONFIG_SND_VIA8233) += snd-pcm.o snd-timer.o snd.o
+obj-$(CONFIG_SND_VIA82XX) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o
 obj-$(CONFIG_SND_ALI5451) += snd.o snd-rawmidi.o snd-timer.o snd-pcm.o
 obj-$(CONFIG_SND_CS46XX) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o
 obj-$(CONFIG_SND_EMU10K1) += snd-pcm.o snd-timer.o snd.o snd-rawmidi.o snd-hwdep.o
Index: alsa-kernel/core/seq/Makefile
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/seq/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- alsa-kernel/core/seq/Makefile	26 Aug 2002 16:05:37 -0000	1.20
+++ alsa-kernel/core/seq/Makefile	5 Sep 2002 13:15:06 -0000
@@ -67,7 +67,7 @@
 obj-$(CONFIG_SND_ICE1712) += snd-seq-midi.o snd-seq.o snd-seq-device.o snd-seq-midi-event.o
 obj-$(CONFIG_SND_INTEL8X0) += snd-seq-midi.o snd-seq.o snd-seq-device.o snd-seq-midi-event.o
 obj-$(CONFIG_SND_SONICVIBES) += snd-seq-midi.o snd-seq.o snd-seq-device.o snd-seq-midi-event.o snd-seq-midi-emul.o snd-seq-instr.o
-obj-$(CONFIG_SND_VIA686) += snd-seq-midi.o snd-seq.o snd-seq-device.o snd-seq-midi-event.o
+obj-$(CONFIG_SND_VIA82XX) += snd-seq-midi.o snd-seq.o snd-seq-device.o snd-seq-midi-event.o
 obj-$(CONFIG_SND_ALI5451) += snd-seq-midi.o snd-seq.o snd-seq-device.o snd-seq-midi-event.o
 obj-$(CONFIG_SND_CS46XX) += snd-seq-midi.o snd-seq.o snd-seq-device.o snd-seq-midi-event.o
 obj-$(CONFIG_SND_EMU10K1) += snd-seq-midi.o snd-seq.o snd-seq-device.o snd-seq-midi-event.o snd-seq-midi-emul.o snd-seq-virmidi.o
Index: alsa-kernel/drivers/mpu401/Makefile
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/drivers/mpu401/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- alsa-kernel/drivers/mpu401/Makefile	24 Jul 2002 10:41:19 -0000	1.9
+++ alsa-kernel/drivers/mpu401/Makefile	5 Sep 2002 13:15:06 -0000
@@ -35,7 +35,7 @@
 obj-$(CONFIG_SND_ICE1712) += snd-mpu401-uart.o
 obj-$(CONFIG_SND_INTEL8X0) += snd-mpu401-uart.o
 obj-$(CONFIG_SND_SONICVIBES) += snd-mpu401-uart.o
-obj-$(CONFIG_SND_VIA686) += snd-mpu401-uart.o
+obj-$(CONFIG_SND_VIA82XX) += snd-mpu401-uart.o
 obj-$(CONFIG_SND_ALI5451) += snd-mpu401-uart.o
 obj-$(CONFIG_SND_TRIDENT) += snd-mpu401-uart.o
 obj-$(CONFIG_SND_YMFPCI) += snd-mpu401-uart.o
Index: alsa-kernel/pci/ac97/Makefile
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- alsa-kernel/pci/ac97/Makefile	17 Jul 2002 10:56:41 -0000	1.7
+++ alsa-kernel/pci/ac97/Makefile	5 Sep 2002 13:15:06 -0000
@@ -17,8 +17,7 @@
 obj-$(CONFIG_SND_ICE1712) += snd-ac97-codec.o
 obj-$(CONFIG_SND_INTEL8X0) += snd-ac97-codec.o
 obj-$(CONFIG_SND_MAESTRO3) += snd-ac97-codec.o
-obj-$(CONFIG_SND_VIA686) += snd-ac97-codec.o
-obj-$(CONFIG_SND_VIA8233) += snd-ac97-codec.o
+obj-$(CONFIG_SND_VIA82XX) += snd-ac97-codec.o
 obj-$(CONFIG_SND_ALI5451) += snd-ac97-codec.o
 obj-$(CONFIG_SND_CS46XX) += snd-ac97-codec.o
 obj-$(CONFIG_SND_EMU10K1) += snd-ac97-codec.o
====================== cut here ====================

-- 
Regards,
Pavel Roskin



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-05 13:33     ` Pavel Roskin
@ 2002-09-05 13:47       ` Takashi Iwai
  2002-09-05 15:29         ` Pavel Roskin
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Iwai @ 2002-09-05 13:47 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: alsa-devel

At Thu, 5 Sep 2002 09:33:14 -0400 (EDT),
Pavel Roskin wrote:
> 
> Hello!
> 
> > please rebuild the driver with cvscompile script.
> > you need to regenerate acinclude.m4 etc.
> 
> It was a clean build.  The patch (tested) is attached.

agghh, that's it.  thanks.

> Unfortunately, the 
> sound is still helicopter-like, but it's another problem.

which application?


Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-05 13:47       ` Takashi Iwai
@ 2002-09-05 15:29         ` Pavel Roskin
  2002-09-05 15:39           ` Takashi Iwai
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Roskin @ 2002-09-05 15:29 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Hello!

> > Unfortunately, the 
> > sound is still helicopter-like, but it's another problem.
> 
> which application?

timidity and xmms.  I hear short loud periodic sounds.  Setting lower
sampling rate in timidity causes longer delays between the pulses.

Linux-2.4.20-pre5, Red Hat 7.3, timidity++-2.11.3-1.

The emu10k1 ALSA driver has been working fine on the same machine.  The
VIA audio is integrated.  The via686 driver worked with the internal audio
before I installed SB Live, which must have been some time in March of
this year.

Looking at the log of alsa-kernel/pci/via686.c, following entry looks 
"promising":

----------------------------
revision 1.24
date: 2002/08/13 16:29:18;  author: perex;  state: Exp;  lines: +13 -9
AC97 cold reset only when AC-link is down
----------------------------

I'm away from that computer now, but I'll have a look this evening.

-- 
Regards,
Pavel Roskin



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-05 15:29         ` Pavel Roskin
@ 2002-09-05 15:39           ` Takashi Iwai
  2002-09-05 15:49             ` Pavel Roskin
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Iwai @ 2002-09-05 15:39 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: alsa-devel

At Thu, 5 Sep 2002 11:29:02 -0400 (EDT),
Pavel Roskin wrote:
> 
> Hello!
> 
> > > Unfortunately, the 
> > > sound is still helicopter-like, but it's another problem.
> > 
> > which application?
> 
> timidity and xmms.  I hear short loud periodic sounds.  Setting lower
> sampling rate in timidity causes longer delays between the pulses.
> 
> Linux-2.4.20-pre5, Red Hat 7.3, timidity++-2.11.3-1.
> 
> The emu10k1 ALSA driver has been working fine on the same machine.  The
> VIA audio is integrated.  The via686 driver worked with the internal audio
> before I installed SB Live, which must have been some time in March of
> this year.

hmm, this recalls some posts on l-k ml in the last year.
it might be a hardware problem, namely, VIA motherboards.
is your motherboard KT266A?


> 
> Looking at the log of alsa-kernel/pci/via686.c, following entry looks 
> "promising":
> 
> ----------------------------
> revision 1.24
> date: 2002/08/13 16:29:18;  author: perex;  state: Exp;  lines: +13 -9
> AC97 cold reset only when AC-link is down
> ----------------------------

this should be irrelevant.  it changed the code around ac97 codec
reset.  if it fails, you'll hear nothing.


Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-05 15:39           ` Takashi Iwai
@ 2002-09-05 15:49             ` Pavel Roskin
  2002-09-05 16:14               ` Takashi Iwai
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Roskin @ 2002-09-05 15:49 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

> > The emu10k1 ALSA driver has been working fine on the same machine.  The
> > VIA audio is integrated.  The via686 driver worked with the internal audio
> > before I installed SB Live, which must have been some time in March of
> > this year.
> 
> hmm, this recalls some posts on l-k ml in the last year.
> it might be a hardware problem, namely, VIA motherboards.
> is your motherboard KT266A?

No, it's KT-133.

> this should be irrelevant.  it changed the code around ac97 codec
> reset.  if it fails, you'll hear nothing.

Ok, there are not many revisions of the driver, so I hope to locate the
breakage quite fast.

-- 
Regards,
Pavel Roskin



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-05 15:49             ` Pavel Roskin
@ 2002-09-05 16:14               ` Takashi Iwai
  2002-09-06  7:08                 ` Pavel Roskin
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Iwai @ 2002-09-05 16:14 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: alsa-devel

At Thu, 5 Sep 2002 11:49:29 -0400 (EDT),
Pavel Roskin wrote:
> 
> > > The emu10k1 ALSA driver has been working fine on the same machine.  The
> > > VIA audio is integrated.  The via686 driver worked with the internal audio
> > > before I installed SB Live, which must have been some time in March of
> > > this year.
> > 
> > hmm, this recalls some posts on l-k ml in the last year.
> > it might be a hardware problem, namely, VIA motherboards.
> > is your motherboard KT266A?
> 
> No, it's KT-133.

does this info help?

	http://www.networking.tzo.com/net/software/readmes/techvl019d.htm


Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-05 16:14               ` Takashi Iwai
@ 2002-09-06  7:08                 ` Pavel Roskin
  2002-09-06 10:44                   ` Takashi Iwai
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Roskin @ 2002-09-06  7:08 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Hello!

> > > hmm, this recalls some posts on l-k ml in the last year.
> > > it might be a hardware problem, namely, VIA motherboards.
> > > is your motherboard KT266A?
> > 
> > No, it's KT-133.
> 
> does this info help?
> 
> 	http://www.networking.tzo.com/net/software/readmes/techvl019d.htm

It's a Windows driver that changes some registers of the chipset.  It also
reloads those registers after the sleep, so they are not saved in the
hardware, so there is no way this driver can affect ALSA drivers under
Linux kernel.  The Linux kernel 2.4.20-pre5 that I'm using has some
VIA-specific code, which does something similar to that Windows driver.  
Anyway, all this is most likely irrelevant.

Binary search shows that the driver from "2002/07/19 17:00 UTC" is fine, 
but 15 minutes later, at "2002/07/19 17:15 UTC", the driver is already 
broken.

The diff between those time pints is fairly large, since "Scatter-Gather 
PCM access" was introduced in between:

revision 1.20
date: 2002/07/19 17:10:53;  author: tiwai;  state: Exp;  lines: +157 -206
added the support of sg buffer pcm

However, I can take the old (17:00) via686 driver and compile it with the
new (17:15) source tree, and everything is fine.  My interpretation is
that it's not the introduction of Scatter-Gather PCM access that broke the
driver.  It's porting of the via686 driver to Scatter-Gather that caused
the problem.

The "helicopter sound" can be reproduced with the "play" test from the 
oss-test suite.  The sound is different if I run the test more than once.

It's interesting that the problem seems to mostly affect some programs but
not the others.  That's what I tested with the new, broken driver:

timidity -Oe ode2joy.mid                           Bad
timidity -Od -o /dev/dsp ode2joy.mid               Ok
timidity -Ou -o /dev/audio ode2joy.mid             Ok
mpg321 -o esd bwv538.mp3                           Bad
mpg321 -o oss bwv538.mp3                           Ok
mpg321 -o alsa bwv538.mp3                          Ok
aplay cow.wav                                      Bad
sox cow.wav -t ossdsp /dev/dsp                     Ok
cat cow.au >/dev/audio                             Ok
xmms bwv538.mp3  (OSS driver)                      Bad
xmms bwv538.mp3  (eSound driver)                   Bad
timidity -Ou -o - ode2joy.mid | aplay -            Bad
timidity -Ow -o - ode2joy.mid | aplay -            Ok

-- 
Regards,
Pavel Roskin



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-06  7:08                 ` Pavel Roskin
@ 2002-09-06 10:44                   ` Takashi Iwai
  2002-09-06 14:03                     ` Pavel Roskin
  0 siblings, 1 reply; 13+ messages in thread
From: Takashi Iwai @ 2002-09-06 10:44 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: alsa-devel

At Fri, 6 Sep 2002 03:08:40 -0400 (EDT),
Pavel Roskin wrote:
> 
> The diff between those time pints is fairly large, since "Scatter-Gather 
> PCM access" was introduced in between:
> 
> revision 1.20
> date: 2002/07/19 17:10:53;  author: tiwai;  state: Exp;  lines: +157 -206
> added the support of sg buffer pcm
> 
> However, I can take the old (17:00) via686 driver and compile it with the
> new (17:15) source tree, and everything is fine.  My interpretation is
> that it's not the introduction of Scatter-Gather PCM access that broke the
> driver.  It's porting of the via686 driver to Scatter-Gather that caused
> the problem.
> 
> The "helicopter sound" can be reproduced with the "play" test from the 
> oss-test suite.  The sound is different if I run the test more than once.
> 
> It's interesting that the problem seems to mostly affect some programs but
> not the others.  That's what I tested with the new, broken driver:
> 

i think esd tries to set too small fragment size.
anyway, could you check the output of
/proc/asound/card0/pcm0p/sub0/hw_params for each bad case?


> timidity -Oe ode2joy.mid                           Bad
> timidity -Od -o /dev/dsp ode2joy.mid               Ok
> timidity -Ou -o /dev/audio ode2joy.mid             Ok
> mpg321 -o esd bwv538.mp3                           Bad
> mpg321 -o oss bwv538.mp3                           Ok
> mpg321 -o alsa bwv538.mp3                          Ok
> aplay cow.wav                                      Bad
> sox cow.wav -t ossdsp /dev/dsp                     Ok
> cat cow.au >/dev/audio                             Ok
> xmms bwv538.mp3  (OSS driver)                      Bad
> xmms bwv538.mp3  (eSound driver)                   Bad
> timidity -Ou -o - ode2joy.mid | aplay -            Bad
> timidity -Ow -o - ode2joy.mid | aplay -            Ok

thanks,

Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-06 10:44                   ` Takashi Iwai
@ 2002-09-06 14:03                     ` Pavel Roskin
  2002-09-06 14:27                       ` Takashi Iwai
  0 siblings, 1 reply; 13+ messages in thread
From: Pavel Roskin @ 2002-09-06 14:03 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel

Hello!

> i think esd tries to set too small fragment size.
> anyway, could you check the output of
> /proc/asound/card0/pcm0p/sub0/hw_params for each bad case?

Yes, it looks like that.  If the sound is bad, period_size is 1024 or
less.  If the sound is good, period_size is 2048 or more.

> > timidity -Ou -o - ode2joy.mid | aplay -            Bad

That's the simplest case because it doesn't involve OSS emulation.  -Ou 
means using Sun AU format.  The default sampling rate is 8k.  The sound 
becomes good when the sampling rate is more than 12k.  Now let's look at 
this:

timidity -Ou -o - -s 12k ode2joy.mid | aplay -
bad sound
/proc/asound/card0/pcm0p/sub0/hw_params:

access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 1
rate: 12000 (12000/1)
period_size: 1024
buffer_size: 6000
tick_time: 10000


timidity -Ou -o - -s 12.5k ode2joy.mid | aplay -
good sound
/proc/asound/card0/pcm0p/sub0/hw_params:

access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 1
rate: 12500 (12500/1)
period_size: 2048
buffer_size: 6250
tick_time: 10000


buffer_size changed insignificantly.  period_size jumped from 1024 to 
2048.  There are no other changes.

-- 
Regards,
Pavel Roskin



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

* Re: integration of via668 and via8233 drivers
  2002-09-06 14:03                     ` Pavel Roskin
@ 2002-09-06 14:27                       ` Takashi Iwai
  0 siblings, 0 replies; 13+ messages in thread
From: Takashi Iwai @ 2002-09-06 14:27 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: alsa-devel

At Fri, 6 Sep 2002 10:03:07 -0400 (EDT),
Pavel Roskin wrote:
> 
> Hello!
> 
> > i think esd tries to set too small fragment size.
> > anyway, could you check the output of
> > /proc/asound/card0/pcm0p/sub0/hw_params for each bad case?
> 
> Yes, it looks like that.  If the sound is bad, period_size is 1024 or
> less.  If the sound is good, period_size is 2048 or more.

ok, then please modify ".period_bytes_min = 32" to 2048 (in two
positions in via82xx.c).

but 2048 seems too big.  possibly there is a hardware latency problem
on via chipset?


Takashi


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

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

end of thread, other threads:[~2002-09-06 14:27 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-04 14:24 integration of via668 and via8233 drivers Takashi Iwai
2002-09-05  7:53 ` Pavel Roskin
2002-09-05  8:43   ` Takashi Iwai
2002-09-05 13:33     ` Pavel Roskin
2002-09-05 13:47       ` Takashi Iwai
2002-09-05 15:29         ` Pavel Roskin
2002-09-05 15:39           ` Takashi Iwai
2002-09-05 15:49             ` Pavel Roskin
2002-09-05 16:14               ` Takashi Iwai
2002-09-06  7:08                 ` Pavel Roskin
2002-09-06 10:44                   ` Takashi Iwai
2002-09-06 14:03                     ` Pavel Roskin
2002-09-06 14:27                       ` 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.