* CS5530 Alsa driver fails
@ 2007-07-31 23:04 Rafał Bilski
2007-07-31 23:53 ` Alan Cox
0 siblings, 1 reply; 13+ messages in thread
From: Rafał Bilski @ 2007-07-31 23:04 UTC (permalink / raw)
To: Jaroslav Kysela; +Cc: Linux Kernel Mailing List
Hello,
Linux: 2.6.23-rc1-git3
Hardware: CX5530
After "modprobe snd-cs5530" I have:
CS5530: XpressAudio at 0x220
CS5530: MPU at 0x330
CS5530: IRQ: 9 DMA8: 0 DMA16: 5
sb: can't grab irq 9
CS5530: Could not create SoundBlaster
CS5530_Audio: probe of 0000:00:12.3 failed with error -16
Thank You
Rafał
~ $ cat /proc/interrupts
CPU0
0: 26624 XT-PIC-XT timer
2: 0 XT-PIC-XT cascade
4: 428 XT-PIC-XT serial
8: 0 XT-PIC-XT rtc
9: 10793 XT-PIC-XT ohci_hcd:usb1
10: 1326 XT-PIC-XT eth0
NMI: 0
ERR: 0
~ $ lspci -v
00:00.0 Host bridge: Cyrix Corporation PCI Master
Flags: bus master, medium devsel, latency 0
00:0f.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
Subsystem: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
Flags: bus master, medium devsel, latency 64, IRQ 10
I/O ports at f800 [size=256]
Memory at 10010000 (32-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 10000000 [disabled] [size=64K]
Capabilities: [40] Power Management version 2
00:12.0 ISA bridge: Cyrix Corporation 5530 Legacy [Kahlua]
Flags: bus master, medium devsel, latency 0
00:12.1 Bridge: Cyrix Corporation 5530 SMI [Kahlua]
Flags: medium devsel
Memory at 40012000 (32-bit, non-prefetchable) [size=256]
00:12.2 IDE interface: Cyrix Corporation 5530 IDE [Kahlua] (prog-if 80 [Master])
Flags: medium devsel
[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
[virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
[virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
[virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
I/O ports at 1000 [disabled] [size=128]
00:12.3 Multimedia audio controller: Cyrix Corporation 5530 Audio [Kahlua]
Flags: medium devsel
Memory at 40011000 (32-bit, non-prefetchable) [size=128]
00:12.4 VGA compatible controller: Cyrix Corporation 5530 Video [Kahlua] (prog-if 00 [VGA])
Flags: medium devsel
Memory at 40010000 (32-bit, non-prefetchable) [size=4K]
00:13.0 USB Controller: Compaq Computer Corporation ZFMicro Chipset USB (rev 06) (prog-if 10 [OHCI])
Subsystem: Compaq Computer Corporation ZFMicro Chipset USB
Flags: bus master, medium devsel, latency 64, IRQ 9
Memory at 000cc000 (32-bit, non-prefetchable) [size=4K]
----------------------------------------------------------------------
Kobiety klamia o wiele skuteczniej niz mezczyzni.
Sprawdz, jak sie na nich poznac
>>>http://link.interia.pl/f1b16
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-07-31 23:04 Rafał Bilski
@ 2007-07-31 23:53 ` Alan Cox
2007-08-01 10:44 ` Takashi Iwai
0 siblings, 1 reply; 13+ messages in thread
From: Alan Cox @ 2007-07-31 23:53 UTC (permalink / raw)
To: Rafał Bilski; +Cc: Jaroslav Kysela, Linux Kernel Mailing List
> After "modprobe snd-cs5530" I have:
> CS5530: XpressAudio at 0x220
> CS5530: MPU at 0x330
> CS5530: IRQ: 9 DMA8: 0 DMA16: 5
> sb: can't grab irq 9
> CS5530: Could not create SoundBlaster
> CS5530_Audio: probe of 0000:00:12.3 failed with error -16
Might be worth setting the IRQ to sharable. I've never seen a 5530 with
the sound IRQ shared so I don't know if that works and is a valid
configuration for the VSA firmware
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-07-31 23:53 ` Alan Cox
@ 2007-08-01 10:44 ` Takashi Iwai
2007-08-01 12:11 ` Rafał Bilski
0 siblings, 1 reply; 13+ messages in thread
From: Takashi Iwai @ 2007-08-01 10:44 UTC (permalink / raw)
To: Rafał Bilski; +Cc: Alan Cox, Jaroslav Kysela, Linux Kernel Mailing List
At Wed, 1 Aug 2007 00:53:10 +0100,
Alan Cox wrote:
>
> > After "modprobe snd-cs5530" I have:
> > CS5530: XpressAudio at 0x220
> > CS5530: MPU at 0x330
> > CS5530: IRQ: 9 DMA8: 0 DMA16: 5
> > sb: can't grab irq 9
> > CS5530: Could not create SoundBlaster
> > CS5530_Audio: probe of 0000:00:12.3 failed with error -16
>
> Might be worth setting the IRQ to sharable. I've never seen a 5530 with
> the sound IRQ shared so I don't know if that works and is a valid
> configuration for the VSA firmware
The relevant patch is below. Please give it a try.
Takashi
diff -r e173dbb87aa6 sound/isa/sb/sb_common.c
--- a/sound/isa/sb/sb_common.c Wed Aug 01 12:22:07 2007 +0200
+++ b/sound/isa/sb/sb_common.c Wed Aug 01 12:42:39 2007 +0200
@@ -234,7 +234,9 @@ int snd_sbdsp_create(struct snd_card *ca
chip->dma16 = -1;
chip->port = port;
- if (request_irq(irq, irq_handler, hardware == SB_HW_ALS4000 ?
+ if (request_irq(irq, irq_handler,
+ (hardware == SB_HW_ALS4000 ||
+ hardware == SB_HW_CS5530) ?
IRQF_SHARED : IRQF_DISABLED,
"SoundBlaster", (void *) chip)) {
snd_printk(KERN_ERR "sb: can't grab irq %d\n", irq);
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-08-01 10:44 ` Takashi Iwai
@ 2007-08-01 12:11 ` Rafał Bilski
0 siblings, 0 replies; 13+ messages in thread
From: Rafał Bilski @ 2007-08-01 12:11 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Alan Cox, Jaroslav Kysela, Linux Kernel Mailing List
>> Might be worth setting the IRQ to sharable. I've never seen a 5530 with
>> the sound IRQ shared so I don't know if that works and is a valid
>> configuration for the VSA firmware
>
> The relevant patch is below. Please give it a try.
>
>
> Takashi
> - if (request_irq(irq, irq_handler, hardware == SB_HW_ALS4000 ?
> + if (request_irq(irq, irq_handler,
> + (hardware == SB_HW_ALS4000 ||
> + hardware == SB_HW_CS5530) ?
CS5530: XpressAudio at 0x220
CS5530: MPU at 0x330
CS5530: IRQ: 9 DMA8: 0 DMA16: 5
ALSA sound/isa/sb/sb_common.c:91: snd_sbdsp_reset [0x220] failed...
CS5530: Could not create SoundBlaster
Does this mean that interrupt cannot be shared? Or is this something
worse?
Thanks
Rafał
----------------------------------------------------------------------
Dowiedz sie, co naprawde podnieca kobiety. Wiecej wiesz, latwiej je
oczarujesz
>>>http://link.interia.pl/f1b17
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
@ 2007-08-01 17:41 Ash Willis
2007-08-01 18:51 ` Rafał Bilski
0 siblings, 1 reply; 13+ messages in thread
From: Ash Willis @ 2007-08-01 17:41 UTC (permalink / raw)
To: rafalbilski; +Cc: linux-kernel, alan, tiwai
>Hello,
>
>Linux: 2.6.23-rc1-git3
>Hardware: CX5530
>
>After "modprobe snd-cs5530" I have:
>CS5530: XpressAudio at 0x220
>CS5530: MPU at 0x330
>CS5530: IRQ: 9 DMA8: 0 DMA16: 5
>sb: can't grab irq 9
>CS5530: Could not create SoundBlaster
>CS5530_Audio: probe of 0000:00:12.3 failed with error -16
>Thank You
>Rafał
>
>~ $ cat /proc/interrupts
> CPU0
> 0: 26624 XT-PIC-XT timer
> 2: 0 XT-PIC-XT cascade
> 4: 428 XT-PIC-XT serial
> 8: 0 XT-PIC-XT rtc
> 9: 10793 XT-PIC-XT ohci_hcd:usb1
> 10: 1326 XT-PIC-XT eth0
>NMI: 0
>ERR: 0
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Rafał,
It seems that you're already using irq 9 for another device, and as Alan says
the cs5530 audio device doesn't seem to do irq sharing. It seems to me that you
need to go into your BIOS settings at startup and tell the device to use an irq
line that's not already in use by some other device. Can you please let me know
if this works?
The ALSA CS5530 driver is one that I ported from Alan's OSS Kahlua driver, so
there may be some things that I've missed. If the above advice doesn't work,
please confirm whether or not the device is functioning correctly in your
current set up with Alan's original OSS driver.
Thanks,
Ash
--
We've Got Your Name at http://www.mail.com!
Get a FREE E-mail Account Today - Choose From 100+ Domains
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-08-01 17:41 CS5530 Alsa driver fails Ash Willis
@ 2007-08-01 18:51 ` Rafał Bilski
2007-08-01 22:08 ` Alan Cox
0 siblings, 1 reply; 13+ messages in thread
From: Rafał Bilski @ 2007-08-01 18:51 UTC (permalink / raw)
To: Ash Willis; +Cc: linux-kernel, alan, tiwai
> Hi Rafał,
> It seems that you're already using irq 9 for another device, and as Alan says
> the cs5530 audio device doesn't seem to do irq sharing. It seems to me that you
> need to go into your BIOS settings at startup and tell the device to use an irq
> line that's not already in use by some other device. Can you please let me know
> if this works?
Sorry, I should mention earlier that this is Wyse 3360SE. I don't know how to
enter BIOS (if there is any).
> The ALSA CS5530 driver is one that I ported from Alan's OSS Kahlua driver, so
> there may be some things that I've missed. If the above advice doesn't work,
> please confirm whether or not the device is functioning correctly in your
> current set up with Alan's original OSS driver.
I will give up. I didn't checked code earlier. This driver is using SMM. Probably
firmware isn't what it should be, or I have overwritten it when I was flashing
Linux. I see in datasheet that it isn't possible to write driver in other way.
Sadly sound card is generating SMI only.
> Thanks,
>
> Ash
Thank You
Rafał
----------------------------------------------------------------------
Dowiedz sie, co naprawde podnieca kobiety. Wiecej wiesz, latwiej je
oczarujesz
>>>http://link.interia.pl/f1b17
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-08-01 18:51 ` Rafał Bilski
@ 2007-08-01 22:08 ` Alan Cox
2007-08-02 16:18 ` Rafał Bilski
0 siblings, 1 reply; 13+ messages in thread
From: Alan Cox @ 2007-08-01 22:08 UTC (permalink / raw)
To: Rafał Bilski; +Cc: Ash Willis, linux-kernel, tiwai
> I will give up. I didn't checked code earlier. This driver is using SMM. Probably
> firmware isn't what it should be, or I have overwritten it when I was flashing
> Linux. I see in datasheet that it isn't possible to write driver in other way.
> Sadly sound card is generating SMI only.
The 5530 in native mode only generates SMI. I've always felt however that
if you make the buffers big enough you ought to be able to drive it off
the 1KHz timer tick by polling. Interesting project.
You btw won't have removed the SMM firmware or the box wouldn't boot. The
5530 uses SMM to emulate some of the most basic PC components including
the VGA video. If your box has VSA2 then VSA2 firmware has some kind of
hooks to allow a native sound driver to take over and to reroute the
interrupts without SB emulation. I don't have the docs for VSA2 but the
horribly big natsemi provided audio driver does show how to do it.
Alan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
@ 2007-08-02 1:17 Ash Willis
2007-08-02 12:57 ` Alan Cox
0 siblings, 1 reply; 13+ messages in thread
From: Ash Willis @ 2007-08-02 1:17 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel, tiwai, rafalbilski
> the VGA video. If your box has VSA2 then VSA2 firmware has some kind of
> hooks to allow a native sound driver to take over and to reroute the
> interrupts without SB emulation. I don't have the docs for VSA2 but the
> horribly big natsemi provided audio driver does show how to do it.
>
I wouldn't mind porting VSA2 support to ALSA. I just don't have test
hardware. Do you happen to know any examples of hardware that run VSA2
firmware or is it just a case of a firmware update?
> Alan
Thanks,
Ash
--
We've Got Your Name at http://www.mail.com!
Get a FREE E-mail Account Today - Choose From 100+ Domains
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-08-02 1:17 Ash Willis
@ 2007-08-02 12:57 ` Alan Cox
2007-08-02 15:23 ` Jordan Crouse
0 siblings, 1 reply; 13+ messages in thread
From: Alan Cox @ 2007-08-02 12:57 UTC (permalink / raw)
To: Ash Willis; +Cc: linux-kernel, tiwai, rafalbilski
> I wouldn't mind porting VSA2 support to ALSA. I just don't have test
> hardware. Do you happen to know any examples of hardware that run VSA2
> firmware or is it just a case of a firmware update?
Anything from the natsemi era onwards ought to be VSA2
Alan
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-08-02 12:57 ` Alan Cox
@ 2007-08-02 15:23 ` Jordan Crouse
2007-08-02 17:01 ` Alan Cox
0 siblings, 1 reply; 13+ messages in thread
From: Jordan Crouse @ 2007-08-02 15:23 UTC (permalink / raw)
To: ashwillis; +Cc: linux-kernel, tiwai, rafalbilski
>> I wouldn't mind porting VSA2 support to ALSA. I just don't have test
>> hardware. Do you happen to know any examples of hardware that run VSA2
>> firmware or is it just a case of a firmware update?
> Anything from the natsemi era onwards ought to be VSA2
VSA2 is mainly used to support the GX and LX processors, and the
CS5535 and CS5536 southbridges. The southbridges both have
native AC97 controllers, supported by the snd-cs5535 driver
in the kernel and maintained by Jaya Kumar.
These just work, straight out of the box.
And as an aside, the VSA2 source code is open, so you can peruse
it and discover its secrets for yourself:
http://dev.laptop.org/git.do?p=geode-vsa;a=tree;hb=HEAD
Jordan
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-08-01 22:08 ` Alan Cox
@ 2007-08-02 16:18 ` Rafał Bilski
0 siblings, 0 replies; 13+ messages in thread
From: Rafał Bilski @ 2007-08-02 16:18 UTC (permalink / raw)
To: Alan Cox; +Cc: Ash Willis, linux-kernel, tiwai
> The 5530 in native mode only generates SMI. I've always felt however that
> if you make the buffers big enough you ought to be able to drive it off
> the 1KHz timer tick by polling. Interesting project.
Looks like somebody did it already. I will try it as soon as I can.
> You btw won't have removed the SMM firmware or the box wouldn't boot. The
> 5530 uses SMM to emulate some of the most basic PC components including
> the VGA video.
Hmm. I don't have VGA. Linux was always starting without VGA console. I had
to disable display (power off the DAC's) because of constant "Checking FLASH"
screen.
> Alan
Rafał
----------------------------------------------------------------------
Sprawdz
czy Ty i Twoj partner pasujecie do siebie emocjonalnie i seksualnie
>>>http://link.interia.pl/f1b14
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-08-02 17:01 ` Alan Cox
@ 2007-08-02 17:00 ` Jordan Crouse
0 siblings, 0 replies; 13+ messages in thread
From: Jordan Crouse @ 2007-08-02 17:00 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel, tiwai, rafalbilski
On 02/08/07 18:01 +0100, Alan Cox wrote:
> > And as an aside, the VSA2 source code is open, so you can peruse
> > it and discover its secrets for yourself:
> >
> > http://dev.laptop.org/git.do?p=geode-vsa;a=tree;hb=HEAD
>
> Interesting. I shall have to compare that with the CS5510/20 VSA1 tree I
> have here (which isn't under LGPL)
Not to get any further off topic - but we're still soliciting volunteers
to help port the VSA2 code so that it will build with OSS tools. If you're
interested, don't hesitate to dive in. :) Patches always gladly accepted.
Jordan
--
Jordan Crouse
Systems Software Development Engineer
Advanced Micro Devices, Inc.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: CS5530 Alsa driver fails
2007-08-02 15:23 ` Jordan Crouse
@ 2007-08-02 17:01 ` Alan Cox
2007-08-02 17:00 ` Jordan Crouse
0 siblings, 1 reply; 13+ messages in thread
From: Alan Cox @ 2007-08-02 17:01 UTC (permalink / raw)
To: Jordan Crouse; +Cc: linux-kernel, tiwai, rafalbilski
> And as an aside, the VSA2 source code is open, so you can peruse
> it and discover its secrets for yourself:
>
> http://dev.laptop.org/git.do?p=geode-vsa;a=tree;hb=HEAD
Interesting. I shall have to compare that with the CS5510/20 VSA1 tree I
have here (which isn't under LGPL)
Alan
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2007-08-02 16:59 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-01 17:41 CS5530 Alsa driver fails Ash Willis
2007-08-01 18:51 ` Rafał Bilski
2007-08-01 22:08 ` Alan Cox
2007-08-02 16:18 ` Rafał Bilski
-- strict thread matches above, loose matches on Subject: below --
2007-08-02 1:17 Ash Willis
2007-08-02 12:57 ` Alan Cox
2007-08-02 15:23 ` Jordan Crouse
2007-08-02 17:01 ` Alan Cox
2007-08-02 17:00 ` Jordan Crouse
2007-07-31 23:04 Rafał Bilski
2007-07-31 23:53 ` Alan Cox
2007-08-01 10:44 ` Takashi Iwai
2007-08-01 12:11 ` Rafał Bilski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox