All of lore.kernel.org
 help / color / mirror / Atom feed
* Is there plans to support SiS7019?
@ 2004-08-13 10:34 Vrihad Shoonya
  0 siblings, 0 replies; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-13 10:34 UTC (permalink / raw)
  To: alsa-devel


I am developing some audio application for SiS55x chipset.
Its audio chipset is SiS7019. I could not find it listed
in supported card list. Is there any plans to support it?
If not, what are the reasons?

Thanking in advance.
-vrihad


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
@ 2004-08-13 11:19 Peter Zubaj
  2004-08-13 23:45 ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Peter Zubaj @ 2004-08-13 11:19 UTC (permalink / raw)
  To: vrihad; +Cc: alsa-devel

Hi,

I think (and from alsa source), looks like it is not supported for now.
Maybe it is similiar to 7018, maybe someone could try to add it to
trident module.

Peter Zubaj
____________________________________
http://www.logofun.pobox.sk - urobte radost svojmu telefonu



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-13 11:19 Is there plans to support SiS7019? Peter Zubaj
@ 2004-08-13 23:45 ` Vrihad Shoonya
       [not found]   ` <Pine.HPX.4.3 3n.0408161131450.27899-100000@studcom.urz.uni-halle.de>
  2004-08-16  9:42   ` Clemens Ladisch
  0 siblings, 2 replies; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-13 23:45 UTC (permalink / raw)
  To: alsa-devel; +Cc: Peter Zubaj

Hi!

> I think (and from alsa source), looks like it is not supported for now.
> Maybe it is similiar to 7018, maybe someone could try to add it to
> trident module.
>From where I can confirm that it is similar to 7018? I have specs for this
particular hardware. Can someone help me in identifying the scope and area
of work needed to get its support in alsa? As I understand this chip
supports six channel audio.

Thanks in advance.

-vrihad




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-16  9:42   ` Clemens Ladisch
@ 2004-08-14  3:30     ` Vrihad Shoonya
  2004-08-16 13:10       ` Takashi Iwai
  0 siblings, 1 reply; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-14  3:30 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel


> You can try to go into the alsa-kernel/pci/trident directory and
> replace all occurrences of 7018 with 7019 (70 lines in three files).
> If the driver works with your card after recompiling, it is similar.
>
>> I have specs for this particular hardware.
>
> published anywhere?
We obtained it from SiS. Since they have stopped development on this
driver, they have agreed to provide the details to third parties for
fixing the problems. Their driver is OSS based, though.

>> As I understand this chip supports six channel audio.
>
> If it's an AC'97 controller then we should look at the intel8x0
> instead ...
It is an AC'97 controller. Under OSS, SiS supplied driver was stacked
over modules soundcore and ac97_codec. Now does the scope of work
change? Will it be easy to modify intel8x0 to work with it? Since
I have not done this stuff before, can you please point out the
right path?

-vrihad





-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-16 13:10       ` Takashi Iwai
@ 2004-08-14 23:48         ` Vrihad Shoonya
  2004-08-17  9:38           ` Takashi Iwai
  0 siblings, 1 reply; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-14 23:48 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Clemens Ladisch, alsa-devel

Hi!

Thanks for the quick response.

> The question is whether SIS7019 is an AC97 chip, or it's the one to
> control other AC97 chips.  If it's former, you should have another PCI
> entry for the controller (check lspci).  In the latter case, you can
> try snd-trident module with changes of pci id table from SIS7018 to
> SIS7019.

SiS7019 controls other AC97 chips. The board which we have designed
uses Real Tech's ALC202A (four channel) and ALC650 (six channel).
Now what should I change in
.../alsa-driver-1.0.0rc2/alsa-kernel/pci/trident/trident.c?
I see following entries with SiS7018 mentioned:

<snip>

MODULE_DESCRIPTION("Trident 4D-WaveDX/NX & SiS SI7018");

<snip>

MODULE_DEVICES("{{Trident,4DWave DX},"
                "{Trident,4DWave NX},"
                "{SiS,SI7018 PCI Audio},"
                "{Best Union,Miss Melody 4DWave PCI},"
                "{HIS,4DWave PCI},"
                "{Warpspeed,ONSpeed 4DWave PCI},"
                "{Aztech Systems,PCI 64-Q3D},"
                "{Addonics,SV 750},"
                "{CHIC,True Sound 4Dwave},"
                "{Shark,Predator4D-PCI},"
                "{Jaton,SonicWave 4D},"
                "{Hoontech,SoundTrack Digital 4DWave NX}}");

<snip>

static struct pci_device_id snd_trident_ids[] = {
        { 0x1023, 0x2000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* Trident
4DWave DX PCI Audio */
        { 0x1023, 0x2001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* Trident
4DWave NX PCI Audio */
        { 0x1039, 0x7018, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* SiS
SI7018 PCI Audio */
        { 0, }
};

<snip>

There are few more instances where related data structures are used
in the code. In the declarations shown above, what changes should I
make? Will changing the name part from 7018 to 7019 will be enough?

Thanks.

-vrihad



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-13 23:45 ` Vrihad Shoonya
       [not found]   ` <Pine.HPX.4.3 3n.0408161131450.27899-100000@studcom.urz.uni-halle.de>
@ 2004-08-16  9:42   ` Clemens Ladisch
  2004-08-14  3:30     ` Vrihad Shoonya
  1 sibling, 1 reply; 25+ messages in thread
From: Clemens Ladisch @ 2004-08-16  9:42 UTC (permalink / raw)
  To: Vrihad Shoonya; +Cc: alsa-devel

Vrihad Shoonya wrote:
> > I think (and from alsa source), looks like it is not supported for now.
> > Maybe it is similiar to 7018, maybe someone could try to add it to
> > trident module.
>
> From where I can confirm that it is similar to 7018?

Well, the number looks very similar.  ;-)

You can try to go into the alsa-kernel/pci/trident directory and
replace all occurrences of 7018 with 7019 (70 lines in three files).
If the driver works with your card after recompiling, it is similar.

> I have specs for this particular hardware.

published anywhere?

> Can someone help me in identifying the scope and area of work
> needed to get its support in alsa?

If the driver can just pretend it's an 7018, then it's trival.

> As I understand this chip supports six channel audio.

If it's an AC'97 controller then we should look at the intel8x0
instead ...


HTH
Clemens




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-14  3:30     ` Vrihad Shoonya
@ 2004-08-16 13:10       ` Takashi Iwai
  2004-08-14 23:48         ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2004-08-16 13:10 UTC (permalink / raw)
  To: Vrihad Shoonya; +Cc: Clemens Ladisch, alsa-devel

At Sat, 14 Aug 2004 09:00:51 +0530 (IST),
Vrihad Shoonya wrote:
> 
> 
> > You can try to go into the alsa-kernel/pci/trident directory and
> > replace all occurrences of 7018 with 7019 (70 lines in three files).
> > If the driver works with your card after recompiling, it is similar.
> >
> >> I have specs for this particular hardware.
> >
> > published anywhere?
> We obtained it from SiS. Since they have stopped development on this
> driver, they have agreed to provide the details to third parties for
> fixing the problems. Their driver is OSS based, though.
> 
> >> As I understand this chip supports six channel audio.
> >
> > If it's an AC'97 controller then we should look at the intel8x0
> > instead ...
> It is an AC'97 controller. Under OSS, SiS supplied driver was stacked
> over modules soundcore and ac97_codec. Now does the scope of work
> change? Will it be easy to modify intel8x0 to work with it? Since
> I have not done this stuff before, can you please point out the
> right path?

The question is whether SIS7019 is an AC97 chip, or it's the one to
control other AC97 chips.  If it's former, you should have another PCI
entry for the controller (check lspci).  In the latter case, you can
try snd-trident module with changes of pci id table from SIS7018 to
SIS7019.


Takashi


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-17 10:57 Peter Zubaj
@ 2004-08-17  4:42 ` Vrihad Shoonya
  0 siblings, 0 replies; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-17  4:42 UTC (permalink / raw)
  To: Peter Zubaj; +Cc: alsa-devel, clemens, tiwai


Thanks Peter, for the sugggestions.

>The simplest I think is:
>
> add in trident.h
>
> #ifndef PCI_DEVICE_ID_SI_7019
> #define PCI_DEVICE_ID_SI_7019		0x7019
> #endif
>
> after
>
> #ifndef PCI_DEVICE_ID_SI_7018
> #define PCI_DEVICE_ID_SI_7018		0x7018
> #endif
>
> and change this
> #define TRIDENT_DEVICE_ID_SI7018
> ((PCI_VENDOR_ID_SI<<16)|PCI_DEVICE_ID_SI_7018)
>
> to
> #define TRIDENT_DEVICE_ID_SI7018
> ((PCI_VENDOR_ID_SI<<16)|PCI_DEVICE_ID_SI_7019)
>
> and in trident.c change line
> { 0x1039, 0x7018, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },	/* SiS SI7018
> PCI Audio */
> to
> { 0x1039, 0x7019, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },	/* SiS SI7018
> PCI Audio */
>
> If driver will load it will still print sis7018 (but this is not problem).


I made the changes as specified by you. The configuration options were
--with-cards=dummy,seq-dummy,ad1848,cmipci,trident,als4000 --with-oss=yes
--with-sequencer=yes --with-debug=full --with-kernel=/usr/src/linux

The alsa-driver-1.0.6a package is built and installed successfully.
I made following entry in /etc/modules.conf

alias snd-card-0 snd-trident
alias sound-slot-0 snd-trident

Now when I do modprobe snd-trident, I get following errors

/lib/modules/2.4.18/kernel/sound/acore/snd.o: unresolved symbol
unregister_sound_special
/lib/modules/2.4.18/kernel/sound/acore/snd.o: unresolved symbol
register_sound_special
/lib/modules/2.4.18/kernel/sound/acore/snd.o: insmod
/lib/modules/2.4.18/kernel/sound/acore/snd.o failed
/lib/modules/2.4.18/kernel/sound/acore/snd.o: insmod snd-trident failed

There is no message in syslog, even though I have set debug=full in
configure option.

The AC97 codec chip I am using is AD1881A.

Got any pointer for more debugging?

-vrihad



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-17  9:38           ` Takashi Iwai
@ 2004-08-17  4:57             ` Vrihad Shoonya
  0 siblings, 0 replies; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-17  4:57 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Clemens Ladisch, alsa-devel


Thanks Takashi for the suggestions. But it is not working.

> No, just change snd_trident_ids[] entry for 7018 to 7019's one (maybe
> 0x7019?).  Also, in trident_main.c, you need to change the line 3546
>
> 	trident->device = (pci->vendor << 16) | pci->device;
>
> to
> 	trident->device = TRIDENT_DEVICE_ID_SI7018;
>
> You can leave MODULE_* stuffs as they are.

I made the changes as mentioned above. I am using alsa-driver-1.0.6a
on a board with sis7019 along with AD1881A. The configuration options
were
--with-cards=dummy,seq-dummy,ad1848,cmipci,trident,als4000 --with-oss=yes
--with-sequencer=yes --with-debug=full --with-kernel=/usr/src/linux

The entry in modules.conf is
alias snd-card-0 snd-trident
alias sound-slot-0 snd-trident

When I did modprobe snd-trident, I got following messages in syslog

Aug 18 15:56:15 stb kernel: PCI: Found IRQ 10 for device 00:01.4
Aug 18 15:56:16 stb kernel: ALSA
../../alsa-kernel/pci/trident/trident_main.c:3241: AC'97 codec ready e
rror [0x0]
Aug 18 15:56:20 stb last message repeated 2 times
Aug 18 15:56:21 stb kernel: ALSA
../../alsa-kernel/pci/ac97/ac97_codec.c:1904: AC'97 0 does not respond
 - RESET
Aug 18 15:56:21 stb kernel: ALSA
../../alsa-kernel/pci/ac97/ac97_codec.c:1912: AC'97 0 access is not va
lid [0x0], removing mixer.
Aug 18 15:56:21 stb kernel: ALSA
../../alsa-kernel/pci/trident/trident_main.c:3241: AC'97 codec ready e
rror [0x0]
Aug 18 15:56:25 stb last message repeated 2 times




Does alsa framework need a working driver for AD1881A too which is
the codec I am using right now? Since I don't have much knowledge
about the way the AC97 controller and codec functions, this question
may be stupid.

Thanks for the help.

-vrihad



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19  7:32 Peter Zubaj
@ 2004-08-17  5:04 ` Vrihad Shoonya
  0 siblings, 0 replies; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-17  5:04 UTC (permalink / raw)
  To: Peter Zubaj; +Cc: alsa-devel, clemens, tiwai

Hi,

> These errors are not related to changes you made.
>
> unregister_sound_special
> register_sound_special
>
> These are definied in soundcore module.
>
> I think you need this in modules.conf too
>
> alias char-major-116 snd
>
> before these lines
> alias snd-card-0 snd-trident
> alias sound-slot-0 snd-trident

Done. Now more unresolved symbols.

insmod: unresolved symbol snd_pcm_new
insmod: unresolved symbol snd_card_set_pm_callback
insmod: unresolved symbol snd_seq_device_new
insmod: unresolved symbol snd_hidden_kcalloc
insmod: unresolved symbol snd_ctl_notify
insmod: unresolved symbol snd_dma_alloc_pages
insmod: unresolved symbol snd_verbose_printk
insmod: unresolved symbol snd_util_memhdr_new
insmod: unresolved symbol snd_hidden_vfree
insmod: unresolved symbol snd_pcm_format_width
insmod: unresolved symbol snd_card_pci_resume
insmod: unresolved symbol snd_util_mem_avail
insmod: unresolved symbol snd_pcm_set_sync
insmod: unresolved symbol snd_pcm_lib_free_pages
insmod: unresolved symbol __snd_util_memblk_new
insmod: unresolved symbol __snd_util_mem_free
insmod: unresolved symbol snd_ctl_add
insmod: unresolved symbol snd_device_new
insmod: unresolved symbol snd_pcm_lib_malloc_pages
insmod: unresolved symbol snd_pcm_period_elapsed
insmod: unresolved symbol snd_ac97_suspend
insmod: unresolved symbol snd_mpu401_uart_interrupt
insmod: unresolved symbol snd_card_proc_new
insmod: unresolved symbol snd_pcm_lib_preallocate_pages
insmod: unresolved symbol snd_hidden_kfree
insmod: unresolved symbol snd_pcm_hw_constraint_minmax
insmod: unresolved symbol snd_pcm_suspend_all
insmod: unresolved symbol __snd_util_mem_alloc
insmod: unresolved symbol snd_iprintf
insmod: unresolved symbol snd_device_free
insmod: unresolved symbol snd_pcm_lib_preallocate_free_for_all
insmod: unresolved symbol snd_pcm_set_ops
insmod: unresolved symbol snd_hidden_vmalloc
insmod: unresolved symbol snd_util_memhdr_free
insmod: unresolved symbol snd_ac97_mixer
insmod: unresolved symbol snd_pcm_lib_ioctl
insmod: unresolved symbol snd_card_register
insmod: unresolved symbol snd_pcm_format_signed
insmod: unresolved symbol snd_ctl_new1
insmod: unresolved symbol snd_ac97_resume
insmod: unresolved symbol snd_pcm_sgbuf_ops_page
insmod: unresolved symbol snd_ac97_bus
insmod: unresolved symbol snd_card_free
insmod: unresolved symbol snd_pcm_lib_preallocate_pages_for_all
insmod: unresolved symbol snd_card_new
insmod: unresolved symbol snd_dma_free_pages
insmod: unresolved symbol snd_card_pci_suspend
insmod: unresolved symbol snd_mpu401_uart_new
modprobe: failed to load module snd-trident

I know that all modules to satisfy these symbols are compiled and
installed. I think my modules.conf file is not perfect. Can I get
a sample moudles.conf file? Does any such sample exist at alsa
site?

Thanks.

-vrihad



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-14 23:48         ` Vrihad Shoonya
@ 2004-08-17  9:38           ` Takashi Iwai
  2004-08-17  4:57             ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Takashi Iwai @ 2004-08-17  9:38 UTC (permalink / raw)
  To: Vrihad Shoonya; +Cc: Clemens Ladisch, alsa-devel

At Sun, 15 Aug 2004 05:18:48 +0530 (IST),
Vrihad Shoonya wrote:
> 
> Hi!
> 
> Thanks for the quick response.
> 
> > The question is whether SIS7019 is an AC97 chip, or it's the one to
> > control other AC97 chips.  If it's former, you should have another PCI
> > entry for the controller (check lspci).  In the latter case, you can
> > try snd-trident module with changes of pci id table from SIS7018 to
> > SIS7019.
> 
> SiS7019 controls other AC97 chips. The board which we have designed
> uses Real Tech's ALC202A (four channel) and ALC650 (six channel).
> Now what should I change in
> .../alsa-driver-1.0.0rc2/alsa-kernel/pci/trident/trident.c?
> I see following entries with SiS7018 mentioned:
> 
> <snip>
> 
> MODULE_DESCRIPTION("Trident 4D-WaveDX/NX & SiS SI7018");
> 
> <snip>
> 
> MODULE_DEVICES("{{Trident,4DWave DX},"
>                 "{Trident,4DWave NX},"
>                 "{SiS,SI7018 PCI Audio},"
>                 "{Best Union,Miss Melody 4DWave PCI},"
>                 "{HIS,4DWave PCI},"
>                 "{Warpspeed,ONSpeed 4DWave PCI},"
>                 "{Aztech Systems,PCI 64-Q3D},"
>                 "{Addonics,SV 750},"
>                 "{CHIC,True Sound 4Dwave},"
>                 "{Shark,Predator4D-PCI},"
>                 "{Jaton,SonicWave 4D},"
>                 "{Hoontech,SoundTrack Digital 4DWave NX}}");
> 
> <snip>
> 
> static struct pci_device_id snd_trident_ids[] = {
>         { 0x1023, 0x2000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* Trident
> 4DWave DX PCI Audio */
>         { 0x1023, 0x2001, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* Trident
> 4DWave NX PCI Audio */
>         { 0x1039, 0x7018, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },   /* SiS
> SI7018 PCI Audio */
>         { 0, }
> };
> 
> <snip>
> 
> There are few more instances where related data structures are used
> in the code. In the declarations shown above, what changes should I
> make? Will changing the name part from 7018 to 7019 will be enough?

No, just change snd_trident_ids[] entry for 7018 to 7019's one (maybe
0x7019?).  Also, in trident_main.c, you need to change the line 3546

	trident->device = (pci->vendor << 16) | pci->device;

to
	trident->device = TRIDENT_DEVICE_ID_SI7018;

You can leave MODULE_* stuffs as they are.


Takashi


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
@ 2004-08-17 10:57 Peter Zubaj
  2004-08-17  4:42 ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Peter Zubaj @ 2004-08-17 10:57 UTC (permalink / raw)
  To: vrihad; +Cc: alsa-devel, clemens, tiwai

Hi,

The simplest I think is:

add in trident.h

#ifndef PCI_DEVICE_ID_SI_7019
#define PCI_DEVICE_ID_SI_7019		0x7019
#endif 

after 

#ifndef PCI_DEVICE_ID_SI_7018
#define PCI_DEVICE_ID_SI_7018		0x7018
#endif 

and change this
#define TRIDENT_DEVICE_ID_SI7018
((PCI_VENDOR_ID_SI<<16)|PCI_DEVICE_ID_SI_7018) 

to 
#define TRIDENT_DEVICE_ID_SI7018
((PCI_VENDOR_ID_SI<<16)|PCI_DEVICE_ID_SI_7019) 

and in trident.c change line 
{ 0x1039, 0x7018, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },	/* SiS SI7018
PCI Audio */
to
{ 0x1039, 0x7019, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0, },	/* SiS SI7018
PCI Audio */

If driver will load it will still print sis7018 (but this is not problem).

Peter Zubaj
____________________________________
http://www.pobox.sk/ - spolahliva a bezpecna prevadzka





-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19 21:26       ` Lee Revell
@ 2004-08-18  6:56         ` Vrihad Shoonya
  0 siblings, 0 replies; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-18  6:56 UTC (permalink / raw)
  To: Lee Revell; +Cc: Vrihad Shoonya, Clemens Ladisch, alsa-devel


>> I want to find out how much time is needed to make the
>> driver from scratch if hardware specs are available. I have
>> no prior experience on this.
>>
>
> Google for "Writing an ALSA driver".  This excellent document
> by Takashi Iwai gives step by step instructions with many
> examples from the real code.  This should give you a pretty
> good idea of how long writing a driver takes, given the specs.
Thanks Lee for the right pointer. I have downloaded it. It seems to be
pretty exhaustive. I think it will help me a lot.

> I would imagine source code for an OSS driver would be even
> better than having the docs, as long as the code is not obfuscated.
The code is not obfuscated and it may help us. Anyway, I am planning
to dive in and let us see what happens.

Thanks.

-vrihad



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19 13:30         ` Jaroslav Kysela
@ 2004-08-18  7:02           ` Vrihad Shoonya
  0 siblings, 0 replies; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-18  7:02 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: Clemens Ladisch, alsa-devel


>> >> Google finds a NetBSD patch at
>> >> <http://www.yasuoka.net/~yasuoka/sis7019.html>, so it's possible.
>> >
>> > It looks that the driver must be written from scratch, because
>> > hardware is different from SI7018 and SI7012.
>>
>> That would be pretty big work isn't it? :-( Any estimation of scope
>> and time?
>
> One or two weeks for basic functionality.

I am ready to spend about a month on it. Hope to get it through with
all of your help:-)

Thanks.

-vrihad


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
@ 2004-08-19  7:32 Peter Zubaj
  2004-08-17  5:04 ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Peter Zubaj @ 2004-08-19  7:32 UTC (permalink / raw)
  To: vrihad; +Cc: alsa-devel, clemens, tiwai

Hi,

These errors are not related to changes you made.

unregister_sound_special
register_sound_special

These are definied in soundcore module.

I think you need this in modules.conf too 

alias char-major-116 snd

before these lines
alias snd-card-0 snd-trident
alias sound-slot-0 snd-trident

Peter Zubaj
____________________________________
http://www.logofun.pobox.sk - urobte radost svojmu telefonu



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
@ 2004-08-19  7:51 Peter Zubaj
  2004-08-19  8:31 ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Peter Zubaj @ 2004-08-19  7:51 UTC (permalink / raw)
  To: vrihad; +Cc: alsa-devel, clemens, tiwai

I think, there is no reason to try correct these unresolved symbols,
because result will by same as Takashi Iwai way.

For me looks like 7019 is diffrent from 7018. :-(

Peter Zubaj



____________________________________
http://www.logofun.pobox.sk - urobte radost svojmu telefonu



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19  7:51 Peter Zubaj
@ 2004-08-19  8:31 ` Vrihad Shoonya
  2004-08-19 11:19   ` Clemens Ladisch
  0 siblings, 1 reply; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-19  8:31 UTC (permalink / raw)
  To: Peter Zubaj; +Cc: alsa-devel, clemens, tiwai


> I think, there is no reason to try correct these unresolved symbols,
> because result will by same as Takashi Iwai way.
>
> For me looks like 7019 is diffrent from 7018. :-(

Now how much effort is required to support it in alsa if we have the
register guide with us? We also have an OSS implementation with
some bugs related to blocking read of the device.

-vrihad



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19  8:31 ` Vrihad Shoonya
@ 2004-08-19 11:19   ` Clemens Ladisch
  2004-08-19 11:54     ` Jaroslav Kysela
  2004-08-19 13:37     ` Vrihad Shoonya
  0 siblings, 2 replies; 25+ messages in thread
From: Clemens Ladisch @ 2004-08-19 11:19 UTC (permalink / raw)
  To: Vrihad Shoonya; +Cc: alsa-devel

Vrihad Shoonya wrote:
> > For me looks like 7019 is diffrent from 7018. :-(
>
> Now how much effort is required to support it in alsa if we have the
> register guide with us? We also have an OSS implementation with
> some bugs related to blocking read of the device.

It might help if we can take a look at the source.

Google finds a NetBSD patch at
<http://www.yasuoka.net/~yasuoka/sis7019.html>, so it's possible.


Regards,
Clemens




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19 11:19   ` Clemens Ladisch
@ 2004-08-19 11:54     ` Jaroslav Kysela
  2004-08-19 13:33       ` Vrihad Shoonya
  2004-08-19 13:37     ` Vrihad Shoonya
  1 sibling, 1 reply; 25+ messages in thread
From: Jaroslav Kysela @ 2004-08-19 11:54 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Vrihad Shoonya, alsa-devel

On Thu, 19 Aug 2004, Clemens Ladisch wrote:

> Vrihad Shoonya wrote:
> > > For me looks like 7019 is diffrent from 7018. :-(
> >
> > Now how much effort is required to support it in alsa if we have the
> > register guide with us? We also have an OSS implementation with
> > some bugs related to blocking read of the device.
> 
> It might help if we can take a look at the source.
> 
> Google finds a NetBSD patch at
> <http://www.yasuoka.net/~yasuoka/sis7019.html>, so it's possible.

It looks that the driver must be written from scratch, because hardware is 
different from SI7018 and SI7012.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
@ 2004-08-19 13:14 Peter Zubaj
  2004-08-19 13:31 ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Peter Zubaj @ 2004-08-19 13:14 UTC (permalink / raw)
  To: vrihad; +Cc: clemens, alsa-devel, perex

>It looks that the driver must be written from scratch, because
hardware is 
>different from SI7018 and SI7012.

I don't expect alsa driver for this soon, because this is not common
hardware.
This means, this is not standard pc soundcard (or chipset). This is
used in STB, PDA, embeded systems... .

For this is more used OSS drivers, because of alsa-lib size.

PS: I wonder about existence of NetBSD patch, because I found this:

Released under NDA. List of all registers of SiS55x includeing those
for core logic, graphics, PCI IDE configuration, legacy device, LPC
bus, USB, AC97, ACPI, SMBUS, etc; an inportant document for BIOS porting.
Peter Zubaj

____________________________________
http://www.pobox.sk/ - najvacsi slovensky freemail





-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19 13:33       ` Vrihad Shoonya
@ 2004-08-19 13:30         ` Jaroslav Kysela
  2004-08-18  7:02           ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Jaroslav Kysela @ 2004-08-19 13:30 UTC (permalink / raw)
  To: Vrihad Shoonya; +Cc: Clemens Ladisch, alsa-devel

On Thu, 19 Aug 2004, Vrihad Shoonya wrote:

> 
> >> Google finds a NetBSD patch at
> >> <http://www.yasuoka.net/~yasuoka/sis7019.html>, so it's possible.
> >
> > It looks that the driver must be written from scratch, because hardware is
> > different from SI7018 and SI7012.
> 
> That would be pretty big work isn't it? :-( Any estimation of scope and
> time?

One or two weeks for basic functionality.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19 13:14 Peter Zubaj
@ 2004-08-19 13:31 ` Vrihad Shoonya
  0 siblings, 0 replies; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-19 13:31 UTC (permalink / raw)
  To: Peter Zubaj; +Cc: clemens, alsa-devel, perex

>>It looks that the driver must be written from scratch,
>>because hardware is different from SI7018 and SI7012.
>
> I don't expect alsa driver for this soon, because this
> is not common hardware. This means, this is not standard
> pc soundcard (or chipset). This is used in STB, PDA,
> embeded systems... .
> For this is more used OSS drivers, because of alsa-lib size.
That is true. But the problem with OSS driver is that
recording is problematic.

> PS: I wonder about existence of NetBSD patch, because I
> found this:
The info was still under NDA when we got it. But they have
agreed now that info on audio section and code can be
released to third parties as they have stopped development.

-vrihad



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19 11:54     ` Jaroslav Kysela
@ 2004-08-19 13:33       ` Vrihad Shoonya
  2004-08-19 13:30         ` Jaroslav Kysela
  0 siblings, 1 reply; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-19 13:33 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: Clemens Ladisch, alsa-devel


>> Google finds a NetBSD patch at
>> <http://www.yasuoka.net/~yasuoka/sis7019.html>, so it's possible.
>
> It looks that the driver must be written from scratch, because hardware is
> different from SI7018 and SI7012.

That would be pretty big work isn't it? :-( Any estimation of scope and
time?

-vrihad


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19 11:19   ` Clemens Ladisch
  2004-08-19 11:54     ` Jaroslav Kysela
@ 2004-08-19 13:37     ` Vrihad Shoonya
  2004-08-19 21:26       ` Lee Revell
  1 sibling, 1 reply; 25+ messages in thread
From: Vrihad Shoonya @ 2004-08-19 13:37 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel



> It might help if we can take a look at the source.
>
> Google finds a NetBSD patch at
> <http://www.yasuoka.net/~yasuoka/sis7019.html>, so it's possible.

I can provide the source if you need it. But again it is for OSS
not alsa.

I want to find out how much time is needed to make the
driver from scratch if hardware specs are available. I have
no prior experience on this.

-vrihad



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

* Re: Is there plans to support SiS7019?
  2004-08-19 13:37     ` Vrihad Shoonya
@ 2004-08-19 21:26       ` Lee Revell
  2004-08-18  6:56         ` Vrihad Shoonya
  0 siblings, 1 reply; 25+ messages in thread
From: Lee Revell @ 2004-08-19 21:26 UTC (permalink / raw)
  To: Vrihad Shoonya; +Cc: Clemens Ladisch, alsa-devel

On Thu, 2004-08-19 at 09:37, Vrihad Shoonya wrote:
> > It might help if we can take a look at the source.
> >
> > Google finds a NetBSD patch at
> > <http://www.yasuoka.net/~yasuoka/sis7019.html>, so it's possible.
> 
> I can provide the source if you need it. But again it is for OSS
> not alsa.
> 
> I want to find out how much time is needed to make the
> driver from scratch if hardware specs are available. I have
> no prior experience on this.
> 

Google for "Writing an ALSA driver".  This excellent document by Takashi
Iwai gives step by step instructions with many examples from the real
code.  This should give you a pretty good idea of how long writing a
driver takes, given the specs.

I would imagine source code for an OSS driver would be even better than
having the docs, as long as the code is not obfuscated.

Lee



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

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

end of thread, other threads:[~2004-08-19 21:26 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-13 11:19 Is there plans to support SiS7019? Peter Zubaj
2004-08-13 23:45 ` Vrihad Shoonya
     [not found]   ` <Pine.HPX.4.3 3n.0408161131450.27899-100000@studcom.urz.uni-halle.de>
2004-08-16  9:42   ` Clemens Ladisch
2004-08-14  3:30     ` Vrihad Shoonya
2004-08-16 13:10       ` Takashi Iwai
2004-08-14 23:48         ` Vrihad Shoonya
2004-08-17  9:38           ` Takashi Iwai
2004-08-17  4:57             ` Vrihad Shoonya
  -- strict thread matches above, loose matches on Subject: below --
2004-08-19 13:14 Peter Zubaj
2004-08-19 13:31 ` Vrihad Shoonya
2004-08-19  7:51 Peter Zubaj
2004-08-19  8:31 ` Vrihad Shoonya
2004-08-19 11:19   ` Clemens Ladisch
2004-08-19 11:54     ` Jaroslav Kysela
2004-08-19 13:33       ` Vrihad Shoonya
2004-08-19 13:30         ` Jaroslav Kysela
2004-08-18  7:02           ` Vrihad Shoonya
2004-08-19 13:37     ` Vrihad Shoonya
2004-08-19 21:26       ` Lee Revell
2004-08-18  6:56         ` Vrihad Shoonya
2004-08-19  7:32 Peter Zubaj
2004-08-17  5:04 ` Vrihad Shoonya
2004-08-17 10:57 Peter Zubaj
2004-08-17  4:42 ` Vrihad Shoonya
2004-08-13 10:34 Vrihad Shoonya

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.