All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: problems with snd_au8830 module under mandriva 2005
       [not found] <1118256592.28940.0.camel@localhost>
@ 2005-08-28  3:32 ` Raymond
  0 siblings, 0 replies; 12+ messages in thread
From: Raymond @ 2005-08-28  3:32 UTC (permalink / raw)
  To: Erik; +Cc: alsa-devel, alsa-user

void __iomem *mmio;

should be used instead of

unsigned long __iomem *mmio;

in snd_vortex_t for architecture independent (32-bits and 64-bits)


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


Would you please try the patch diff11.diff (against
alsa-driver-1.0.9b) at

http://savannah.nongnu.org/patch/?func=detailitem&item_id=3948

We need feedback from au8810/au8820/au8830 users in testing the 
Equalizer, MPU401, Gameport, 4-channels, .... on 32/64-bits platform.


Erik wrote:
> i installed mandriva 2005 X86-64 and out of the box sound was not
> working
> getting error message /dev/dsp not exist 
> with lsmod i saw the module snd-au8830 was running 
> can't rmmod even the -f option didn't remove the snd-au8830 module
> 
> so i thought i compile a new kernel with alsa and oss options
> outcommented only sound as module
> compiled alsa-driver version 1.09 lib and utils (had to do
> --libdir=/usr/lib64 to get utils to work)
> 
> but after compilation and rebooting
> au8830 is getting loaded but nothing works
> alsamixer give me this error message: alsamixer: function snd_ctl_open
> failed for default: No such file or directory
> 
> so i looked in /var/log/messages and snipped this out of it:
> 
> Jun  6 02:29:05 localhost kernel: ACPI: PCI Interrupt Link [APC3]
> enabled at IRQ 18
> Jun  6 02:29:05 localhost kernel: ACPI: PCI interrupt 0000:02:08.0[A] ->
> GSI 18 (level, low) -> IRQ 209
> Jun  6 02:29:05 localhost kernel: Vortex: init.... <1>Unable to handle
> kernel paging request at ffffc200003d4018 RIP: 
> Jun  6 02:29:05 localhost kernel: [__nosave_end+131365506/2133123072]
> Jun  6 02:29:05 localhost kernel: [<ffffffff880f9a82>]
> Jun  6 02:29:05 localhost kernel: PGD 3ffd2067 PUD 3ffd1067 PMD 3fcba067
> PTE 0
> Jun  6 02:29:05 localhost kernel: Oops: 0002 [1] 
> Jun  6 02:29:05 localhost kernel: CPU 0 
> Jun  6 02:29:05 localhost kernel: Modules linked in: snd_au8830
> snd_ac97_codec snd_pcm snd_timer snd_page_alloc gameport snd_mpu401_uart
> snd_rawmidi snd_seq_device snd soundcore af_packet floppy forcedeth
> ide_cd loop vfat fat nls_iso8859_1 ntfs ext3 jbd ehci_hcd ohci_hcd
> usbcore thermal processor fan container button sd_mod sata_nv libata
> Jun  6 02:29:05 localhost kernel: Pid: 4681, comm: modprobe Not tainted
> 2.6.11.11
> Jun  6 02:29:05 localhost kernel: RIP: 0010:[__nosave_end
> +131365506/2133123072] [__nosave_end+131365506/2133123072]
> Jun  6 02:29:05 localhost kernel: RIP: 0010:[<ffffffff880f9a82>]
> [<ffffffff880f9a82>]
> Jun  6 02:29:05 localhost kernel: RSP: 0018:ffff81003ecd3c18  EFLAGS:
> 00010292
> Jun  6 02:29:05 localhost kernel: RAX: ffffc20000380000 RBX:
> 0000000000000000 RCX: 0000000000003fff
> Jun  6 02:29:05 localhost kernel: RDX: 0000000000000006 RSI:
> 000000000000353a RDI: 0000000000000005
> Jun  6 02:29:05 localhost kernel: RBP: ffff81003dd08000 R08:
> 0000000000000036 R09: ffff810001d676c0
> Jun  6 02:29:05 localhost kernel: R10: 000000000003ac90 R11:
> 0000000000000000 R12: 00000000ffffffed
> Jun  6 02:29:05 localhost kernel: R13: ffff81003fc07000 R14:
> ffff81003fc07000 R15: ffff81003e9f2400
> Jun  6 02:29:05 localhost kernel: FS:  00002aaaaadf2b00(0000)
> GS:ffffffff8037e940(0000) knlGS:0000000000000000
> Jun  6 02:29:05 localhost kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
> 000000008005003b
> Jun  6 02:29:05 localhost kernel: CR2: ffffc200003d4018 CR3:
> 000000003f3af000 CR4: 00000000000006e0
> Jun  6 02:29:05 localhost kernel: Process modprobe (pid: 4681,
> threadinfo ffff81003ecd2000, task ffff81003e49ce90)
> Jun  6 02:29:05 localhost kernel: Stack: 0000000000000000
> 0000000000000000 000000d000000000 ffff81003ecd3c30 
> Jun  6 02:29:05 localhost kernel:        ffff81003ecd3c30
> 0000000000000000 0000000000000282 ffffffff8031f398 
> Jun  6 02:29:05 localhost kernel:        ffff81003e9f2459
> ffffffff801c2c0e 
> Jun  6 02:29:05 localhost kernel: Call Trace:[kobject_hotplug+622/672]
> [pci_device_probe+134/368] [driver_probe_device+77/128] 
> Jun  6 02:29:05 localhost kernel: Call Trace:[<ffffffff801c2c0e>]
> [<ffffffff801cba56>] [<ffffffff80229c6d>] 
> Jun  6 02:29:05 localhost kernel:        [driver_attach+75/160]
> [bus_add_driver+152/336] [driver_register+50/64] 
> Jun  6 02:29:05 localhost kernel:        [<ffffffff80229d8b>]
> [<ffffffff8022a148>] [<ffffffff8022a6a2>] 
> Jun  6 02:29:05 localhost kernel:        [pci_register_driver+110/160]
> [sys_init_module+4916/5200] [rb_insert_color+201/240] 
> Jun  6 02:29:05 localhost kernel:        [<ffffffff801cb75e>]
> [<ffffffff801482c4>] [<ffffffff801c43a9>] 
> Jun  6 02:29:05 localhost kernel:        [__nosave_end
> +131383296/2133123072] [do_munmap+854/912] [system_call+126/131] 
> Jun  6 02:29:05 localhost kernel:        [<ffffffff880fe000>]
> [<ffffffff801618f6>] [<ffffffff8010e21a>] 
> Jun  6 02:29:05 localhost kernel:        
> Jun  6 02:29:05 localhost kernel: 
> Jun  6 02:29:05 localhost kernel: Code: c7 80 18 40 05 00 ff ff ff ff e8
> 6f 07 04 f8 48 8b 95 e8 40 
> Jun  6 02:29:05 localhost kernel: RIP [__nosave_end
> +131365506/2133123072] RSP <ffff81003ecd3c18>
> Jun  6 02:29:05 localhost kernel: RIP [<ffffffff880f9a82>] RSP
> <ffff81003ecd3c18>
> Jun  6 02:29:05 localhost kernel: CR2: ffffc200003d4018
> Jun  6 02:29:05 localhost sound: Loading sound module (snd-au8830)
> failed
> 
> and i can't rmmod this snd-au8830 either.
> 
> Does anyone know what the problem is?
> 
> Erik
> 
> 
> amd64 3500+
> msi k8n neo2
> diamond monster 3d sound (au8830)
> 




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

* Re: problems with snd_au8830 module under mandriva 2005
@ 2005-09-02  3:39 Raymond
  0 siblings, 0 replies; 12+ messages in thread
From: Raymond @ 2005-09-02  3:39 UTC (permalink / raw)
  To: Erik; +Cc: Alien, Igor Kovalenko, openvortex-dev, alsa-devel, Manuel Jander


There are 3 bug reports for AMD64 in ALSA BTS.
1047 - au8810
1138 - au8820
1025 - au8830

au8810/au8820/au8830 driver is tightly coupled in ALSA au88x0

1) EQ, SPDIF of au8810/au8830 are not present in au8820,
2) WT of au8820/au8830 are not present in au8810,
3) SoftModem of au8810 are not present in au8820/au8830.

Please correct me if I am wrong, I think au8810 do not have any 3D 
effect hardware.

The essential part of the patch is

void __iomem *mmio
#define    hwread(x,y) readl((x)+(y))
#define    hwwrite(x,y,z) writel((z),(x)+(y))

There are 32bits and 64bits data type difference need to be fixed.

1) DMA, SRC, Mixer, Equalizer, Capturing
2) MPU401, Gameport, SPDIF
3) 3D, XTALK

Please clearly describe your volume bar problem.

The volume issue may be relate to the equalizer, hardware mixer, xtalk 
or codec initialization.

The EQ part in diff11.diff is not tested since EQ is not present in au8820.

Please post the output

lspci -vvn

cat /proc/asound/au8830/codec97#0/ac97#0-0+regs

I am not sure Alien's au8810 patch is as same as Igor Kovalenko 's 
au8820 patch. They seem to have their own patches.


The error is properly forget to change the functions declared in 
au88x0_xtalk.h

If the code in au88x0_xtalk.c is arranged in correct order, it is 
possible to delete all those function declaration in au88x0_xtalk.h

It's diffcult to say the XTALK part in diff1.diff is right or wrong.

Any hint on how to test the xtalk canceller ?

I think any patch to the stable ALSA driver in alsa-kernel is to fix 
bugs instead of introducing more confusion.

Any side effect if keeping the XTALK part unchanged ?

or

Implement a kcontrol to test the XTALK



It's great to have an user with au8830 and AMD64 to test all features in 
au8830, this allow nearly all implemented features in au88x0 to be tested.

http://savannah.nongnu.org/patch/download.php?item_id=3948


You should cc your reply to openvortex-dev@nongnu.org so that the other 
developers know the problem.


 > this is what i get when compiling the kernel
 > but maybe i have to delete the kernel source tree
 > because i can remember that i had allready patched the alsa part before
 > a long time ago
 > it was in june i posted the error and not long after that alien from
 > nongnu list contacted me and told me about a patch/.diff
 > i have a working alsa driver with that diff but the only problem still
 > is that the volume bar is acting strange so i think i have allready done
 > this patch
 > but i was glad i could compile it under 64 bit kernel
 >
 > do you know if this is the same patch if not i will clean all sources
 > and compile the kernel again.
 >
 > Erik
 >
 >
 >
 > CC [M]  sound/pci/au88x0/au8830.o
 > In file included from sound/pci/au88x0/au8830.c:17:
 > sound/pci/au88x0/au88x0_xtalk.c:645: error: conflicting types for
 > 'vortex_XtalkHw_SetSampleRate'
 > sound/pci/au88x0/au88x0_xtalk.h:51: error: previous declaration of
 > 'vortex_XtalkHw_SetSampleRate' was here
 > sound/pci/au88x0/au88x0_xtalk.c:645: error: conflicting types for
 > 'vortex_XtalkHw_SetSampleRate'
 > sound/pci/au88x0/au88x0_xtalk.h:51: error: previous declaration of
 > 'vortex_XtalkHw_SetSampleRate' was here
 > sound/pci/au88x0/au88x0_xtalk.h:51: warning:
 > 'vortex_XtalkHw_SetSampleRate' declared `static' but never defined
 > sound/pci/au88x0/au88x0_xtalk.c:645: warning:
 > 'vortex_XtalkHw_SetSampleRate' defined but not used
 > make[3]: *** [sound/pci/au88x0/au8830.o] Error 1
 > make[2]: *** [sound/pci/au88x0] Error 2
 > make[1]: *** [sound/pci] Error 2
 > make: *** [sound] Error 2
 >
 >


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

