Skip to contentSkip to conversation

au88x0_synth

DISCUSSION Raymond 6 participants 34 messages Mar 20, 2005 – Jul 1, 2005

lore
Share & tools
lore

Raymond

author
#0 lore raw

Hi,

Quoted 9 lines
Quoted 3 lines

Lee Revell wrote:
Looks like this chipset has a wavetable synth. And I noticed some
references to a driver on the openvortex list. Would it be possible for ALSA to support it?

Manuel Jander wrote:
Of course, but there are some unresolved hardware issues. The WaveTable helper hardware is very similar to the trident Wavetable helper hardware. It does not interpret MIDI directly, but at least does some effect processing in hardware.

http://sourceforge.net/mailarchive/message.php?msg_id=6004190

1) Is the Trident Wavetable working ?

http://www.alsa-project.org/~iwai/writing-an-alsa-driver/x84.htm

There is no Makefile inside /alsa-kernel/Documentation/Docbook

2) How can I converted the latest version of writing-an-alsa-driver.tmpl to HTML format

3) Is the information about ALSA sequencer in
http://www.alsa-project.org/~iwai/lk2k/lk2k.html still valid for ALSA 1.0.x ?

4) In addition to the callback functions used in Midi sequencer
interface, what other functions/modules will the wavetable synth (kernel client) need to be implmemented ?

static snd_midi_op_t vortex_midi_ops = {
snd_vortex_note_on,
snd_vortex_note_off,
snd_vortex_key_press,
snd_vortex_terminate_note,
snd_vortex_control,
snd_vortex_nrpn,
snd_vortex_sysex,
};

http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-utils/seq/

5) Is the aplaymidi the only tool to test and debug the wavetable synth ? ( Any GUI application )

Refer to http://www.3dsoundsurge.com/archive/week16.htm
(iii) OPL3 Support: Both Windows DOS boxes and real-mode DOS now support 4-operator OPL3 FM synthesis, in addition to 2-operator OPL2 FM synthesis.

6) Do au88x0 support OPL3 ?

The "vortexcontrol" use alsa-lib API to play the audio samples inside au30gm.arl through hw:0,0.

7) How can the audio sample be played within the driver using the soundfont through hw:0,0 in a 16 voice synth for au8810 (without WT) ?

Raymond

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#1 lore raw

At Sun, 20 Mar 2005 09:11:08 +0800,

Quoted 15 lines · Raymond

Hi,

Quoted 10 lines
Quoted 4 lines

Lee Revell wrote:
Looks like this chipset has a wavetable synth. And I noticed some references to a driver on the openvortex list. Would it be possible for ALSA to support it?

Manuel Jander wrote:
Of course, but there are some unresolved hardware issues. The WaveTable helper hardware is very similar to the trident Wavetable helper hardware. It does not interpret MIDI directly, but at least does some effect processing in hardware.

Quoted 3 lines

http://sourceforge.net/mailarchive/message.php?msg_id=6004190

1) Is the Trident Wavetable working ?

Very limited. It's no proper "MIDI" wavetable implementation. IIRC, only a module player worked with trident driver.

Quoted 3 lines

http://www.alsa-project.org/~iwai/writing-an-alsa-driver/x84.htm

There is no Makefile inside /alsa-kernel/Documentation/Docbook

It's in alsa-driver/doc/Docbook.

Quoted 2 lines

2) How can I converted the latest version of writing-an-alsa-driver.tmpl to HTML format

Run "make pdfdocs".

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#31 lore raw
In reply to Raymond

Hi Raymond,

Quoted 14 lines · Raymond

Hi,

Quoted 10 lines
Quoted 4 lines

Lee Revell wrote:
Looks like this chipset has a wavetable synth. And I noticed some references to a driver on the openvortex list. Would it be possible for ALSA to support it?

Manuel Jander wrote:
Of course, but there are some unresolved hardware issues. The WaveTable helper hardware is very similar to the trident Wavetable helper hardware. It does not interpret MIDI directly, but at least does some effect processing in hardware.

Quoted 3 lines

http://sourceforge.net/mailarchive/message.php?msg_id=6004190

1) Is the Trident Wavetable working ?

No idea. I don't have one. I just looked at the datasheet of the trident 4DX chip and found very similar to the aureal chip, when looking at the big picture.

Quoted 8 lines

http://www.alsa-project.org/~iwai/writing-an-alsa-driver/x84.htm

There is no Makefile inside /alsa-kernel/Documentation/Docbook

4) In addition to the callback functions used in Midi sequencer interface, what other functions/modules will the wavetable synth (kernel client) need to be implmemented ?

Quoted 9 lines

static snd_midi_op_t vortex_midi_ops = {
snd_vortex_note_on,
snd_vortex_note_off,
snd_vortex_key_press,
snd_vortex_terminate_note,
snd_vortex_control,
snd_vortex_nrpn,
snd_vortex_sysex,
};

We need the WT engine working. The rest is just a matter of writing the glue code (pretty straitforward).

Quoted 7 lines

http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-utils/seq/

Refer to http://www.3dsoundsurge.com/archive/week16.htm
(iii) OPL3 Support: Both Windows DOS boxes and real-mode DOS now support 4-operator OPL3 FM synthesis, in addition to 2-operator OPL2 FM synthesis.

6) Do au88x0 support OPL3 ?

No. It supports some memory registers to aid software emulation, but there is no real OPL hardware onboard the aureal chips.

Quoted 2 lines

The "vortexcontrol" use alsa-lib API to play the audio samples inside au30gm.arl through hw:0,0.

Thats because its just for hearing a sample. Its not even close to what has to be done for a Wavetable implementation. The higher level arl soundbank interpreter is very valuable, but on the hardware side we are missing the WT engine support.

Quoted 2 lines

7) How can the audio sample be played within the driver using the soundfont through hw:0,0 in a 16 voice synth for au8810 (without WT) ?

The au8810 does not have the WT engine, so wavetable synthesis has to be done with software emulation, and feeding the resulting audio into a dedicated ADB PCM channel.

Best Regards,

Signature · 10 lines
Manuel Jander
Electronic Engineer



-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
author
#2 lore raw
In reply to Takashi Iwai
Quoted 13 lines · Takashi Iwai
Quoted 12 lines · Raymond
Quoted 10 lines
Quoted 4 lines

Lee Revell wrote:
Looks like this chipset has a wavetable synth. And I noticed some references to a driver on the openvortex list. Would it be possible for ALSA to support it?

Manuel Jander wrote:
Of course, but there are some unresolved hardware issues. The WaveTable helper hardware is very similar to the trident Wavetable helper hardware. It does not interpret MIDI directly, but at least does some effect processing in hardware.

Quoted 8 lines
Quoted 3 lines

http://sourceforge.net/mailarchive/message.php?msg_id=6004190

1) Is the Trident Wavetable working ?

Very limited. It's no proper "MIDI" wavetable implementation. IIRC, only a module player worked with trident driver.

http://www.alsa-project.org/~frank/alsa-sequencer/node12.html

The midi port only need to support 16 voices, the 16 sample rate convertors are just enough to produce 16 voices using the mono sound samples in the soundfonts au30gm.arl

http://www.alsa-project.org/alsa-doc/alsa-lib/seq.html

Please correct me if I am wrong, there seem to be no documentation on those ALSA sequencer functions such as snd_seq_create_kernel_client,...

What will be needed for a proper "MIDI" wavetable implementation ?

Quoted 11 lines · Manuel Jander
Quoted 2 lines · Raymond

The "vortexcontrol" use alsa-lib API to play the audio samples inside au30gm.arl through hw:0,0.

Thats because its just for hearing a sample. Its not even close to what has to be done for a Wavetable implementation. The higher level arl soundbank interpreter is very valuable, but on the hardware side we are missing the WT engine support.

In snd_vortex_playback_hw_adb, .rates = SNDRV_PCM_RATE_CONTINUOUS

1) Can the sample rate convertor be used to perform pitch shift ?

2) Can panning be done by changing the mixin-mixout gain for left/right channels of each voice ?

The current alsa driver do not even use the timer VORTEX_SMP_TIME or timer interrupt VORTEX_SMP_TIMER

3) Is there any way to find out the resolution of the timer ?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#3 lore raw
Quoted 1 line · Raymond

What will be needed for a proper "MIDI" wavetable implementation ?

Have a look at the OPL4 driver, it's the simplest wavetable driver. However, it doesn't support downloading instruments.

HTH
Clemens

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#11 lore raw
In reply to Raymond

while you guys are working on that driver, is there anyone that has a 64bit setup? if not, i'd like to test out your driver in 64bit. i still have a number of issues with it (my card is an au8810).

i cannot regularly check it, cause i only have one PC and it's a server, but at nighttimes, i guess i can test it out a little.

good luck, AL13N

Op woensdag 30 maart 2005 10:04, schreef Raymond:

Quoted 82 lines
Quoted 12 lines · Takashi Iwai
Quoted 11 lines · Raymond
Quoted 10 lines
Quoted 4 lines

Lee Revell wrote:
Looks like this chipset has a wavetable synth. And I noticed some references to a driver on the openvortex list. Would it be possible for ALSA to support it?

Manuel Jander wrote:
Of course, but there are some unresolved hardware issues. The WaveTable helper hardware is very similar to the trident Wavetable helper hardware. It does not interpret MIDI directly, but at least does some effect processing in hardware.

Quoted 6 lines
Quoted 3 lines

http://sourceforge.net/mailarchive/message.php?msg_id=6004190

1) Is the Trident Wavetable working ?

Very limited. It's no proper "MIDI" wavetable implementation. IIRC, only a module player worked with trident driver.

http://www.alsa-project.org/~frank/alsa-sequencer/node12.html

The midi port only need to support 16 voices, the 16 sample rate convertors are just enough to produce 16 voices using the mono sound samples in the soundfonts au30gm.arl

