Re: CS5530 Alsa driver fails
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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
> 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
>> 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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
> 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
> 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
> 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
>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 :00:12.3 failed with error -16 >Thank You >Rafa > >~ $ cat /proc/interrupts > CPU0 > 0: 26624XT-PIC-XTtimer > 2: 0XT-PIC-XTcascade > 4:428XT-PIC-XTserial > 8: 0XT-PIC-XTrtc > 9: 10793XT-PIC-XTohci_hcd:usb1 > 10: 1326XT-PIC-XTeth0 >NMI: 0 >ERR: 0 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 :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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 :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); - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 :00:12.3 failed with error -16 Thank You Rafa#322; ~ $ cat /proc/interrupts CPU0 0: 26624XT-PIC-XTtimer 2: 0XT-PIC-XTcascade 4:428XT-PIC-XTserial 8: 0XT-PIC-XTrtc 9: 10793XT-PIC-XTohci_hcd:usb1 10: 1326XT-PIC-XTeth0 NMI: 0 ERR: 0 Hi Rafa#322;, 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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
> 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 :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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: CS5530 Alsa driver fails
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 :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 - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/