* Re: problems with snd_au8830 module under mandriva 2005
@ 2005-09-02  3:51 Raymond
  2005-09-04 19:34 ` Alien
  0 siblings, 1 reply; 12+ messages in thread
From: Raymond @ 2005-09-02  3:51 UTC (permalink / raw)
  To: Erik; +Cc: Alien, Igor Kovalenko, openvortex-dev, alsa-devel, Manuel Jander

I am not sure Alien's au8810 patch is as same as Igor Kovalenko 's
au8820 patch. They seem to have their own patches.

The EQ part in diff11.diff seem to be not tested since EQ is not present
in au8820.

You should cc your reply to openvortex-dev@nongnu.org and
alsa-devel@lists.sourceforge.net so that the others can keep track of
your problem.

There are 3 bug reports for AMD64 in ALSA BTS.
1047 - au8810
1138 - au8820
1025 - au8830

Need feedback from testers with au8810/au8820/au8830 and 32bits/64bits
machines to debug this patch.

1) EQ, SPDIF of au8810/au8830 are not present in au8820,
2) WT of au8820/au8830 are not present in au8810,
3) SoftModem of au8810 are not present in au8820.
4) 3D of au8830 is not present in au8810/au8820.

Please correct me if I am wrong, I think au8810 do not have any 3D
effect hardware.

The essential part of the AMD64 patch is

void __iomem *mmio
#define    hwread(x,y) readl((x)+(y))
#define    hwwrite(x,y,z) writel((z),(x)+(y))

read/write 32bits data from/to memory-mapped I/O with 32bits address on
32bits machines and 64bits address on 64bits machines.

There are other 32bits and 64bits incompatibilites in different part of
the driver.

1) DMA, SRC, Hardware Mixer, Equalizer, Capturing
2) MPU401, Gameport, SPDIF
3) 3D, XTALK, WT

Please clearly describe your volume bar problem.

The error is the parameters in functions declared in au88x0_xtalk.c not
matched with those in au88x0_xtalk.h.

It's diffcult to say the change of XTALK part in diff1.diff is right or
wrong.

Any hint on how to debug the XTALK canceller ?

How about implement a kcontrol to change xt_mode by alsamixer ?

WARNING : Select narrow mode seem to produce a VERY HIGH pitch.

static int
snd_vortex_xtalk_info(snd_kcontrol_t * kcontrol, snd_ctl_elem_info_t *
uinfo)
{	
	static char *texts[] = {"Default", "Headphone", "Wide", "Narrow",
"Diamond"};
	uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
	uinfo->count = 1;
	uinfo->value.enumerated.items = 5;
	if (uinfo->value.enumerated.item >= uinfo->value.enumerated.items)
		uinfo->value.enumerated.item = uinfo->value.enumerated.items - 1;
	strcpy(uinfo->value.enumerated.name, texts[uinfo->value.enumerated.item]);
	return 0;
}

static int
snd_vortex_xtalk_get(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t *
ucontrol)
{
	vortex_t *vortex = snd_kcontrol_chip(kcontrol);
	ucontrol->value.enumerated.item[0]=vortex->xt_mode;
	return 0;
}

static int
snd_vortex_xtalk_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t *
ucontrol)
{
	int changed;
	vortex_t *vortex = snd_kcontrol_chip(kcontrol);
	if ( vortex->xt_mode == ucontrol->value.enumerated.item[0] )
		changed=0;
	else
		changed=1;
	Vort3DRend_Initialize(vortex, ucontrol->value.enumerated.item[0] );
	return changed;
}

static snd_kcontrol_new_t snd_vortex_xtalk_kcontrol __devinitdata = {
	.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
	.name = "XTALK Playback",
	.access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
	.info = snd_vortex_xtalk_info,
	.get = snd_vortex_xtalk_get,
	.put = snd_vortex_xtalk_put,

};


Please post the output

lspci -vvn

cat /proc/asound/au8830/codec97#0/ac97#0-0+regs

using the patch manager at openvortex

http://savannah.nongnu.org/patch/download.php?item_id=3948



> this is what i get when compiling the kernel
> but maybe i have to delete the kernel source tree
> because i can remember that i had allready patched the alsa part before
> a long time ago
> it was in june i posted the error and not long after that alien from
> nongnu list contacted me and told me about a patch/.diff
> i have a working alsa driver with that diff but the only problem still
> is that the volume bar is acting strange so i think i have allready done
> this patch
> but i was glad i could compile it under 64 bit kernel
>
> do you know if this is the same patch if not i will clean all sources
> and compile the kernel again.
>
> Erik
>
>
>
> CC [M]  sound/pci/au88x0/au8830.o
> In file included from sound/pci/au88x0/au8830.c:17:
> sound/pci/au88x0/au88x0_xtalk.c:645: error: conflicting types for
> 'vortex_XtalkHw_SetSampleRate'
> sound/pci/au88x0/au88x0_xtalk.h:51: error: previous declaration of
> 'vortex_XtalkHw_SetSampleRate' was here
> sound/pci/au88x0/au88x0_xtalk.c:645: error: conflicting types for
> 'vortex_XtalkHw_SetSampleRate'
> sound/pci/au88x0/au88x0_xtalk.h:51: error: previous declaration of
> 'vortex_XtalkHw_SetSampleRate' was here
> sound/pci/au88x0/au88x0_xtalk.h:51: warning:
> 'vortex_XtalkHw_SetSampleRate' declared `static' but never defined
> sound/pci/au88x0/au88x0_xtalk.c:645: warning:
> 'vortex_XtalkHw_SetSampleRate' defined but not used
> make[3]: *** [sound/pci/au88x0/au8830.o] Error 1
> make[2]: *** [sound/pci/au88x0] Error 2
> make[1]: *** [sound/pci] Error 2
> make: *** [sound] Error 2
>
>




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-02  3:51 problems with snd_au8830 module under mandriva 2005 Raymond
@ 2005-09-04 19:34 ` Alien
  2005-09-07 22:15   ` Erik
  0 siblings, 1 reply; 12+ messages in thread
From: Alien @ 2005-09-04 19:34 UTC (permalink / raw)
  To: Raymond; +Cc: Erik, Igor Kovalenko, openvortex-dev, alsa-devel, Manuel Jander

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

Op vrijdag 2 september 2005 05:51, schreef Raymond:
> I am not sure Alien's au8810 patch is as same as Igor Kovalenko 's
> au8820 patch. They seem to have their own patches.
>
> The EQ part in diff11.diff seem to be not tested since EQ is not present
> in au8820.
>
> You should cc your reply to openvortex-dev@nongnu.org and
> alsa-devel@lists.sourceforge.net so that the others can keep track of
> your problem.
>
> There are 3 bug reports for AMD64 in ALSA BTS.
> 1047 - au8810
> 1138 - au8820
> 1025 - au8830
>
> Need feedback from testers with au8810/au8820/au8830 and 32bits/64bits
> machines to debug this patch.
>
> 1) EQ, SPDIF of au8810/au8830 are not present in au8820,
> 2) WT of au8820/au8830 are not present in au8810,
> 3) SoftModem of au8810 are not present in au8820.
> 4) 3D of au8830 is not present in au8810/au8820.
>
> Please correct me if I am wrong, I think au8810 do not have any 3D
> effect hardware.

i'm not entirely sure, but i think it has some 3D stuff, since i've always had 
controls to manage 3D depth, etc...

unless you are speaking of something else...

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-04 19:34 ` Alien
@ 2005-09-07 22:15   ` Erik
  2005-09-08  7:07     ` Alien
  0 siblings, 1 reply; 12+ messages in thread
From: Erik @ 2005-09-07 22:15 UTC (permalink / raw)
  To: Alien; +Cc: Raymond, Igor Kovalenko, openvortex-dev, alsa-devel,
	Manuel Jander

i'm busy with home improving but when i have time i will try the patch
again on 2.6.12 kernel. I have not checked if it is the same alsa
version as 2.6.11 but i think it is.

b.t.w. the volume bar problem is in XMMS (didn't try other programs
because i haven't a lot of time) (just online for mail checking etc.
that's it)
but i think alien can tell you about the volume bar problems.

pc information:

mandriva 2005 le
kernel 2.6.11
amd 64 bit 3500+
diamond monster sound mx300 au8830 card


Erik



On Sun, 2005-09-04 at 21:34 +0200, Alien wrote:
> Op vrijdag 2 september 2005 05:51, schreef Raymond:
> > I am not sure Alien's au8810 patch is as same as Igor Kovalenko 's
> > au8820 patch. They seem to have their own patches.
> >
> > The EQ part in diff11.diff seem to be not tested since EQ is not present
> > in au8820.
> >
> > You should cc your reply to openvortex-dev@nongnu.org and
> > alsa-devel@lists.sourceforge.net so that the others can keep track of
> > your problem.
> >
> > There are 3 bug reports for AMD64 in ALSA BTS.
> > 1047 - au8810
> > 1138 - au8820
> > 1025 - au8830
> >
> > Need feedback from testers with au8810/au8820/au8830 and 32bits/64bits
> > machines to debug this patch.
> >
> > 1) EQ, SPDIF of au8810/au8830 are not present in au8820,
> > 2) WT of au8820/au8830 are not present in au8810,
> > 3) SoftModem of au8810 are not present in au8820.
> > 4) 3D of au8830 is not present in au8810/au8820.
> >
> > Please correct me if I am wrong, I think au8810 do not have any 3D
> > effect hardware.
> 
> i'm not entirely sure, but i think it has some 3D stuff, since i've always had 
> controls to manage 3D depth, etc...
> 
> unless you are speaking of something else...



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-07 22:15   ` Erik
@ 2005-09-08  7:07     ` Alien
  2005-09-10  0:40       ` Raymond
  2005-09-14  3:32       ` Erik
  0 siblings, 2 replies; 12+ messages in thread
From: Alien @ 2005-09-08  7:07 UTC (permalink / raw)
  To: Erik; +Cc: Raymond, Igor Kovalenko, openvortex-dev, alsa-devel,
	Manuel Jander

> i'm busy with home improving but when i have time i will try the patch
> again on 2.6.12 kernel. I have not checked if it is the same alsa
> version as 2.6.11 but i think it is.
>
> b.t.w. the volume bar problem is in XMMS (didn't try other programs
> because i haven't a lot of time) (just online for mail checking etc.
> that's it)
> but i think alien can tell you about the volume bar problems.

which volume bar problems are you talking about?
1. the ones where if you get 49% it's loud and on 51% quite silently?
2. or irregular sound volume when you are about halfway (without changing
volume yourself).

actually after experimenting I think it might be something hardware
related (ie with the volume control of my speaker system, not the
au8810)...

> pc information:
>
> mandriva 2005 le
> kernel 2.6.11
> amd 64 bit 3500+
> diamond monster sound mx300 au8830 card
>
>
> Erik
>
>
>
> On Sun, 2005-09-04 at 21:34 +0200, Alien wrote:
>> Op vrijdag 2 september 2005 05:51, schreef Raymond:
>> > I am not sure Alien's au8810 patch is as same as Igor Kovalenko 's
>> > au8820 patch. They seem to have their own patches.
>> >
>> > The EQ part in diff11.diff seem to be not tested since EQ is not
>> present
>> > in au8820.
>> >
>> > You should cc your reply to openvortex-dev@nongnu.org and
>> > alsa-devel@lists.sourceforge.net so that the others can keep track of
>> > your problem.
>> >
>> > There are 3 bug reports for AMD64 in ALSA BTS.
>> > 1047 - au8810
>> > 1138 - au8820
>> > 1025 - au8830
>> >
>> > Need feedback from testers with au8810/au8820/au8830 and 32bits/64bits
>> > machines to debug this patch.
>> >
>> > 1) EQ, SPDIF of au8810/au8830 are not present in au8820,
>> > 2) WT of au8820/au8830 are not present in au8810,
>> > 3) SoftModem of au8810 are not present in au8820.
>> > 4) 3D of au8830 is not present in au8810/au8820.
>> >
>> > Please correct me if I am wrong, I think au8810 do not have any 3D
>> > effect hardware.
>>
>> i'm not entirely sure, but i think it has some 3D stuff, since i've
>> always had
>> controls to manage 3D depth, etc...
>>
>> unless you are speaking of something else...
>
>
>




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-08  7:07     ` Alien
@ 2005-09-10  0:40       ` Raymond
  2005-09-10  7:03         ` Alien
  2005-09-14  3:32       ` Erik
  1 sibling, 1 reply; 12+ messages in thread
From: Raymond @ 2005-09-10  0:40 UTC (permalink / raw)
  To: alsa-devel; +Cc: Erik, Alien

When watching movie using xine (downmixing 5.1 to Surround40) with my
au8830 on 32bits machines, the 4 channels are correct at first movie
only. The Human voice (center) come out from rear speakers aftewards.

1) speaker-test -c 4 -D hw:0,0
2) using xine to play 5.1 channel-test audio samples with FFTScope enabled.

the above tests indicate that the front and rear channels are swapped
after the first play.

Please let me know if you also have this problem on your MX300.

The hardware equalizer of au8830 sound much better than the software
equalizer of XMMS.

There are follow up about how to fix 32/64bits issues related to the 
equalizer and features not presented in au8820.

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

alien seem have no interest to test the hardware equalizer
because of the hang oops.


Alien wrote:
>>i'm busy with home improving but when i have time i will try the patch
>>again on 2.6.12 kernel. I have not checked if it is the same alsa
>>version as 2.6.11 but i think it is.
>>
>>b.t.w. the volume bar problem is in XMMS (didn't try other programs
>>because i haven't a lot of time) (just online for mail checking etc.
>>that's it)
>>but i think alien can tell you about the volume bar problems.
> 
> 
> which volume bar problems are you talking about?
> 1. the ones where if you get 49% it's loud and on 51% quite silently?

This problem on STAC9704 have been fixed.

> 2. or irregular sound volume when you are about halfway (without changing
> volume yourself).
> 
> actually after experimenting I think it might be something hardware
> related (ie with the volume control of my speaker system, not the
> au8810)...
> 
> 
>>pc information:
>>
>>mandriva 2005 le
>>kernel 2.6.11
>>amd 64 bit 3500+
>>diamond monster sound mx300 au8830 card
>>
>>
>>Erik
>>
>>






-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-10  0:40       ` Raymond
@ 2005-09-10  7:03         ` Alien
  0 siblings, 0 replies; 12+ messages in thread
From: Alien @ 2005-09-10  7:03 UTC (permalink / raw)
  To: Raymond; +Cc: alsa-devel, Erik

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

Op zaterdag 10 september 2005 02:40, schreef Raymond:
> When watching movie using xine (downmixing 5.1 to Surround40) with my
> au8830 on 32bits machines, the 4 channels are correct at first movie
> only. The Human voice (center) come out from rear speakers aftewards.
>
> 1) speaker-test -c 4 -D hw:0,0
> 2) using xine to play 5.1 channel-test audio samples with FFTScope enabled.

isn't it possible that xine swaps the channels? this kind of test should be 
conducted with the same tools...

> the above tests indicate that the front and rear channels are swapped
> after the first play.
>
> Please let me know if you also have this problem on your MX300.
>
> The hardware equalizer of au8830 sound much better than the software
> equalizer of XMMS.
>
> There are follow up about how to fix 32/64bits issues related to the
> equalizer and features not presented in au8820.
>
> http://sourceforge.net/mailarchive/message.php?msg_id=11997399
>
> alien seem have no interest to test the hardware equalizer
> because of the hang oops.

I finally recompiled the kernel, cause i had a power failure...

the latest thing is in place and so far i haven't had any weird hangs or 
crashes (yet),... right now, it's time to play alot of things and see what 
happens...

I'm not really interested in a hardware equalizer, just like that, it's got 
nothing to do with the hang problems (which are NOT kernel oopses, btw) (or 
not anymore, at least)

we'll see if we get that adb failure again, i've let it print 
in /var/log/messages, so, we'll see if its solved or not...

do you want me to test out the hardware equalizer? i'm not using 4.0 btw...

> Alien wrote:
> >>i'm busy with home improving but when i have time i will try the patch
> >>again on 2.6.12 kernel. I have not checked if it is the same alsa
> >>version as 2.6.11 but i think it is.
> >>
> >>b.t.w. the volume bar problem is in XMMS (didn't try other programs
> >>because i haven't a lot of time) (just online for mail checking etc.
> >>that's it)
> >>but i think alien can tell you about the volume bar problems.
> >
> > which volume bar problems are you talking about?
> > 1. the ones where if you get 49% it's loud and on 51% quite silently?
>
> This problem on STAC9704 have been fixed.
>
> > 2. or irregular sound volume when you are about halfway (without changing
> > volume yourself).
> >
> > actually after experimenting I think it might be something hardware
> > related (ie with the volume control of my speaker system, not the
> > au8810)...
> >
> >>pc information:
> >>
> >>mandriva 2005 le
> >>kernel 2.6.11
> >>amd 64 bit 3500+
> >>diamond monster sound mx300 au8830 card
> >>
> >>
> >>Erik

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-08  7:07     ` Alien
  2005-09-10  0:40       ` Raymond
@ 2005-09-14  3:32       ` Erik
  2005-09-14  4:42         ` Raymond
  2005-09-16 14:16         ` Raymond
  1 sibling, 2 replies; 12+ messages in thread
From: Erik @ 2005-09-14  3:32 UTC (permalink / raw)
  To: Alien; +Cc: Raymond, Igor Kovalenko, openvortex-dev, alsa-devel,
	Manuel Jander

yup i have the first problem   
 1. the ones where if you get 49% it's loud and on 51% quite silently? 

but then from 51 to 100% is again soft to loud .

next week i can find time to recompile the whole kernel

erik


On Thu, 2005-09-08 at 09:07 +0200, Alien wrote:
> > i'm busy with home improving but when i have time i will try the patch
> > again on 2.6.12 kernel. I have not checked if it is the same alsa
> > version as 2.6.11 but i think it is.
> >
> > b.t.w. the volume bar problem is in XMMS (didn't try other programs
> > because i haven't a lot of time) (just online for mail checking etc.
> > that's it)
> > but i think alien can tell you about the volume bar problems.
> 
> which volume bar problems are you talking about?
> 1. the ones where if you get 49% it's loud and on 51% quite silently?
> 2. or irregular sound volume when you are about halfway (without changing
> volume yourself).
> 
> actually after experimenting I think it might be something hardware
> related (ie with the volume control of my speaker system, not the
> au8810)...
> 
> > pc information:
> >
> > mandriva 2005 le
> > kernel 2.6.11
> > amd 64 bit 3500+
> > diamond monster sound mx300 au8830 card
> >
> >
> > Erik
> >
> >
> >
> > On Sun, 2005-09-04 at 21:34 +0200, Alien wrote:
> >> Op vrijdag 2 september 2005 05:51, schreef Raymond:
> >> > I am not sure Alien's au8810 patch is as same as Igor Kovalenko 's
> >> > au8820 patch. They seem to have their own patches.
> >> >
> >> > The EQ part in diff11.diff seem to be not tested since EQ is not
> >> present
> >> > in au8820.
> >> >
> >> > You should cc your reply to openvortex-dev@nongnu.org and
> >> > alsa-devel@lists.sourceforge.net so that the others can keep track of
> >> > your problem.
> >> >
> >> > There are 3 bug reports for AMD64 in ALSA BTS.
> >> > 1047 - au8810
> >> > 1138 - au8820
> >> > 1025 - au8830
> >> >
> >> > Need feedback from testers with au8810/au8820/au8830 and 32bits/64bits
> >> > machines to debug this patch.
> >> >
> >> > 1) EQ, SPDIF of au8810/au8830 are not present in au8820,
> >> > 2) WT of au8820/au8830 are not present in au8810,
> >> > 3) SoftModem of au8810 are not present in au8820.
> >> > 4) 3D of au8830 is not present in au8810/au8820.
> >> >
> >> > Please correct me if I am wrong, I think au8810 do not have any 3D
> >> > effect hardware.
> >>
> >> i'm not entirely sure, but i think it has some 3D stuff, since i've
> >> always had
> >> controls to manage 3D depth, etc...
> >>
> >> unless you are speaking of something else...
> >
> >
> >
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-14  3:32       ` Erik
@ 2005-09-14  4:42         ` Raymond
  2005-09-16 14:16         ` Raymond
  1 sibling, 0 replies; 12+ messages in thread
From: Raymond @ 2005-09-14  4:42 UTC (permalink / raw)
  To: Erik; +Cc: openvortex-dev, alsa-devel

Erik wrote:
> yup i have the first problem   
>  1. the ones where if you get 49% it's loud and on 51% quite silently? 
> 
> but then from 51 to 100% is again soft to loud .
> 
> next week i can find time to recompile the whole kernel
> 
> erik

It seem that MX300 has different device id

1092:3000	Monster Sound II
1092:3001	Monster Sound II
1092:3002	Monster Sound II
1092:3003	Monster Sound II
1092:3004	Monster Sound II

http://pci-ids.ucw.cz/iii/?i=12eb0002

Please provide the output of

cat /proc/asound/au8830/codec97#0/ac97#0-0+regs

and

lspci -vvn


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-14  3:32       ` Erik
  2005-09-14  4:42         ` Raymond
@ 2005-09-16 14:16         ` Raymond
  2005-10-12  0:30           ` Erik
  1 sibling, 1 reply; 12+ messages in thread
From: Raymond @ 2005-09-16 14:16 UTC (permalink / raw)
  To: Erik; +Cc: alsa-devel, openvortex-dev

  Erik Wrote:
> ok here it is.
>
> [root@pc-erik assie]# cat /proc/asound/au8830/codec97#0/ac97#0-0+regs
> 0:00 = 6940
> 0:02 = 0202
> 0:04 = 0707
> 0:06 = 0007
> 0:08 = 0000
> 0:0a = 0006
> 0:0c = 0007
> 0:0e = 0040
> 0:10 = 0707
> 0:12 = 0707
> 0:14 = 0707
> 0:16 = 0707
> 0:18 = 1d1d
> 0:1a = 0000
> 0:1c = 0a0a
> 0:1e = 0000
> 0:20 = 2000
> 0:22 = 000f
> 0:24 = 0000
> 0:26 = 800f
> 0:28 = 0080
> 0:2a = 0080
> 0:2c = 0000
> 0:2e = 0000
> 0:30 = 0000
> 0:32 = 0000
> 0:34 = 0000
> 0:36 = 0000
> 0:38 = 0404
> 0:3a = 0000
> 0:3c = 0000
> 0:3e = 0000
> 0:40 = 0000
> 0:42 = 0000
> 0:44 = 0000
> 0:46 = 0000
> 0:48 = 0000
> 0:4a = 0000
> 0:4c = 0000
> 0:4e = 0000
> 0:50 = 0000
> 0:52 = 0000
> 0:54 = 0000
> 0:56 = 0000
> 0:58 = 0000
> 0:5a = 0000
> 0:5c = 0000
> 0:5e = 0000
> 0:60 = 0000
> 0:62 = 0000
> 0:64 = 0000
> 0:66 = 0000
> 0:68 = 0000
> 0:6a = 0000
> 0:6c = 0000
> 0:6e = 000c
> 0:70 = 0000
> 0:72 = 0017
> 0:74 = 0380
> 0:76 = abba
> 0:78 = 9380
> 0:7a = 0000
> 0:7c = 8384
> 0:7e = 7608
>
>
>
> 02:08.0 Class 0401: 12eb:0002 (rev fe)
>         Subsystem: 1092:3001
>         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 (1000ns min, 3000ns max), cache line size 08
>         Interrupt: pin A routed to IRQ 209
>         Region 0: Memory at 00000000fa000000 (32-bit, non-prefetchable)
> [size=256K]
>         Region 1: I/O ports at b000 [size=8]
>         Region 2: I/O ports at b400 [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-
>
>
>
> On Wed, 2005-09-14 at 12:42 +0800, Raymond wrote:
> > Erik wrote:
> > > yup i have the first problem
> > >  1. the ones where if you get 49% it's loud and on 51% quite 
silently?
> > >
> > > but then from 51 to 100% is again soft to loud .
> > >
> > > next week i can find time to recompile the whole kernel
> > >

Have your try this switch in alsamixer ?

Simple mixer control 'Sigmatel Output Bias',0
   Capabilities: pswitch pswitch-joined
   Playback channels: Mono
   Mono: Playback [off]

Do this patch fix your problem ?

http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-kernel/pci/ac97/ac97_codec.c?r1=1.189&r2=1.190

If the above don't work

 >>> Try the following patch to log the read/write of ac97 and post the
 >>> system log using dmesg. (loading au8830 and alsactl restore)
 >>>
 >>>
 >>> alsa-driver-1.0.9b/alsa-kernel/pci/au88x0/au88x0_core.c
 >>> @@ -2520,6 +2515,7 @@
 >>>     vortex_t *card = (vortex_t *) codec->private_data;
 >>>     unsigned int lifeboat = 0;
 >>>
 >>> +    printk(KERN_INFO "ac97 write %.2x : %.4x\n",addr,data);
 >>>     /* wait for transactions to clear */
 >>>     while (!(hwread(card->mmio, VORTEX_CODEC_CTRL) & 0x100)) {
 >>>         udelay(100);
 >>> @@ -2567,6 +2563,7 @@
 >>>         }
 >>>     } while ((data & VORTEX_CODEC_ADDMASK) !=
 >>>          (addr << VORTEX_CODEC_ADDSHIFT));
 >>> +    printk(KERN_INFO "ac97 read  %.2x : %.4x\n",addr,data &
 >>> VORTEX_CODEC_DATMASK);
 >>>
 >>>     /* return data. */
 >>>     return (u16) (data & VORTEX_CODEC_DATMASK);
 >>>
 >>






-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

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

* Re: problems with snd_au8830 module under mandriva 2005
  2005-09-16 14:16         ` Raymond
@ 2005-10-12  0:30           ` Erik
  0 siblings, 0 replies; 12+ messages in thread
From: Erik @ 2005-10-12  0:30 UTC (permalink / raw)
  To: Raymond; +Cc: alsa-devel@lists.sourceforge.net, openvortex-dev@nongnu.org

i tried the patch on alsa-driver-1.0.9b
kernel 2.6.13.2

and i get this error:
 
make -C /lib/modules/2.6.13.2/source
SUBDIRS=/home/assie/alsa-driver-1.0.9b O=/lib/modules/2.6.13.2/build
modules
make[1]: Entering directory `/usr/src/linux-2.6.13.2'
  CC [M]  /home/assie/alsa-driver-1.0.9b/pci/au88x0/au8830.o
In file included
from /home/assie/alsa-driver-1.0.9b/pci/au88x0/../../alsa-kernel/pci/au88x0/au8830.c:17,

from /home/assie/alsa-driver-1.0.9b/pci/au88x0/au8830.c:2:
/home/assie/alsa-driver-1.0.9b/pci/au88x0/../../alsa-kernel/pci/au88x0/au88x0_xtalk.c:645: error: conflicting types for 'vortex_XtalkHw_SetSampleRate'
/home/assie/alsa-driver-1.0.9b/pci/au88x0/../../alsa-kernel/pci/au88x0/au88x0_xtalk.h:51: error: previous declaration of 'vortex_XtalkHw_SetSampleRate' was here
/home/assie/alsa-driver-1.0.9b/pci/au88x0/../../alsa-kernel/pci/au88x0/au88x0_xtalk.c:645: error: conflicting types for 'vortex_XtalkHw_SetSampleRate'
/home/assie/alsa-driver-1.0.9b/pci/au88x0/../../alsa-kernel/pci/au88x0/au88x0_xtalk.h:51: error: previous declaration of 'vortex_XtalkHw_SetSampleRate' was here
/home/assie/alsa-driver-1.0.9b/pci/au88x0/../../alsa-kernel/pci/au88x0/au88x0_xtalk.h:51: warning: 'vortex_XtalkHw_SetSampleRate' declared `static' but never defined
/home/assie/alsa-driver-1.0.9b/pci/au88x0/../../alsa-kernel/pci/au88x0/au88x0_xtalk.c:645: warning: 'vortex_XtalkHw_SetSampleRate' defined but not used
make[5]: *** [/home/assie/alsa-driver-1.0.9b/pci/au88x0/au8830.o] Error
1
make[4]: *** [/home/assie/alsa-driver-1.0.9b/pci/au88x0] Error 2
make[3]: *** [/home/assie/alsa-driver-1.0.9b/pci] Error 2
make[2]: *** [_module_/home/assie/alsa-driver-1.0.9b] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.13.2'
make: *** [compile] Error 2
[root@pc-erik alsa-driver-1.0.9b]#

without the patch i can make and install alsadriver but then it isn't
working giving this error :

service alsasound start
Starting sound driver: snd-au8830 WARNING: Error inserting snd
(/lib/modules/2.6.13.2/kernel/sound/acore/snd.ko): Unknown symbol in
module, or unknown parameter (see dmesg)
WARNING: Error inserting snd-seq-device
(/lib/modules/2.6.13.2/kernel/sound/acore/seq/snd-seq-device.ko):
Unknown symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd-rawmidi
(/lib/modules/2.6.13.2/kernel/sound/acore/snd-rawmidi.ko): Unknown
symbol in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd-mpu401-uart
(/lib/modules/2.6.13.2/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko):
Unknown symbol in module, or unknown parameter(see dmesg)
WARNING: Error inserting snd-timer
(/lib/modules/2.6.13.2/kernel/sound/acore/snd-timer.ko): Unknown symbol
in module, or unknown parameter (see dmesg)
WARNING: Error inserting snd-pcm
(/lib/modules/2.6.13.2/kernel/sound/acore/snd-pcm.ko): Unknown symbol in
module, or unknown parameter (see dmesg)
WARNING: Error inserting snd-ac97-codec
(/lib/modules/2.6.13.2/kernel/sound/pci/ac97/snd-ac97-codec.ko): Unknown
symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting snd-au8830
(/lib/modules/2.6.13.2/kernel/sound/pci/au88x0/snd-au8830.ko): Unknown
symbol in module, or unknown parameter (see dmesg)
done


I hope you can do something with this information.

Erik



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl

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

end of thread, other threads:[~2005-10-12  0:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-02  3:51 problems with snd_au8830 module under mandriva 2005 Raymond
2005-09-04 19:34 ` Alien
2005-09-07 22:15   ` Erik
2005-09-08  7:07     ` Alien
2005-09-10  0:40       ` Raymond
2005-09-10  7:03         ` Alien
2005-09-14  3:32       ` Erik
2005-09-14  4:42         ` Raymond
2005-09-16 14:16         ` Raymond
2005-10-12  0:30           ` Erik
  -- strict thread matches above, loose matches on Subject: below --
2005-09-02  3:39 Raymond
     [not found] <1118256592.28940.0.camel@localhost>
2005-08-28  3:32 ` Raymond

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.