http://www.alsa-project.org/alsa-doc/alsa-lib/seq.html

Please correct me if I am wrong, there seem to be no documentation on those ALSA sequencer functions such as snd_seq_create_kernel_client,...

What will be needed for a proper "MIDI" wavetable implementation ?

Quoted 8 lines · Manuel Jander
Quoted 2 lines · Raymond

The "vortexcontrol" use alsa-lib API to play the audio samples inside au30gm.arl through hw:0,0.

Thats because its just for hearing a sample. Its not even close to what has to be done for a Wavetable implementation. The higher level arl soundbank interpreter is very valuable, but on the hardware side we are missing the WT engine support.

In snd_vortex_playback_hw_adb, .rates = SNDRV_PCM_RATE_CONTINUOUS

1) Can the sample rate convertor be used to perform pitch shift ?

2) Can panning be done by changing the mixin-mixout gain for left/right channels of each voice ?

The current alsa driver do not even use the timer VORTEX_SMP_TIME or timer interrupt VORTEX_SMP_TIMER

3) Is there any way to find out the resolution of the timer ?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#12 lore raw

At Wed, 30 Mar 2005 10:13:23 +0200,

Quoted 4 lines · Alien

while you guys are working on that driver, is there anyone that has a 64bit setup? if not, i'd like to test out your driver in 64bit. i still have a number of issues with it (my card is an au8810).

Please report it on BTS, then...

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#13 lore raw

Op woensdag 30 maart 2005 12:08, schreef Takashi Iwai:

Quoted 11 lines

At Wed, 30 Mar 2005 10:13:23 +0200,

Quoted 3 lines · Alien

while you guys are working on that driver, is there anyone that has a 64bit setup? if not, i'd like to test out your driver in 64bit. i still have a number of issues with it (my card is an au8810).

Please report it on BTS, then...

Takashi

what is BTS? (some kind of Bug Tracking System ?)

#14 lore raw

At Wed, 30 Mar 2005 12:21:36 +0200,

Quoted 10 lines · Alien

[1 <text/plain; iso-8859-1 (7bit)>]
Op woensdag 30 maart 2005 12:08, schreef Takashi Iwai:

Quoted 7 lines

At Wed, 30 Mar 2005 10:13:23 +0200,

Quoted 3 lines · Alien

while you guys are working on that driver, is there anyone that has a 64bit setup? if not, i'd like to test out your driver in 64bit. i still have a number of issues with it (my card is an au8810).

Quoted 6 lines
Quoted 4 lines

Please report it on BTS, then...

Takashi

what is BTS? (some kind of Bug Tracking System ?)

Yes, we have a bug tracking system:

https://bugtrack.alsa-project.org/alsa-bug/

Each report is forwarded to alsa-devel ML, too.

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

author
#32 lore raw
In reply to Manuel Jander
Quoted 9 lines · Clemens Ladisch
Quoted 1 line · Raymond

What will be needed for a proper "MIDI" wavetable implementation ?

Have a look at the OPL4 driver, it's the simplest wavetable driver. However, it doesn't support downloading instruments.

http://www.midi.org/about-midi/tutorial/tutor.shtml

Do anyone know how to fix the error
"*** No rule to make target snd-au8830-synth.o', needed by modules'. Stop." ?

# ls /cvs/alsa-driver/pci/au88x0
au8810.c  au8830.c  au8830_seq.c    CVS       Makefile  snd-au8830.o
au8820.c  au8830.o  au8830_synth.c  Makefile  pci-ids.h  test

---------------------------------------------------------------------------

# more /cvs/alsa-driver/pci/au88x0/Makefile
ifndef SND_TOPDIR
SND_TOPDIR=../..
endif

include $(SND_TOPDIR)/toplevel.config
include $(SND_TOPDIR)/Makefile.conf

include $(SND_TOPDIR)/alsa-kernel/pci/au88x0/Makefile

snd-a8830-synth-objs := au8830_synth.o au8830_seq.o

sequencer = $(if $(subst y,,$(CONFIG_SND_SEQUENCER)),$(if $(1),m),$(if $(CONFIG_SND_SEQUENCER),$(1)))

obj-$(call sequencer,$(CONFIG_SND_AU8830)) += snd-au8830-synth.o

include $(SND_TOPDIR)/Rules.make

--------------------------------------------------------------------------

# cd /cvs/alsa-driver
#./cvscompile --with-cards=au8830 --with-sequencer=yes

...

make -C au88x0 fastdep
make[2]: Entering directory `/cvs/alsa-driver/pci/au88x0' /cvs/alsa-driver/include/sndversions.h was not updated gcc32 -M -D__KERNEL__ -D__isapnp_now__ -DMODULE=1 -I/cvs/alsa-driver/include -I/lib/modules/2.4.22-1.2199.nptl/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include au8830.c > .depend
make[2]: Leaving directory `/cvs/alsa-driver/pci/au88x0'

...

make -C au88x0 modules
make[2]: Entering directory `/cvs/alsa-driver/pci/au88x0' gcc32 -D__KERNEL__ -DMODULE=1 -I/cvs/alsa-driver/include -I/lib/modules/2.4.22-1.2199.nptl/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc
-iwithprefix include -DKBUILD_BASENAME=au8830 -c -o au8830.o au8830.c
ln -sf ../pci/au88x0/snd-au8830.o /cvs/alsa-driver/modules/snd-au8830.o rm -f snd-au8830.o
ld -r -o snd-au8830.o au8830.o
make[2]: *** No rule to make target snd-au8830-synth.o', needed by modules'. Stop.
make[2]: Leaving directory `/cvs/alsa-driver/pci/au88x0' make[1]: *** [_modsubdir_au88x0] Error 2
make[1]: Leaving directory `/cvs/alsa-driver/pci'
make: *** [compile] Error 1

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30

#33 lore raw
Quoted 1 line · Raymond

http://www.midi.org/about-midi/tutorial/tutor.shtml

42

Quoted 2 lines

make[2]: *** No rule to make target snd-au8830-synth.o', needed by modules'. Stop.

Yor makefile does not have the rle needed for this modle.

HTH
Clemens

-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30

#29 lore raw
In reply to Raymond

Hi,

Quoted 5 lines · Raymond

http://www.alsa-project.org/~frank/alsa-sequencer/node12.html

The midi port only need to support 16 voices, the 16 sample rate convertors are just enough to produce 16 voices using the mono sound samples in the soundfonts au30gm.arl

Yes, but the ADB engine is intended for normal wave playback. The WT engine is more suited for Wavetable stuff. It also has some envelope filters and such for effects. With only 16 voices, you will run out of them pretty fast (overlapping notes).

Quoted 3 lines

In snd_vortex_playback_hw_adb, .rates = SNDRV_PCM_RATE_CONTINUOUS

1) Can the sample rate convertor be used to perform pitch shift ?

Yes.

Quoted 2 lines

2) Can panning be done by changing the mixin-mixout gain for left/right channels of each voice ?

Yes, but again, we should better use the WT processing block which is there for that purpose.

Quoted 4 lines

The current alsa driver do not even use the timer VORTEX_SMP_TIME or timer interrupt VORTEX_SMP_TIMER

3) Is there any way to find out the resolution of the timer ?

Yes. Measuring it :)

Best Regards,

Signature · 10 lines
Manuel Jander
Dipl.-Ing. Fachrichtung Elektronik



-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/Info/Sentarus/hamr30
author
#4 lore raw
In reply to Clemens Ladisch

How do I find out where the problem is (segment fault when loading soundfont) ?

Unable to handle kernel NULL pointer dereference at virtual address 00000000
 printing eip:
00000000
*pde = 00000000
Oops: 0000
snd-pcm-oss snd-mixer-oss snd-seq-midi snd-au8830-synth
snd-seq-midi-emul snd-hwdep snd-seq-virmidi snd-seq-midi-event snd-seq
snd-intel8x0 snd-au8830 snd-uti
CPU:    0
EIP:    0060:[<00000000>]    Tainted: P
EFLAGS: 00010202

EIP is at [unresolved] (2.4.22-1.2199.nptl)
eax: da711280 ebx: d34c9a00 ecx: df450800 edx: 00008f88
esi: 00011f10 edi: dc96defc ebp: d34c9b00 esp: dc96dec4
ds: 0068 es: 0068 ss: 0068
Process asfxload (pid: 7569, stackpage=dc96d000)

Stack: e1f1df3a da711280 d34c9a00 db4d6b80 084b5f80 00011f10 00000000
00000000
       00008f68 00006190 00008f60 00008f88 00000000 00000000 084b5f60
ffffffea
       dc96df34 00000000 e1f1d22c df450800 084b5f60 00011f30 00000011
00000000
Call Trace:   [<e1f1df3a>] load_data [snd-au8830-synth] 0x16a (0xdc96dec4)

[<e1f1d22c>] snd_soundfont_load [snd-au8830-synth] 0x14c (0xdc96df0c) [<e1f20886>] snd_vortex_hwdep_load_patch [snd-au8830-synth] 0x96 (0xdc96df44)
[<e1f20960>] snd_vortex_hwdep_ioctl [snd-au8830-synth] 0x0 (0xdc96df6c) [<e1f17755>] snd_hwdep_ioctl [snd-hwdep] 0x65 (0xdc96df78) [<c0153719>] sys_ioctl [kernel] 0xc9 (0xdc96df94) [<c010dad4>] syscall_trace [kernel] 0x54 (0xdc96dfac) [<c01097b3>] tracesys [kernel] 0x1f (0xdc96dfc0)

Code:  Bad EIP value.
Quoted 9 lines · Manuel Jander
Quoted 5 lines · Raymond

http://www.alsa-project.org/~frank/alsa-sequencer/node12.html

The midi port only need to support 16 voices, the 16 sample rate convertors are just enough to produce 16 voices using the mono sound samples in the soundfonts au30gm.arl

Quoted 5 lines

Yes, but the ADB engine is intended for normal wave playback. The WT engine is more suited for Wavetable stuff. It also has some envelope filters and such for effects. With only 16 voices, you will run out of them pretty fast (overlapping notes).

Only enough for solo of single instrument and no reverb/chrous effect when using ADB.

Some of the "pitch-shift" rates of the sample seem to be outside the 5000Hz-48000Hz range of hw:0,0

How can I play the soundfont sample loaded in memory through hw:0,0 in snd-au8830-synth and bypass the 5000Hz-48000Hz range ?

Quoted 10 lines
Quoted 6 lines

The current alsa driver do not even use the timer VORTEX_SMP_TIME or timer interrupt VORTEX_SMP_TIMER

3) Is there any way to find out the resolution of the timer ?

Yes. Measuring it :)

The clock VORTEX_SMP_TIME seem to tick at 12.288Mhz (256 * 48000Hz) which is one-quarter of the 49.152Mhz oscillator on all the vortex sound cards.

Is there any way to disable the loading of the ALSA and au88x0 during boot if some fatal bug occur when testing the timer interrupt VORTEX_SMP_TIMER ?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

author
#5 lore raw
In reply to Clemens Ladisch
Quoted 7 lines · Takashi Iwai
Quoted 1 line · Raymond

1) Is the Trident Wavetable working ?

Very limited. It's no proper "MIDI" wavetable implementation. IIRC, only a module player worked with trident driver.

# aplaymidi -l
 Port    Client name                      Port name
 64:0    MPU-401 MIDI 0-0                 MPU-401 MIDI 0-0
 65:0    au8830 WaveTable                 au8830 Port 0
 65:1    au8830 WaveTable                 au8830 Port 1
 65:2    au8830 WaveTable                 au8830 Port 2
 65:3    au8830 WaveTable                 au8830 Port 3
# ls /proc/asound/au8830
codec97#0  midi0  midi2  midi4  pcm0p  pcm2p  wavetableD1
id         midi1  midi3  pcm0c  pcm1p  pcm3p
# more /proc/asound/au8830/wavetableD1
Device: au8830
Ports: 4
Addresses: 65:0 65:1 65:2 65:3
Use Counter: 0
Max Voices: 64
Allocated Voices: 0
Memory Size: 16777216
Memory Available: 16777216
Allocated Blocks: 0
SoundFonts: 0
Instruments: 0
Samples: 0
Locked Instruments: 0
Locked Samples: 0
# more /proc/asound/hwdep
00-02: au8830 WaveTable

1) What value of memsize will need to pass into snd_util_memhdr_new(int memsize) if au30gm.arl is about 5 Mb ?

2) Do au88x0 DMA (scatter-gather) has any alignment requirement or maximum size of the samples ?

3) Is it correct to implement functions snd_soundfont_load_arlpatch(), load_arlpatch() in soundfont.c to load arl ?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#6 lore raw

At Thu, 14 Apr 2005 23:31:17 +0800,

Quoted 43 lines · Raymond
Quoted 7 lines · Takashi Iwai
Quoted 1 line · Raymond

1) Is the Trident Wavetable working ?

Very limited. It's no proper "MIDI" wavetable implementation. IIRC, only a module player worked with trident driver.

# aplaymidi -l
  Port    Client name                      Port name
  64:0    MPU-401 MIDI 0-0                 MPU-401 MIDI 0-0
  65:0    au8830 WaveTable                 au8830 Port 0
  65:1    au8830 WaveTable                 au8830 Port 1
  65:2    au8830 WaveTable                 au8830 Port 2
  65:3    au8830 WaveTable                 au8830 Port 3
# ls /proc/asound/au8830
codec97#0  midi0  midi2  midi4  pcm0p  pcm2p  wavetableD1
id         midi1  midi3  pcm0c  pcm1p  pcm3p
# more /proc/asound/au8830/wavetableD1
Device: au8830
Ports: 4
Addresses: 65:0 65:1 65:2 65:3
Use Counter: 0
Max Voices: 64
Allocated Voices: 0
Memory Size: 16777216
Memory Available: 16777216
Allocated Blocks: 0
SoundFonts: 0
Instruments: 0
Samples: 0
Locked Instruments: 0
Locked Samples: 0
# more /proc/asound/hwdep
00-02: au8830 WaveTable
Quoted 8 lines

1) What value of memsize will need to pass into snd_util_memhdr_new(int memsize) if au30gm.arl is about 5 Mb ?

2) Do au88x0 DMA (scatter-gather) has any alignment requirement or maximum size of the samples ?

3) Is it correct to implement functions snd_soundfont_load_arlpatch(), load_arlpatch() in soundfont.c to load arl ?

I don't know of arl format, but if it's not compatible with soundfonts, stciking with the current soundfont handler doesn't make sense, IMO.

Takashi

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

author
#7 lore raw
Quoted 6 lines · Takashi Iwai

I don't know of arl format, but if it's not compatible with soundfonts, stciking with the current soundfont handler doesn't make sense, IMO.

"Another new feature in 2.048 drivers is the possibility to upload SF2 sound banks, but it's still very limitedbecause only 2MB, 4MB and 8MB SF2 2.0 banks can be uploaded. In fact, it's a long-awaited option because basically Aureal ARL format is plainly the SF2 2.0 but with its own addressing system."

Quoted from
http://www.xbitlabs.com/articles/multimedia/display/sq2500.html

1) Why samplerate is missing in soundfont_sample_info_t ?

The samples in au30gm.arl have different samplerates.

2) How can I create a stream_t for each voice in snd-au8830-synth and use those vortex_adbdma_**** functions in snd-au8830 modules (using ADB instead of WT) ?

3) Refer to
http://www.mail-archive.com/[email protected]/msg11719.html

Is it possible to use adb to play the sample loop using scatter gatter DMA ? ( by adding a flag in stream_t to indicate the sample has a loop )

4) Can those snd_vortex_synth_alloc(), snd_vortex_synth_free(), snd_vortex_synth_bzero() replaced by kmalloc(), kfree(), ... instead of implementing a Memory blocks Management system with those fuctions in util_mem.c ?

-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728

#8 lore raw

At Tue, 19 Apr 2005 16:39:01 +0800,

Quoted 14 lines · Raymond
Quoted 6 lines · Takashi Iwai

I don't know of arl format, but if it's not compatible with soundfonts, stciking with the current soundfont handler doesn't make sense, IMO.

"Another new feature in 2.048 drivers is the possibility to upload SF2 sound banks, but it's still very limitedbecause only 2MB, 4MB and 8MB SF2 2.0 banks can be uploaded. In fact, it's a long-awaited option because basically Aureal ARL format is plainly the SF2 2.0 but with its own addressing system."

Quoted 7 lines

Quoted from
http://www.xbitlabs.com/articles/multimedia/display/sq2500.html

1) Why samplerate is missing in soundfont_sample_info_t ?

The samples in au30gm.arl have different samplerates.

The sample rate is defined in soundfont_voice_info_t.

Quoted 4 lines

4) Can those snd_vortex_synth_alloc(), snd_vortex_synth_free(), snd_vortex_synth_bzero() replaced by kmalloc(), kfree(), ... instead of implementing a Memory blocks Management system with those fuctions in util_mem.c ?

The functions in util_mem.c are used to allocate/free blocks in a (virtually) linear address space dynamically. These functions themselves are no replacement for kmalloc/kfree at all.

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728

author
#9 lore raw

If I am using 16 SRC (hw:0,0) to play 16 voices instead of 64 voices WT engine, Is it possible to create a snd_pcm_substream_t for each voice in snd-au8830-synth and calling snd_vortex_pcm_open(), snd_vortex_pcm_hw_params(), snd_vortex_pcm_prepare(), snd_vortex_pcm_hw_free(), snd_vortex_pcm_close() in snd-au8830 ?

Quoted 8 lines · Takashi Iwai
Quoted 4 lines · Raymond

4) Can those snd_vortex_synth_alloc(), snd_vortex_synth_free(), snd_vortex_synth_bzero() replaced by kmalloc(), kfree(), ... instead of implementing a Memory blocks Management system with those fuctions in util_mem.c ?

Quoted 4 lines

The functions in util_mem.c are used to allocate/free blocks in a (virtually) linear address space dynamically. These functions themselves are no replacement for kmalloc/kfree at all.

http://www.mail-archive.com/[email protected]/msg06924.html

http://www.mail-archive.com/[email protected]/msg11687.html

Do we need to align the samples at 4K boundary ?

If yes, how do we implement offset_ptr(,,) and vortex_memblk_t ?

#define PAGE SIZE 4096

#define get_aligned_page(offset) ((offset) >> 12)
#define aligned_page_offset(page) ((page) << 12)

#define snd_vortex_synth_alloc(vortex,size)
snd_util_mem_alloc(vortex->memhdr, size)

#define snd_vortex_synth_free(vortex,blk)
snd_util_mem_free(vortex->memhdr,blk)

int snd_vortex_synth_bzero(vortex_t *vortex, snd_util_memblk_t *blk, int offset, int size)

{
	int page, nextofs, end_offset, temp, temp1;
	void *ptr;
	vortex_memblk_t *p = (vortex_memblk_t *)blk;

	offset += blk->offset & (PAGE_SIZE - 1);
	end_offset = offset + size;
	page = get_aligned_page(offset);
	do {
		nextofs = aligned_page_offset(page + 1);
		temp = nextofs - offset;
		temp1 = end_offset - offset;
		if (temp1 < temp)
			temp = temp1;
		ptr = offset_ptr(vortex, page + p->first_page, offset);
		if (ptr)
			memset(ptr, 0, temp);
		offset = nextofs;
		page++;
	} while (offset < end_offset);
	return 0;
}

/*
* copy_from_user(blk + offset, data, size)
*/
int snd_vortex_synth_copy_from_user(vortex_t *vortex, snd_util_memblk_t *blk, int offset, const char __user *data, int size)

{
	int page, nextofs, end_offset, temp, temp1;

	offset += blk->offset;
	end_offset = offset + size;
	page = get_aligned_page(offset) + 1;
	do {
		nextofs = aligned_page_offset(page);
		temp = nextofs - offset;
		temp1 = end_offset - offset;
		if (temp1 < temp)
			temp = temp1;
		if (copy_from_user(offset_ptr(vortex, offset), data, temp))
			return -EFAULT;
		offset = nextofs;
		data += temp;
		page++;
	} while (offset < end_offset);
	return 0;
}

-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728

author
#15 lore raw
In reply to Alien
Quoted 2 lines · Alien

while you guys are working on that driver, is there anyone that has a 64bit setup? if not, i'd like to test out your driver in 64bit. i still have a number of issues with it (my card is an au8810).

I do not have any 64bit setup, are you sure that your 64bit patch is correct ?

http://kerneltrap.org/node/3848

snd-au88x0 use the following macros to perform read/write of 32bit data from/to Memory Mapped I/O

#define hwread(x,y) readl((x)+((y)>>2))
#define hwwrite(x,y,z) writel((z),(x)+((y)>>2))

Would you provide the result of "lspci -vvvn" to find out the content of PCI BAR0 of your au8810 card ?

What is the model of your au8810 card (e.g. Vortex Advantage, SQ1500, SoundCom V90) ?

Do your 64bit machine has more than 4Gb memory ?

Quoted 3 lines

sometimes i start playing a song, and it starts playing a few second or so and hangs, then i kill the application and modprobe -r all sound modules and modprobe them again to make it work again.

Do your configure all the sound-apps to use ALSA instead of OSS ?

Quoted 17 lines

BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this:

snd-pcm-oss            59752  11
snd-mixer-oss          20480  1 snd-pcm-oss
snd-au8810             43760  220
snd-ac97-codec         83408  1 snd-au8810
snd-pcm               108172  112 snd-pcm-oss,snd-au8810,snd-ac97-codec
snd-page-alloc         10384  1 snd-pcm
gameport                3840  1 snd-au8810
snd-mpu401-uart        11904  1 snd-au8810
Quoted 4 lines

as you can see the snd-au8810 module seem to have an impossible number of "dependencies" (i think has to do with the number of unclosed sound-apps trying to be played; this could be since gaim is programmed to execute an 'aplay %s')

This is abnormal, au8810 has 16 SRC and snd-au8810 can play either 16 mono streams or 8 stereo streams concurrently.

Use alsamixer to find out which ac97 codec on your au8810.

Do you have any application using gameport, mpu401 or OSS ?

Quoted 7 lines

i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...

Do the log indicate the snd-au8810 is loaded properly ?

Quoted 4 lines

it is interesting to note that i also have an snd-emu10k1 as second card, which never gave problems like this, and i am always able to "modprobe -r snd-emu10k1" ...

snd-emu10k1 use PIO.

Would you post the content of /etc/modprobe.conf ?

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#16 lore raw

Op zaterdag 23 april 2005 06:04, schreef Raymond:

Quoted 7 lines
Quoted 3 lines · Alien

while you guys are working on that driver, is there anyone that has a 64bit setup? if not, i'd like to test out your driver in 64bit. i still have a number of issues with it (my card is an au8810).

I do not have any 64bit setup, are you sure that your 64bit patch is correct ?

well, i'm using it every day. and before the patch at modprobe time i got kernel oops... so...

I don't do much special things with it, I use it for line in and PCM and stereo output, i don't use the equalizer or anything fancy...

Quoted 1 line

http://kerneltrap.org/node/3848

I'm still using kernel 2.6.8, though it has a fairly large number of patches, but since i didn't decide this, it may very well be in there and I may have just used this... you may want this implemented, since both PIO and MMIO is used in your driver.

Quoted 5 lines

snd-au88x0 use the following macros to perform read/write of 32bit data from/to Memory Mapped I/O

#define hwread(x,y) readl((x)+((y)>>2))
#define hwwrite(x,y,z) writel((z),(x)+((y)>>2))

i think the memory mapped I/O is 64bit in 64bit CPU's.

Quoted 2 lines

Would you provide the result of "lspci -vvvn" to find out the content of PCI BAR0 of your au8810 card ?

ok:

[]# lspci -vvvn
00:00.0 Class 0600: 1106:3188 (rev 01)

	Subsystem: 1043:80a3
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort+ >SERR- <PERR-
	Latency: 8
	Region 0: Memory at 00000000e0000000 (32-bit, prefetchable) [size=256M]
	Capabilities: [80] AGP version 3.5
		Status: RQ=32 Iso- ArqSz=0 Cal=2 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ 
AGP3+ Rate=x8
		Command: RQ=1 ArqSz=0 Cal=2 SBA+ AGP+ GART64- 64bit- FW- Rate=x8
	Capabilities: [c0] #08 [0060]
	Capabilities: [68] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] #08 [8001]

00:01.0 Class 0604: 1106:b188
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR+ FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000f000-00000fff
Memory behind bridge: faf00000-fd0fffff
Prefetchable memory behind bridge: bfb00000-dfafffff
BridgeCtl: Parity- SERR+ NoISA- VGA+ MAbort- >Reset- FastB2B-
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:07.0 Class 0c00: 1106:3044 (rev 80) (prog-if 10)

	Subsystem: 1043:808a
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 64 (8000ns max)
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 0000000040000000 (32-bit, non-prefetchable) [size=2K]
	Region 1: I/O ports at 1000 [size=128]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1- D2+ AuxCurrent=0mA PME(D0-,D1-,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:09.0 Class 0400: 109e:036e (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 00000000dfe00000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:09.1 Class 0480: 109e:0878 (rev 11)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (1000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 00000000dff00000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0a.0 Class 0200: 11ab:4320 (rev 13)

	Subsystem: 1043:811a
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- 
SERR+ FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 64 (5750ns min, 7750ns max), cache line size 40
	Interrupt: pin A routed to IRQ 10
	Region 0: Memory at 00000000fd900000 (32-bit, non-prefetchable) [size=16K]
	Region 1: I/O ports at bc00 [size=256]
	Expansion ROM at 00000000fd800000 [disabled] [size=128K]
	Capabilities: [48] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=1 PME-
	Capabilities: [50] Vital Product Data

00:0c.0 Class 0401: 12eb:0003 (rev 02)

	Subsystem: 12eb:0003
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 

SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (500ns min, 20750ns max), cache line size 40
Interrupt: pin A routed to IRQ 10
Region 0: Memory at 00000000fdc00000 (32-bit, non-prefetchable) [size=256K] Region 1: I/O ports at dc00 [size=8]
Region 2: I/O ports at cc00 [size=8]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA PME(D0-,D1-,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0d.0 Class 0401: 1102:0002 (rev 0a)

	Subsystem: 1102:8066
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR+ FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 64 (500ns min, 5000ns max)
	Interrupt: pin A routed to IRQ 3
	Region 0: I/O ports at ec00 [size=32]
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0d.1 Class 0980: 1102:7002 (rev 0a)

	Subsystem: 1102:0020
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR+ FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 64
	Region 0: I/O ports at b000 [size=8]
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0e.0 Class 0200: 10b7:9004 (rev 04)

	Subsystem: 10b7:9004
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- 
SERR+ FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 64 (2500ns min, 12000ns max), cache line size 40
	Interrupt: pin A routed to IRQ 11
	Region 0: I/O ports at b400 [size=128]
	Region 1: Memory at 00000000fde00000 (32-bit, non-prefetchable) [size=128]
	Expansion ROM at 00000000fdd00000 [disabled] [size=128K]
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0f.0 Class 0104: 1106:3149 (rev 80)

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 64
	Interrupt: pin B routed to IRQ 10
	Region 0: I/O ports at e400 [size=8]
	Region 1: I/O ports at e000 [size=4]
	Region 2: I/O ports at d800 [size=8]
	Region 3: I/O ports at d400 [size=4]
	Region 4: I/O ports at d000 [size=16]
	Region 5: I/O ports at c800 [size=256]
	Capabilities: [c0] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0f.1 Class 0101: 1106:0571 (rev 06) (prog-if 8a [Master SecP PriP])

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 32
	Interrupt: pin A routed to IRQ 11
	Region 4: I/O ports at fc00 [size=16]
	Capabilities: [c0] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:10.0 Class 0c03: 1106:3038 (rev 81)

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- 

SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64, cache line size 40
Interrupt: pin A routed to IRQ 11
Region 4: I/O ports at b800 [size=32]
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:10.1 Class 0c03: 1106:3038 (rev 81)

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- 

SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64, cache line size 40
Interrupt: pin A routed to IRQ 11
Region 4: I/O ports at c000 [size=32]
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:10.2 Class 0c03: 1106:3038 (rev 81)

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- 

SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64, cache line size 40
Interrupt: pin B routed to IRQ 10
Region 4: I/O ports at c400 [size=32]
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:10.4 Class 0c03: 1106:3104 (rev 86) (prog-if 20)

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- 

SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64, cache line size 40
Interrupt: pin C routed to IRQ 3
Region 0: Memory at 00000000fdf00000 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:11.0 Class 0601: 1106:3227

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ 

SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:18.0 Class 0600: 1022:1100
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-

	Capabilities: [80] #08 [2101]

00:18.1 Class 0600: 1022:1101
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-

00:18.2 Class 0600: 1022:1102
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-

00:18.3 Class 0600: 1022:1103
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping-
SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR-

01:00.0 Class 0300: 10de:0322 (rev a1)

	Subsystem: 10b0:0427
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 248 (1250ns min, 250ns max)
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 00000000fb000000 (32-bit, non-prefetchable) [size=16M]
	Region 1: Memory at 00000000c0000000 (32-bit, prefetchable) [size=256M]
	Expansion ROM at 00000000fd000000 [disabled] [size=128K]
	Capabilities: [60] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [44] AGP version 3.0
		Status: RQ=32 Iso- ArqSz=0 Cal=3 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ 
AGP3+ Rate=x4,x8
		Command: RQ=32 ArqSz=0 Cal=0 SBA+ AGP+ GART64- 64bit- FW- Rate=x8
Quoted 2 lines

What is the model of your au8810 card (e.g. Vortex Advantage, SQ1500, SoundCom V90) ?

bulk model, Aureal Vortex something or other...
lspci gives: 00:0c.0 Multimedia audio controller: Aureal Semiconductor AU8810 Vortex Digital Audio Processor (rev 02)

Quoted 1 line

Do your 64bit machine has more than 4Gb memory ?

no

Quoted 5 lines
Quoted 3 lines

sometimes i start playing a song, and it starts playing a few second or so and hangs, then i kill the application and modprobe -r all sound modules and modprobe them again to make it work again.

Do your configure all the sound-apps to use ALSA instead of OSS ?

all of them do, but I do have a few that use OSS-emulation too

Quoted 16 lines
Quoted 16 lines

BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this:

snd-pcm-oss            59752  11
snd-mixer-oss          20480  1 snd-pcm-oss
snd-au8810             43760  220
snd-ac97-codec         83408  1 snd-au8810
snd-pcm               108172  112 snd-pcm-oss,snd-au8810,snd-ac97-codec
snd-page-alloc         10384  1 snd-pcm
gameport                3840  1 snd-au8810
snd-mpu401-uart        11904  1 snd-au8810
Quoted 7 lines
Quoted 4 lines

as you can see the snd-au8810 module seem to have an impossible number of "dependencies" (i think has to do with the number of unclosed sound-apps trying to be played; this could be since gaim is programmed to execute an 'aplay %s')

This is abnormal, au8810 has 16 SRC and snd-au8810 can play either 16 mono streams or 8 stereo streams concurrently.

of course it is abnormal...

Quoted 1 line

Use alsamixer to find out which ac97 codec on your au8810.

chip: Wolfson WM9701A

Quoted 1 line

Do you have any application using gameport, mpu401 or OSS ?

haven't gotten any gameport to work, not on the emu10k1 nor the au8810, never use MPU401 and i use OSS emulation on games like AA, ET, OpenAL...

Quoted 8 lines
Quoted 6 lines

i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...

Do the log indicate the snd-au8810 is loaded properly ?

yes of course: it gives

vortex: reg error

as always ;-)

Quoted 7 lines
Quoted 3 lines

it is interesting to note that i also have an snd-emu10k1 as second card, which never gave problems like this, and i am always able to "modprobe -r snd-emu10k1" ...

snd-emu10k1 use PIO.

Would you post the content of /etc/modprobe.conf ?

I'm not using that right now:

if i want to use sound after bootup (which doesn't happen often at all), I do:

modprobe snd-au8810
modprobe snd-emu10k1
modprobe snd-pcm-oss
alsactl restore -f /data/path/mixer

author
#17 lore raw
Quoted 7 lines · Alien
Quoted 5 lines

Would you provide the result of "lspci -vvvn" to find out the content of PCI BAR0 of your au8810 card ?

Quoted 7 lines

ok:

[]# lspci -vvvn

00:00.0 Class 0600: 1106:3188 (rev 01)

	Subsystem: 1043:80a3
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 

Stepping-

Quoted 2 lines

SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-

<TAbort-

Quoted 5 lines

<MAbort+ >SERR- <PERR-
Latency: 8
Region 0: Memory at 00000000e0000000 (32-bit, prefetchable) [size=256M]
Capabilities: [80] AGP version 3.5
Status: RQ=32 Iso- ArqSz=0 Cal=2 SBA+ ITACoh- GART64- HTrans-

64bit- FW+

Quoted 5 lines

AGP3+ Rate=x8

		Command: RQ=1 ArqSz=0 Cal=2 SBA+ AGP+ GART64- 64bit- FW- Rate=x8
	Capabilities: [c0] #08 [0060]
	Capabilities: [68] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA 

PME(D0-,D1-,D2-,D3hot-,D3cold-)

Quoted 53 lines
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] #08 [8001]

00:0f.0 Class 0104: 1106:3149 (rev 80)

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 64
	Interrupt: pin B routed to IRQ 10
	Region 0: I/O ports at e400 [size=8]
	Region 1: I/O ports at e000 [size=4]
	Region 2: I/O ports at d800 [size=8]
	Region 3: I/O ports at d400 [size=4]
	Region 4: I/O ports at d000 [size=16]
	Region 5: I/O ports at c800 [size=256]
	Capabilities: [c0] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0f.1 Class 0101: 1106:0571 (rev 06) (prog-if 8a [Master SecP PriP])

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- 
SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 32
	Interrupt: pin A routed to IRQ 11
	Region 4: I/O ports at fc00 [size=16]
	Capabilities: [c0] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:10.4 Class 0c03: 1106:3104 (rev 86) (prog-if 20)

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- 

SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64, cache line size 40
Interrupt: pin C routed to IRQ 3
Region 0: Memory at 00000000fdf00000 (32-bit, non-prefetchable) [size=256]
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:11.0 Class 0601: 1106:3227

	Subsystem: 1043:80ed
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ 
Quoted 16 lines

SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Quoted 6 lines
Quoted 6 lines

BUT: sometimes not only that happens, but also when i try to kill the apps it will not kill. when that happens, all kill, killall, top, ps aux commands hang at the command line and cannot be killed by CTRL-C or otherwise, i have been able to see that when i stopped my display managener I did an lsmod and it gave something like this:

http://lists.nongnu.org/archive/html/openvortex-dev/2003-08/msg00014.html

May be your problem is related to the well-known conflict between Vortex cards and VIA chipsets ?

You better post your problem on the openvortex-dev mailing list and remember to mention that you are using VIA chipset.

-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix

author
#10 lore raw
In reply to Takashi Iwai
Quoted 10 lines · Takashi Iwai
Quoted 4 lines · Raymond

1) Why samplerate is missing in soundfont_sample_info_t ?

The samples in au30gm.arl have different samplerates.

The sample rate is defined in soundfont_voice_info_t.

The rate of some samples are 44100Hz but most of the samples are not 44100Hz

It seem that only layers of generators and samples are loaded from the soundfont file and none of the modulators are passed from the soundfont to the wavetable synth.

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20

author
#18 lore raw
In reply to Alien

It is abnormal to get the message "vortex: reg error" on your au8810, it does not appear in my au8830.

http://savannah.nongnu.org/support/?func=detailitem&item_id=102951

You will need to find out the code which cause "vortex: reg error".

You may try the following:

1) Remove code relating to SPDIF ( only SQ1500 and au8830 has SPDIF )

2) use hwwrite(vortex->mmio, VORTEX_CODEC_EN, hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_CODEC0);

No need to use (EN_CODEC0 | EN_CODEC1 ) since your au8810 only has stereo codec.

You can use .openalrc to configure OpenAL to use ALSA

(define devices '(alsa))
(define speaker-num 2)
(define alsa-out-device "hw:0,0")
(define alsa-in-device "hw:0,0")

Quoted 21 lines
Quoted 3 lines

Use alsamixer to find out which ac97 codec on your au8810.

chip: Wolfson WM9701A

Quoted 1 line

Do you have any application using gameport, mpu401 or OSS ?

haven't gotten any gameport to work, not on the emu10k1 nor the au8810, never use MPU401 and i use OSS emulation on games like AA, ET, OpenAL...

Quoted 7 lines
Quoted 6 lines

i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...

Quoted 10 lines
Quoted 1 line

Do the log indicate the snd-au8810 is loaded properly ?

yes of course: it gives

vortex: reg error

as always ;-)

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click

#19 lore raw

Op vrijdag 13 mei 2005 16:05, schreef Raymond:

Quoted 6 lines

It is abnormal to get the message "vortex: reg error" on your au8810, it does not appear in my au8830.

http://savannah.nongnu.org/support/?func=detailitem&item_id=102951

You will need to find out the code which cause "vortex: reg error".

if i have some time, i will try it...

Quoted 9 lines

You may try the following:

1) Remove code relating to SPDIF ( only SQ1500 and au8830 has SPDIF )

2) use hwwrite(vortex->mmio, VORTEX_CODEC_EN, hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_CODEC0);

No need to use (EN_CODEC0 | EN_CODEC1 ) since your au8810 only has stereo codec.

you sure about that, the card told me it had stereo and 4 speaker mode? or are we talking about different stuff?

Quoted 6 lines

You can use .openalrc to configure OpenAL to use ALSA

(define devices '(alsa))
(define speaker-num 2)
(define alsa-out-device "hw:0,0")
(define alsa-in-device "hw:0,0")

will try

Quoted 33 lines
Quoted 16 lines
Quoted 1 line

Use alsamixer to find out which ac97 codec on your au8810.

chip: Wolfson WM9701A

Quoted 1 line

Do you have any application using gameport, mpu401 or OSS ?

haven't gotten any gameport to work, not on the emu10k1 nor the au8810, never use MPU401 and i use OSS emulation on games like AA, ET, OpenAL...

Quoted 7 lines
Quoted 6 lines

i've had this major crash below only 3 times; and the logs didn't detect anything specific at the time. the only thing the logs mentioned at that time was an ntpd sync going on; so the only thing i can think of is that at a certain moment when a sync is going on, some kind of lock is holding cause this to happen... the only thing that i can do to fix this is reset...

Quoted 7 lines
Quoted 1 line

Do the log indicate the snd-au8810 is loaded properly ?

yes of course: it gives

vortex: reg error

as always ;-)

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Alsa-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

author
#20 lore raw

Would you post the result of "more
/proc/asound/au8810/codec97#0/ac97#0-0+regs" ?

http://www.wolfsonmicro.com/products/digital_audio/ac97/WM9701/

Unless ALSA mis-identify the AC97 codec on your au8810, WM9701A is a stereo codec

Do alsamixer or windows driver told you that your card has "4 speakers mode" or your card has out1,out2 jacks and coaxial SPDIF ?

http://www.watch.impress.co.jp/akiba/hotline/991106/newitem.html#19

EN_CODEC0 - enable the front channels of au88x0 to ac97 codec

EN_CODEC1 - enable the rear channels of au88x0 to ac97 codec

Quoted 17 lines · Alien

Op vrijdag 13 mei 2005 16:05, schreef Raymond:

Quoted 6 lines

It is abnormal to get the message "vortex: reg error" on your au8810, it does not appear in my au8830.

http://savannah.nongnu.org/support/?func=detailitem&item_id=102951

You will need to find out the code which cause "vortex: reg error".

if i have some time, i will try it...

Quoted 4 lines

You may try the following:

1) Remove code relating to SPDIF ( only SQ1500 and au8830 has SPDIF )

Quoted 16 lines
Quoted 5 lines

2) use hwwrite(vortex->mmio, VORTEX_CODEC_EN, hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_CODEC0);

No need to use (EN_CODEC0 | EN_CODEC1 ) since your au8810 only has stereo codec.

you sure about that, the card told me it had stereo and 4 speaker mode? or are we talking about different stuff?

Quoted 5 lines
Quoted 5 lines
Quoted 1 line

Use alsamixer to find out which ac97 codec on your au8810.

chip: Wolfson WM9701A

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click

#21 lore raw

Op zaterdag 14 mei 2005 10:12, schreef Raymond:

Quoted 10 lines

Would you post the result of "more
/proc/asound/au8810/codec97#0/ac97#0-0+regs" ?

http://www.wolfsonmicro.com/products/digital_audio/ac97/WM9701/

Unless ALSA mis-identify the AC97 codec on your au8810, WM9701A is a stereo codec

Do alsamixer or windows driver told you that your card has "4 speakers mode" or your card has out1,out2 jacks and coaxial SPDIF ?

I have no windows or a 32bit OS. the card manual told me it had a 4 speaker and stereo mode, i never used the 4 speaker mode, so I can't be sure of anything like that. I'll try and look for the card manual some time.

I'd like to have other stuff fixed first, if you don't mind, my volume is randomly changing at certain points (the 32bit compile didn't have that) and sometimes the audio modules hang (since that patch, i haven't had that problem anymore).

furthermore, i notice that I can't choose between 41000 and 48000 Hz anymore in alsamixer, and that the equalizer sliders look odd (though i never used them). i can tell you only what changed versus the 32bit mode, and with/without the patch.

i got the vortex reg error in the 32bit version too. and i never had a problem.

Quoted 44 lines

http://www.watch.impress.co.jp/akiba/hotline/991106/newitem.html#19

EN_CODEC0 - enable the front channels of au88x0 to ac97 codec

EN_CODEC1 - enable the rear channels of au88x0 to ac97 codec

Quoted 14 lines · Alien

Op vrijdag 13 mei 2005 16:05, schreef Raymond:

Quoted 6 lines

It is abnormal to get the message "vortex: reg error" on your au8810, it does not appear in my au8830.

http://savannah.nongnu.org/support/?func=detailitem&item_id=102951

You will need to find out the code which cause "vortex: reg error".

if i have some time, i will try it...

Quoted 4 lines

You may try the following:

1) Remove code relating to SPDIF ( only SQ1500 and au8830 has SPDIF )

Quoted 12 lines
Quoted 5 lines

2) use hwwrite(vortex->mmio, VORTEX_CODEC_EN, hwread(vortex->mmio, VORTEX_CODEC_EN) | EN_CODEC0);

No need to use (EN_CODEC0 | EN_CODEC1 ) since your au8810 only has stereo codec.

you sure about that, the card told me it had stereo and 4 speaker mode? or are we talking about different stuff?

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

Use alsamixer to find out which ac97 codec on your au8810.

chip: Wolfson WM9701A

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Alsa-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

author
#22 lore raw
Quoted 5 lines · Alien

I'd like to have other stuff fixed first, if you don't mind, my volume is randomly changing at certain points (the 32bit compile didn't have that) and sometimes the audio modules hang (since that patch, i haven't had that problem anymore).

furthermore, i notice that I can't choose between 41000 and 48000 Hz anymore in alsamixer, and that the equalizer sliders look odd (though i never used them). i can tell you only what changed versus the 32bit mode, and with/without the patch.

The enumerated SPDIF sample rate (32000,44100,48000) control has been replaced by the IEC958 control.

http://sourceforge.net/mailarchive/message.php?msg_id=11102457

The easy way is to use "vortexcontrol" to set the 10-bands (31,63,124,250,500,1K,2K,4K,8K,16K Hz) stereo equalizer to Jazz, Pop, Classical, Rock, Dance or user defined, otherwise you need to use alsamixer to set the equalizer in bypass mode.

Do "vortexcontrol" need any patch to work in 64-bits platform ?

Quoted 6 lines
Quoted 1 line

Would you post the content of /etc/modprobe.conf ?

I'm not using that right now:

if i want to use sound after bootup (which doesn't happen often at

all), I do:

Quoted 5 lines

modprobe snd-au8810
modprobe snd-emu10k1
modprobe snd-pcm-oss
alsactl restore -f /data/path/mixer

Why do you use dmix when both cards support hardware mixing ?

http://sourceforge.net/mailarchive/message.php?msg_id=9585516

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

#23 lore raw

Op maandag 6 juni 2005 04:56, schreef Raymond:

Quoted 14 lines
Quoted 9 lines · Alien

I'd like to have other stuff fixed first, if you don't mind, my volume is randomly changing at certain points (the 32bit compile didn't have that) and sometimes the audio modules hang (since that patch, i haven't had that problem anymore).

furthermore, i notice that I can't choose between 41000 and 48000 Hz anymore in alsamixer, and that the equalizer sliders look odd (though i never used them). i can tell you only what changed versus the 32bit mode, and with/without the patch.

The enumerated SPDIF sample rate (32000,44100,48000) control has been replaced by the IEC958 control.

Quoted 8 lines

http://sourceforge.net/mailarchive/message.php?msg_id=11102457

The easy way is to use "vortexcontrol" to set the 10-bands (31,63,124,250,500,1K,2K,4K,8K,16K Hz) stereo equalizer to Jazz, Pop, Classical, Rock, Dance or user defined, otherwise you need to use alsamixer to set the equalizer in bypass mode.

Do "vortexcontrol" need any patch to work in 64-bits platform ?

i have no idea, i never used it.

Quoted 6 lines
Quoted 5 lines
Quoted 1 line

Would you post the content of /etc/modprobe.conf ?

I'm not using that right now:

if i want to use sound after bootup (which doesn't happen often at

Quoted 7 lines

all), I do:

Quoted 4 lines

modprobe snd-au8810
modprobe snd-emu10k1
modprobe snd-pcm-oss
alsactl restore -f /data/path/mixer

Why do you use dmix when both cards support hardware mixing ?

i don't use dmix, this aplay -L output comes from my distro, right now, i'm using either default, or plug:hw:1 (for the SBLive, connected to a surround heaphone)

Quoted 24 lines

http://sourceforge.net/mailarchive/message.php?msg_id=9585516

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

#24 lore raw

Suspicious Attachment

----------------------------------------------------------------------
Warning: Message delivery wasn't performed.

Reason: Our virus scanner detected very suspicious code in the attachment of a mail addressed to a user of our system.

The following message will not be delivered:

From: [email protected]
To: [email protected]
Subj: Re: [Alsa-devel] Re: au88x0_synth
Date: X-Original-Mon, 6 Jun 2005 10:49:37 +0200
Mon, 6 Jun 2005 10:49:37 +0200
Virus:

Feel free to contact [email protected] if you can't cope with it.
----------------------------------------------------------------------

This mail was automatically generated by TrashScan v0.12

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

author
#25 lore raw
In reply to Alien

What do you mean when you say "the equalizer sliders look odd" ?

Would you post the settings of the equalizer from "/data/path/mixer" or /etc/asound.state ?

Quoted 23 lines · Alien
Quoted 23 lines
Quoted 9 lines · Alien

I'd like to have other stuff fixed first, if you don't mind, my volume is randomly changing at certain points (the 32bit compile didn't have that) and sometimes the audio modules hang (since that patch, i haven't had that problem anymore).

furthermore, i notice that I can't choose between 41000 and 48000 Hz anymore in alsamixer, and that the equalizer sliders look odd (though i never used them). i can tell you only what changed versus the 32bit mode, and with/without the patch.

The enumerated SPDIF sample rate (32000,44100,48000) control has been replaced by the IEC958 control.

http://sourceforge.net/mailarchive/message.php?msg_id=11102457

The easy way is to use "vortexcontrol" to set the 10-bands (31,63,124,250,500,1K,2K,4K,8K,16K Hz) stereo equalizer to Jazz, Pop, Classical, Rock, Dance or user defined, otherwise you need to use alsamixer to set the equalizer in bypass mode.

Quoted 19 lines
Quoted 1 line

Do "vortexcontrol" need any patch to work in 64-bits platform ?

i have no idea, i never used it.

Quoted 13 lines
Quoted 5 lines
Quoted 1 line

Would you post the content of /etc/modprobe.conf ?

I'm not using that right now:

if i want to use sound after bootup (which doesn't happen often at

all), I do:

Quoted 4 lines

modprobe snd-au8810
modprobe snd-emu10k1
modprobe snd-pcm-oss
alsactl restore -f /data/path/mixer

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

#26 lore raw

Op maandag 6 juni 2005 13:03, schreef Raymond:

Quoted 1 line

What do you mean when you say "the equalizer sliders look odd" ?

i'll show you: see png file, notice that the first 2 peaks are stereo, and the last 2 peaks are mono... ???

Quoted 2 lines

Would you post the settings of the equalizer from "/data/path/mixer" or /etc/asound.state ?

I must also say that when restoring, i always get one warning: something with bad value for... somethingorother

/etc/asound.state:

state.au8810 {
	control.1 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'EQ Enable'
		value false
	}
	control.2 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ0 31Hz'
		value.0 16375
		value.1 16375
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ1 63Hz'
		value.0 16392
		value.1 16392
	}
	control.4 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ2 125Hz'
		value.0 16375
		value.1 16375
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ3 250Hz'
		value.0 16022
		value.1 16022
	}
	control.6 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ4 500Hz'
		value.0 16022
		value.1 16022
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ5 1KHz'
		value.0 16022
		value.1 16022
	}
	control.8 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ6 2KHz'
		value.0 16022
		value.1 16022
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ7 4KHz'
		value.0 16022
		value.1 16022
	}
	control.10 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ8 8KHz'
		value.0 16022
		value.1 16022
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ9 16KHz'
		value.0 16022
		value.1 16022
	}
	control.12 {
		comment.access read
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ Peaks'
		value.0 0
		value.1 0
		value.2 0
		value.3 0
		value.4 0
		value.5 0
		value.6 0
		value.7 0
		value.8 0
		value.9 0
		value.10 0
		value.11 0
		value.12 0
		value.13 0
		value.14 0
		value.15 0
		value.16 0
		value.17 0
		value.18 0
		value.19 0
	}
	control.13 {
		comment.access 'read write'
		comment.type IEC958
		iface PCM
		name 'IEC958 Playback Default'
		value 
'0082000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.14 {
		comment.access read
		comment.type IEC958
		iface PCM
		name 'IEC958 Playback Con Mask'
		value 
ffffff0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
	}
	control.15 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.16 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Master Playback Volume'
		value.0 24
		value.1 24
	}
	control.17 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Master Mono Playback Switch'
		value true
	}
	control.18 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Master Mono Playback Volume'
		value 24
	}
	control.19 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'PC Speaker Playback Switch'
		value false
	}
	control.20 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 15'
		iface MIXER
		name 'PC Speaker Playback Volume'
		value 0
	}
	control.21 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Phone Playback Switch'
		value false
	}
	control.22 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Phone Playback Volume'
		value 0
	}
	control.23 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Mic Playback Switch'
		value false
	}
	control.24 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Mic Playback Volume'
		value 0
	}
	control.25 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Mic Boost (+20dB)'
		value false
	}
	control.26 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Line Playback Switch'
		value true
	}
	control.27 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Line Playback Volume'
		value.0 24
		value.1 24
	}
	control.28 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'CD Playback Switch'
		value true
	}
	control.29 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'CD Playback Volume'
		value.0 24
		value.1 24
	}
	control.30 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Video Playback Switch'
		value false
	}
	control.31 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Video Playback Volume'
		value.0 0
		value.1 0
	}
	control.32 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Aux Playback Switch'
		value false
	}
	control.33 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Aux Playback Volume'
		value.0 0
		value.1 0
	}
	control.34 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'PCM Playback Switch'
		value true
	}
	control.35 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'PCM Playback Volume'
		value.0 24
		value.1 24
	}
	control.36 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mic
		comment.item.1 CD
		comment.item.2 Video
		comment.item.3 Aux
		comment.item.4 Line
		comment.item.5 Mix
		comment.item.6 'Mix Mono'
		comment.item.7 Phone
		iface MIXER
		name 'Capture Source'
		value.0 Line
		value.1 Line
	}
	control.37 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Capture Switch'
		value true
	}
	control.38 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 15'
		iface MIXER
		name 'Capture Volume'
		value.0 12
		value.1 12
	}
	control.39 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mix
		comment.item.1 Mic
		iface MIXER
		name 'Mono Output Select'
		value Mix
	}
	control.40 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mic1
		comment.item.1 Mic2
		iface MIXER
		name 'Mic Select'
		value Mic1
	}
}
author
#27 lore raw

From your png, it seem that you are not using the alsamixer in the latest version of alsa-utils.

The alsamixer or amixer are unable to display EQ Peaks correctly, the EQ
Peaks is a volatile read-only kcontrol which return 20 EQ peak values from the 10-bands stereo hardware equalizer in au8810/au8830.

The graphic equalizer in vortexcontrol use a timer callback to read and display the EQ peaks when EQ Enable switch is on. (attached vc_eq.png)

Quoted 4 lines · Alien
Quoted 2 lines

What do you mean when you say "the equalizer sliders look odd" ?

Quoted 8 lines

i'll show you: see png file, notice that the first 2 peaks are stereo, and the last 2 peaks are mono... ???

Quoted 2 lines

Would you post the settings of the equalizer from "/data/path/mixer" or /etc/asound.state ?

I must also say that when restoring, i always get one warning: something with bad value for... somethingorother

When you upgrade from ALSA 1.0.8 to ALSA 1.0.9 ,the SPDIF sample rate control ( ALSA 1.0.8 ) has been replaced by the IEC958 control ( ALSA 1.0.9 ).

You will need to delete old setting in "/data/path/mixer" and use
alsactl to store the new setting, otherwise error will occur if you try to use alsactrl to restore the value of emunerated spdif sample rate control settings saved by the previous ALSA version to the au8810 in ALSA 1.0.9 driver.

Your /etc/asound.state seem OK and the equalizer is OFF.

Quoted 349 lines

/etc/asound.state:

state.au8810 {
	control.1 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'EQ Enable'
		value false
	}
	control.2 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ0 31Hz'
		value.0 16375
		value.1 16375
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ1 63Hz'
		value.0 16392
		value.1 16392
	}
	control.4 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ2 125Hz'
		value.0 16375
		value.1 16375
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ3 250Hz'
		value.0 16022
		value.1 16022
	}
	control.6 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ4 500Hz'
		value.0 16022
		value.1 16022
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ5 1KHz'
		value.0 16022
		value.1 16022
	}
	control.8 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ6 2KHz'
		value.0 16022
		value.1 16022
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ7 4KHz'
		value.0 16022
		value.1 16022
	}
	control.10 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ8 8KHz'
		value.0 16022
		value.1 16022
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ9 16KHz'
		value.0 16022
		value.1 16022
	}
	control.12 {
		comment.access read
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ Peaks'
		value.0 0
		value.1 0
		value.2 0
		value.3 0
		value.4 0
		value.5 0
		value.6 0
		value.7 0
		value.8 0
		value.9 0
		value.10 0
		value.11 0
		value.12 0
		value.13 0
		value.14 0
		value.15 0
		value.16 0
		value.17 0
		value.18 0
		value.19 0
	}
	control.13 {
		comment.access 'read write'
		comment.type IEC958
		iface PCM
		name 'IEC958 Playback Default'
		value 
'0082000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
	}
	control.14 {
		comment.access read
		comment.type IEC958
		iface PCM
		name 'IEC958 Playback Con Mask'
		value 
ffffff0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
	}
	control.15 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.16 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Master Playback Volume'
		value.0 24
		value.1 24
	}
	control.17 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Master Mono Playback Switch'
		value true
	}
	control.18 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Master Mono Playback Volume'
		value 24
	}
	control.19 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'PC Speaker Playback Switch'
		value false
	}
	control.20 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 15'
		iface MIXER
		name 'PC Speaker Playback Volume'
		value 0
	}
	control.21 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Phone Playback Switch'
		value false
	}
	control.22 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Phone Playback Volume'
		value 0
	}
	control.23 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Mic Playback Switch'
		value false
	}
	control.24 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Mic Playback Volume'
		value 0
	}
	control.25 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Mic Boost (+20dB)'
		value false
	}
	control.26 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Line Playback Switch'
		value true
	}
	control.27 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Line Playback Volume'
		value.0 24
		value.1 24
	}
	control.28 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'CD Playback Switch'
		value true
	}
	control.29 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'CD Playback Volume'
		value.0 24
		value.1 24
	}
	control.30 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Video Playback Switch'
		value false
	}
	control.31 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Video Playback Volume'
		value.0 0
		value.1 0
	}
	control.32 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Aux Playback Switch'
		value false
	}
	control.33 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Aux Playback Volume'
		value.0 0
		value.1 0
	}
	control.34 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'PCM Playback Switch'
		value true
	}
	control.35 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'PCM Playback Volume'
		value.0 24
		value.1 24
	}
	control.36 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mic
		comment.item.1 CD
		comment.item.2 Video
		comment.item.3 Aux
		comment.item.4 Line
		comment.item.5 Mix
		comment.item.6 'Mix Mono'
		comment.item.7 Phone
		iface MIXER
		name 'Capture Source'
		value.0 Line
		value.1 Line
	}
	control.37 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Capture Switch'
		value true
	}
	control.38 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 15'
		iface MIXER
		name 'Capture Volume'
		value.0 12
		value.1 12
	}
	control.39 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mix
		comment.item.1 Mic
		iface MIXER
		name 'Mono Output Select'
		value Mix
	}
	control.40 {
		comment.access 'read write'
Quoted 8 lines
		comment.type ENUMERATED
		comment.item.0 Mic1
		comment.item.1 Mic2
		iface MIXER
		name 'Mic Select'
		value Mic1
	}
}

After eight instances of "mplayer" playing stereo music concurrently in my 32-bits machine and start an instance of aplay.

aplay outls.wav
Playing WAVE 'outls.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo

aplay: set_params:935: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 22050
PERIOD_TIME: (46439 46440)
PERIOD_SIZE: 1024
PERIOD_BYTES: 4096
PERIODS: 11
BUFFER_TIME: (510839 510840)
BUFFER_SIZE: 11264
BUFFER_BYTES: 45056
TICK_TIME: 10000

aplay abort as there is no more SampleRateConvertors available.

There is no deadlock or hang. After the "mplayer" finish playing and release the SRCs, I can start another instance of ALSA application to play music.

#28 lore raw

Op dinsdag 7 juni 2005 15:44, schreef Raymond:

Quoted 2 lines

From your png, it seem that you are not using the alsamixer in the
latest version of alsa-utils.

since i'm using alsa CVS for driver, kernel and lib; i'll use utils from CVS as well...

Quoted 3 lines

The alsamixer or amixer are unable to display EQ Peaks correctly, the EQ Peaks is a volatile read-only kcontrol which return 20 EQ peak values from the 10-bands stereo hardware equalizer in au8810/au8830.

didn't know that, in the previous versions, i know that all these peaks were listed as mono sliders, not partly mono and stereo...

Quoted 2 lines

The graphic equalizer in vortexcontrol use a timer callback to read and display the EQ peaks when EQ Enable switch is on. (attached vc_eq.png)

vortexcontrol looks nice, from what alsa CVS package is that?

Quoted 9 lines
Quoted 8 lines · Alien
Quoted 1 line

What do you mean when you say "the equalizer sliders look odd" ?

i'll show you: see png file, notice that the first 2 peaks are stereo, and the last 2 peaks are mono... ???

Quoted 2 lines

Would you post the settings of the equalizer from "/data/path/mixer" or /etc/asound.state ?

Quoted 6 lines
Quoted 2 lines

I must also say that when restoring, i always get one warning: something with bad value for... somethingorother

When you upgrade from ALSA 1.0.8 to ALSA 1.0.9 ,the SPDIF sample rate control ( ALSA 1.0.8 ) has been replaced by the IEC958 control ( ALSA 1.0.9 ).

thanks for the info, but since i'm not using SPDIF, this was never any relevance for me

Quoted 5 lines

You will need to delete old setting in "/data/path/mixer" and use alsactl to store the new setting, otherwise error will occur if you try to use alsactrl to restore the value of emunerated spdif sample rate control settings saved by the previous ALSA version to the au8810 in ALSA 1.0.9 driver.

actually, this one warning has been there for quite some time, i donno if it's emu10k1 or au8810... (i think even in 32bit, not sure about that), when storing it, modprobe -r and modprobe again, and restoring, the warning stays...

Quoted 1 line

Your /etc/asound.state seem OK and the equalizer is OFF.

never used the equalizer, i wasn't able to put the whole asound.state file, (i removed the emu10k1 stuff), cause the size of the mail was too large...

Quoted 387 lines
Quoted 354 lines

/etc/asound.state:

state.au8810 {
	control.1 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'EQ Enable'
		value false
	}
	control.2 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ0 31Hz'
		value.0 16375
		value.1 16375
	}
	control.3 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ1 63Hz'
		value.0 16392
		value.1 16392
	}
	control.4 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ2 125Hz'
		value.0 16375
		value.1 16375
	}
	control.5 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ3 250Hz'
		value.0 16022
		value.1 16022
	}
	control.6 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ4 500Hz'
		value.0 16022
		value.1 16022
	}
	control.7 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ5 1KHz'
		value.0 16022
		value.1 16022
	}
	control.8 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ6 2KHz'
		value.0 16022
		value.1 16022
	}
	control.9 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ7 4KHz'
		value.0 16022
		value.1 16022
	}
	control.10 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ8 8KHz'
		value.0 16022
		value.1 16022
	}
	control.11 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ9 16KHz'
		value.0 16022
		value.1 16022
	}
	control.12 {
		comment.access read
		comment.type INTEGER
		comment.range '0 - 32767'
		iface MIXER
		name 'EQ Peaks'
		value.0 0
		value.1 0
		value.2 0
		value.3 0
		value.4 0
		value.5 0
		value.6 0
		value.7 0
		value.8 0
		value.9 0
		value.10 0
		value.11 0
		value.12 0
		value.13 0
		value.14 0
		value.15 0
		value.16 0
		value.17 0
		value.18 0
		value.19 0
	}
	control.13 {
		comment.access 'read write'
		comment.type IEC958
		iface PCM
		name 'IEC958 Playback Default'
		value

'008200000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000' }

	control.14 {
		comment.access read
		comment.type IEC958
		iface PCM
		name 'IEC958 Playback Con Mask'
		value

ffffff0f00000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000 }

	control.15 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Master Playback Switch'
		value true
	}
	control.16 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Master Playback Volume'
		value.0 24
		value.1 24
	}
	control.17 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Master Mono Playback Switch'
		value true
	}
	control.18 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Master Mono Playback Volume'
		value 24
	}
	control.19 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'PC Speaker Playback Switch'
		value false
	}
	control.20 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 15'
		iface MIXER
		name 'PC Speaker Playback Volume'
		value 0
	}
	control.21 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Phone Playback Switch'
		value false
	}
	control.22 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Phone Playback Volume'
		value 0
	}
	control.23 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Mic Playback Switch'
		value false
	}
	control.24 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Mic Playback Volume'
		value 0
	}
	control.25 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Mic Boost (+20dB)'
		value false
	}
	control.26 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Line Playback Switch'
		value true
	}
	control.27 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Line Playback Volume'
		value.0 24
		value.1 24
	}
	control.28 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'CD Playback Switch'
		value true
	}
	control.29 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'CD Playback Volume'
		value.0 24
		value.1 24
	}
	control.30 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Video Playback Switch'
		value false
	}
	control.31 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Video Playback Volume'
		value.0 0
		value.1 0
	}
	control.32 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Aux Playback Switch'
		value false
	}
	control.33 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'Aux Playback Volume'
		value.0 0
		value.1 0
	}
	control.34 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'PCM Playback Switch'
		value true
	}
	control.35 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 31'
		iface MIXER
		name 'PCM Playback Volume'
		value.0 24
		value.1 24
	}
	control.36 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mic
		comment.item.1 CD
		comment.item.2 Video
		comment.item.3 Aux
		comment.item.4 Line
		comment.item.5 Mix
		comment.item.6 'Mix Mono'
		comment.item.7 Phone
		iface MIXER
		name 'Capture Source'
		value.0 Line
		value.1 Line
	}
	control.37 {
		comment.access 'read write'
		comment.type BOOLEAN
		iface MIXER
		name 'Capture Switch'
		value true
	}
	control.38 {
		comment.access 'read write'
		comment.type INTEGER
		comment.range '0 - 15'
		iface MIXER
		name 'Capture Volume'
		value.0 12
		value.1 12
	}
	control.39 {
		comment.access 'read write'
		comment.type ENUMERATED
		comment.item.0 Mix
		comment.item.1 Mic
		iface MIXER
		name 'Mono Output Select'
		value Mix
	}
	control.40 {
		comment.access 'read write'
Quoted 8 lines
		comment.type ENUMERATED
		comment.item.0 Mic1
		comment.item.1 Mic2
		iface MIXER
		name 'Mic Select'
		value Mic1
	}
}

After eight instances of "mplayer" playing stereo music concurrently in my 32-bits machine and start an instance of aplay.

aplay outls.wav
Playing WAVE 'outls.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo

aplay: set_params:935: Unable to install hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 22050
PERIOD_TIME: (46439 46440)
PERIOD_SIZE: 1024
PERIOD_BYTES: 4096
PERIODS: 11
BUFFER_TIME: (510839 510840)
BUFFER_SIZE: 11264
BUFFER_BYTES: 45056
TICK_TIME: 10000
Quoted 5 lines

aplay abort as there is no more SampleRateConvertors available.

There is no deadlock or hang. After the "mplayer" finish playing and release the SRCs, I can start another instance of ALSA application to play music.

I'm going to try to do the same thing with xine and CVS aplay, see what happens...

author
#30 lore raw
In reply to Takashi Iwai
Quoted 15 lines · Takashi Iwai

At Sun, 20 Mar 2005 09:11:08 +0800,

Quoted 12 lines · Raymond
Quoted 10 lines
Quoted 4 lines

Lee Revell wrote:
Looks like this chipset has a wavetable synth. And I noticed some
references to a driver on the openvortex list. Would it be possible for ALSA to support it?

Manuel Jander wrote:
Of course, but there are some unresolved hardware issues. The WaveTable helper hardware is very similar to the trident Wavetable helper hardware. It does not interpret MIDI directly, but at least does some effect processing in hardware.

Quoted 10 lines
Quoted 3 lines

http://sourceforge.net/mailarchive/message.php?msg_id=6004190

1) Is the Trident Wavetable working ?

Very limited. It's no proper "MIDI" wavetable implementation. IIRC, only a module player worked with trident driver.

If WT code compiled as a separate module au88x0-synth , it cannot direct call those functions in au88x0 module (e.g vortex_mix_setvolumebyte() )

Also there are a lot of warning messages "static function declared static but never defined" in au88x0.h because WT code need to include au88x0.h to get the definition of vortex_t.

#define SNDRV_SEQ_DEV_ID_AU88X0_SYNTH CARD_NAME_SHORT "-synth"

	if (snd_seq_device_new(card, 1, SNDRV_SEQ_DEV_ID_AU88X0_SYNTH,
			       sizeof(snd_vortex_synth_arg_t), &wt) < 0
	    || wt == NULL) {
		printk(KERN_INFO "Can't initialize au88x0 wavetable synth\n");
	} else {
		snd_vortex_synth_arg_t *arg;
		arg = SNDRV_SEQ_DEVICE_ARGPTR(wt);
		sprintf(wt->name, "%s Synth",CARD_NAME_SHORT);
		arg->chip = chip;
		arg->index = 1;
	}

As WT is present on the au8820/au8830 chip and not on another chip of the sound card. (WT registers can be accessed by using vortex->mmio )

Is there any alternative way for keeping the WT code within module au88x0 instead of a seperate module au88x0-synth ?

	if ((err = snd_device_new(card, SNDRV_DEV_SEQUENCER, wt, &ops)) < 0) {
		return err;
	}

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click