Re: CS5530 Alsa driver fails

2007-08-02 Thread Jordan Crouse
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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Alan Cox
> 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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Rafał Bilski
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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Jordan Crouse
>> 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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Alan Cox
> 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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Alan Cox
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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Jordan Crouse
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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Rafał Bilski
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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Alan Cox
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

Re: CS5530 Alsa driver fails

2007-08-02 Thread Jordan Crouse
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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Ash Willis
> 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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Alan Cox
> 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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Rafał Bilski
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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Ash Willis
>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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Rafał Bilski
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 ==

Re: CS5530 Alsa driver fails

2007-08-01 Thread Takashi Iwai
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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Takashi Iwai
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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Rafał Bilski
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 ==

Re: CS5530 Alsa driver fails

2007-08-01 Thread Ash Willis
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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Rafał Bilski
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

Re: CS5530 Alsa driver fails

2007-08-01 Thread Alan Cox
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.

Re: CS5530 Alsa driver fails

2007-08-01 Thread Ash Willis
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

Re: CS5530 Alsa driver fails

2007-07-31 Thread Alan Cox
> 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

CS5530 Alsa driver fails

2007-07-31 Thread Rafał Bilski
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

CS5530 Alsa driver fails

2007-07-31 Thread Rafał Bilski
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

Re: CS5530 Alsa driver fails

2007-07-31 Thread Alan Cox
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