Re: [Cooker] HP 5195 laptop configs

2000-11-15 Thread andre

  Is this serieus or silly ???  or both ??
 
 it serious, we have backported the sound API from 2.2.18pre.

Emeh, seems that the writer of the code thought something different. 




Re: [Cooker] HP 5195 laptop configs

2000-11-15 Thread Christopher Molnar

I know I'm doing something wrong, but I applied the patch and tried again, 
this is what I get:

In file included from /usr/src/linux/include/linux/sched.h:74,
 from maestro3.c:128:
/usr/src/linux/include/asm/processor.h:287: warning: `struct task_struct' 
declared inside parameter list
/usr/src/linux/include/asm/processor.h:287: warning: its scope is only this 
definition or declaration, which is probably not what you want.
/usr/src/linux/include/asm/processor.h:291: warning: `struct task_struct' 
declared inside parameter list
In file included from maestro3.c:130:
/usr/src/linux/include/linux/sound.h:5: warning: `struct file_operations' 
declared inside parameter list
/usr/src/linux/include/linux/sound.h:6: warning: `struct file_operations' 
declared inside parameter list
/usr/src/linux/include/linux/sound.h:7: warning: `struct file_operations' 
declared inside parameter list
/usr/src/linux/include/linux/sound.h:8: warning: `struct file_operations' 
declared inside parameter list
/usr/src/linux/include/linux/sound.h:9: warning: `struct file_operations' 
declared inside parameter list
In file included from maestro3.c:139:
/usr/src/linux/include/asm/uaccess.h: In function `verify_area':
/usr/src/linux/include/asm/uaccess.h:63: `current' undeclared (first use in 
this function)
/usr/src/linux/include/asm/uaccess.h:63: (Each undeclared identifier is 
reported only once
/usr/src/linux/include/asm/uaccess.h:63: for each function it appears in.)
/usr/src/linux/include/asm/uaccess.h:63: `EFAULT' undeclared (first use in 
this function)
/usr/src/linux/include/asm/uaccess.h:64: warning: control reaches end of 
non-void function
/usr/src/linux/include/asm/uaccess.h: In function `__constant_copy_to_user':
/usr/src/linux/include/asm/uaccess.h:547: `current' undeclared (first use in 
this function)
/usr/src/linux/include/asm/uaccess.h: In function `__constant_copy_from_user':
/usr/src/linux/include/asm/uaccess.h:555: `current' undeclared (first use in 
this function)
In file included from maestro3.c:148:
ac97_codec.h: At top level:
ac97_codec.h:150: parse error before `u32'
ac97_codec.h:150: warning: no semicolon at end of struct or union
ac97_codec.h:157: parse error before `*'
ac97_codec.h:157: parse error before `u8'
ac97_codec.h:157: warning: type defaults to `int' in declaration of `u16'
ac97_codec.h:157: warning: function declaration isn't a prototype
ac97_codec.h:157: `u16' declared as function returning a function
ac97_codec.h:157: warning: function declaration isn't a prototype
ac97_codec.h:157: warning: data definition has no type or storage class
ac97_codec.h:158: parse error before `u8'
ac97_codec.h:158: warning: function declaration isn't a prototype
ac97_codec.h:165: parse error before `supported_mixers'
ac97_codec.h:165: warning: type defaults to `int' in declaration of 
`supported_mixers'
ac97_codec.h:165: warning: data definition has no type or storage class
ac97_codec.h:166: parse error before `stereo_mixers'
ac97_codec.h:166: warning: type defaults to `int' in declaration of 
`stereo_mixers'
ac97_codec.h:166: warning: data definition has no type or storage class
ac97_codec.h:167: parse error before `record_sources'
ac97_codec.h:167: warning: type defaults to `int' in declaration of 
`record_sources'
ac97_codec.h:167: warning: data definition has no type or storage class
ac97_codec.h:175: parse error before `}'
ac97_codec.h:185: parse error before `ac97_codec_read'
ac97_codec.h:185: parse error before `u8'
ac97_codec.h:185: warning: type defaults to `int' in declaration of 
`ac97_codec_read'
ac97_codec.h:185: warning: function declaration isn't a prototype
ac97_codec.h:185: warning: data definition has no type or storage class
ac97_codec.h:186: parse error before `u8'
ac97_codec.h:186: warning: function declaration isn't a prototype
In file included from maestro3.c:150:
maestro3.h:698: parse error before `assp_kernel_image'
maestro3.h:698: warning: type defaults to `int' in declaration of 
`assp_kernel_image'
maestro3.h:779: warning: data definition has no type or storage class
maestro3.h:785: parse error before `assp_minisrc_image'
maestro3.h:785: warning: type defaults to `int' in declaration of 
`assp_minisrc_image'
maestro3.h:820: warning: data definition has no type or storage class
maestro3.c:193: parse error before `suspend_queue'
maestro3.c:193: warning: type defaults to `int' in declaration of 
`suspend_queue'
maestro3.c:193: warning: data definition has no type or storage class
maestro3.c:207: warning: `struct notifier_block' declared inside parameter 
list
maestro3.c:209: variable `maestro_nb' has initializer but incomplete type
maestro3.c:209: warning: excess elements in struct initializer
maestro3.c:209: warning: (near initialization for `maestro_nb')
maestro3.c:209: warning: excess elements in struct initializer
maestro3.c:209: warning: (near initialization for `maestro_nb')
maestro3.c:209: warning: excess elements in struct initializer
maestro3.c:209: warning: (near 

Re: [Cooker] HP 5195 laptop configs

2000-11-14 Thread Christopher Molnar

On 14 Nov 2000, Chmouel Boudjnah wrote:

 Christopher Molnar [EMAIL PROTECTED] writes:
 
   Now, most of this information came from a very excellent page at:
 
 what kind of soundcard ? lspcidrake output.
 

==
 Intel Corporation|440BX/ZX - 82443BX/ZX Host bridge (unknown ignore)
 Intel Corporation|440BX/ZX - 82443BX/ZX AGP bridge (unknown ignore)
 Texas Instruments|PCI1420 (unknown unknown)
 Texas Instruments|PCI1420 (unknown unknown)
 Intel Corporation|82371AB PIIX4 ISA (unknown unknown)
 Intel Corporation|82371AB PIIX4 IDE (STORAGE_IDE unknown)
 Intel Corporation|82371AB PIIX4 USB (SERIAL_USB usb-uhci)
 Intel Corporation|82371AB PIIX4 ACPI (unknown unknown)
 ESS Technology|ES1988 Allegro-1 (MULTIMEDIA_AUDIO unknown) SubVendor=0x103c 
SubDevice=0x0012
 ESS Technology|ESS Modem (COMMUNICATION_OTHER unknown) SubVendor=0x103c 
SubDevice=0x0012
 Vendor=0x1113 Device=0x1216 (NETWORK_ETHERNET unknown) SubVendor=0x1113 
SubDevice=0x2242
 S3 Inc.|86C270-294 Savage/MX-/IX (DISPLAY_VGA Card:S3 Savage (generic)) 
SubVendor=0x103c SubDevice=0x0014
 3Com/Megahertz 3CXEM556 Ethernet/Modem (network 3c589_cs)
 3Com/Megahertz 3CXEM556 Ethernet/Modem (serial serial_cs)
==

and from /proc/pci:


==
PCI devices found:
  Bus  0, device   0, function  0:
Host bridge: Intel 440BX - 82443BX Host (rev 3).
  Medium devsel.  Master Capable.  Latency=64.  
  Prefetchable 32 bit memory at 0xec00 [0xec08].
  Bus  0, device   1, function  0:
PCI bridge: Intel 440BX - 82443BX AGP (rev 3).
  Medium devsel.  Master Capable.  Latency=128.  Min Gnt=140.
  Bus  0, device   4, function  0:
CardBus bridge: Texas Instruments Unknown device (rev 0).
  Vendor id=104c. Device id=ac51.
  Medium devsel.  IRQ 11.  Master Capable.  Latency=168.  Min Gnt=192.Max Lat=7.
  Bus  0, device   4, function  1:
CardBus bridge: Texas Instruments Unknown device (rev 0).
  Vendor id=104c. Device id=ac51.
  Medium devsel.  IRQ 11.  Master Capable.  Latency=168.  Min Gnt=192.Max Lat=7.
  Bus  0, device   7, function  0:
ISA bridge: Intel 82371AB PIIX4 ISA (rev 2).
  Medium devsel.  Fast back-to-back capable.  Master Capable.  No bursts.  
  Bus  0, device   7, function  1:
IDE interface: Intel 82371AB PIIX4 IDE (rev 1).
  Medium devsel.  Fast back-to-back capable.  Master Capable.  Latency=64.  
  I/O at 0x1050 [0x1051].
  Bus  0, device   7, function  2:
USB Controller: Intel 82371AB PIIX4 USB (rev 1).
  Medium devsel.  Fast back-to-back capable.  IRQ 5.  Master Capable.  No bursts.  
  I/O at 0x1060 [0x1061].
  Bus  0, device   7, function  3:
Bridge: Intel 82371AB PIIX4 ACPI (rev 3).
  Medium devsel.  Fast back-to-back capable.  
  Bus  0, device   8, function  0:
Multimedia audio controller: ESS Technologies Unknown device (rev 18).
  Vendor id=125d. Device id=1988.
  Medium devsel.  Fast back-to-back capable.  IRQ 5.  Master Capable.  Latency=64. 
 Min Gnt=2.Max Lat=24.
  I/O at 0x1400 [0x1401].
  Bus  0, device   8, function  1:
Communication controller: ESS Technologies Unknown device (rev 18).
  Vendor id=125d. Device id=1989.
  Medium devsel.  Fast back-to-back capable.  IRQ 5.  
  I/O at 0x1800 [0x1801].
  Bus  0, device  16, function  0:
Ethernet controller: SMC Unknown device (rev 17).
  Vendor id=1113. Device id=1216.
  Medium devsel.  Fast back-to-back capable.  IRQ 11.  Master Capable.  
Latency=64.  Min Gnt=255.Max Lat=255.
  I/O at 0x1c00 [0x1c01].
  Non-prefetchable 32 bit memory at 0xe800 [0xe800].
  Bus  1, device   1, function  0:
VGA compatible controller: S3 Inc. Unknown device (rev 17).
  Vendor id=5333. Device id=8c12.
  Medium devsel.  IRQ 11.  Master Capable.  Latency=64.  Min Gnt=4.Max Lat=255.
  Non-prefetchable 32 bit memory at 0xf000 [0xf000].





Re: [Cooker] HP 5195 laptop configs

2000-11-14 Thread Vadim Plessky

On Wednesday 15 November 2000 21:59, Christopher Molnar wrote:
|   Well a large number of folks sent me email requesting the following
|information. So, if anyone wants to setup an HP Pavilion 5195 laptop,
| here is the link to how I got it to work: (1024x768 and 32bpp).
|
|http://www.mandrakesoft.com/~molnarc/hp_N5195.html
|Now, most of this information came from a very excellent page at:
|http://bowie.mit.edu/~simon/HP_N3330.htm
|Please give that author credit for this.
|
|-Chris

Super, both pages are excellent!

Simon, have you tried XF 4.0.1 and xf86cfg utility?
I encountered several problems re-installing XF 3.3.6 and decided to try Xf 
4.0.1 (some time ago).  xf86cfg, which is included with it, solved all 
problems, my X started at 1024x768.
It also created very interesting ModeLine, see below.
Is it possible to put it in Monitor/Card database so next time [Compaq 
Presario 1800] users will be able to get this ModeLine immediately?
On top of 1024x768, I have also 640x480 mode operational, but was not able to 
start X at 800x600. 
LCD panel is 15" 1024x768,  800x600 works in Windows.

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName"Monitor Model"
ModeLine "1024x768@62" 65.1 1024 1040 1136 1312 768 768 771 792 +hsync
+vsync
EndSection

Section "Device"
Identifier  "Card0"
Driver  "ati"
VendorName  "ATI"
BoardName   "Mach64 LM"
ChipSet "ati"
ChipId  0x4c4d
ChipRev 0x64
BusID   "PCI:1:0:0"
EndSection


-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
http://kde2.newmail.ru/index_rus.html  (Russian)
Do you have Arial font installed? Just test it!
http://kde2.newmail.ru/font_test_arial.html




Re: [Cooker] HP 5195 laptop configs

2000-11-14 Thread Chmouel Boudjnah

Christopher Molnar [EMAIL PROTECTED] writes:

  ESS Technology|ES1988 Allegro-1 (MULTIMEDIA_AUDIO unknown) SubVendor=0x103c 
SubDevice=0x0012

there could be a driver for your card at :

http://www.zabbo.net/maestro3/

it say it's experimental.

-- 
MandrakeSoft Inc http://www.chmouel.org
  --Chmouel




Re: [Cooker] HP 5195 laptop configs

2000-11-14 Thread Christopher Molnar

On Tuesday 14 November 2000 18:39, Chmouel Boudjnah wrote:
 Christopher Molnar [EMAIL PROTECTED] writes:
   ESS Technology|ES1988 Allegro-1 (MULTIMEDIA_AUDIO unknown)
  SubVendor=0x103c SubDevice=0x0012

 there could be a driver for your card at :

 http://www.zabbo.net/maestro3/

 it say it's experimental.

Looks like it may work but I do not have a clue on how to get it to compile. 
I tried the way he said to do it and it did not work. Whole bunch of errors. 

Any ideas?

-Chris




Re: [Cooker] HP 5195 laptop configs

2000-11-14 Thread Chmouel Boudjnah

Christopher Molnar [EMAIL PROTECTED] writes:

 On Tuesday 14 November 2000 18:39, Chmouel Boudjnah wrote:
  Christopher Molnar [EMAIL PROTECTED] writes:
ESS Technology|ES1988 Allegro-1 (MULTIMEDIA_AUDIO unknown)
   SubVendor=0x103c SubDevice=0x0012
 
  there could be a driver for your card at :
 
  http://www.zabbo.net/maestro3/
 
  it say it's experimental.
 
 Looks like it may work but I do not have a clue on how to get it to compile. 
 I tried the way he said to do it and it did not work. Whole bunch of errors. 

apply this patch :

--- maestro3.c.chmouTue Nov 14 16:50:59 2000
+++ maestro3.c  Tue Nov 14 16:51:02 2000
@@ -104,11 +104,15 @@
  #if defined(MODULE)  defined(MODVERSIONS)
#include linux/modversions.h
  #endif
+#if 0
  #define DECLARE_WAITQUEUE(QUEUE,INIT) struct wait_queue QUEUE = {INIT, NULL}
  #define wait_queue_head_t struct wait_queue *
+#endif
  #define SILLY_PCI_BASE_ADDRESS(PCIDEV) (PCIDEV-base_address[0]  
PCI_BASE_ADDRESS_IO_MASK)
  #define SILLY_INIT_SEM(SEM) SEM=MUTEX;
+#if 0
  #define init_waitqueue_head init_waitqueue
+#endif
  #define SILLY_MAKE_INIT(FUNC) __initfunc(FUNC)
  #define SILLY_OFFSET(VMA) ((VMA)-vm_offset)
 #else


there are already defined in our kernel.

-- 
MandrakeSoft Inc http://www.chmouel.org
  --Chmouel




Re: [Cooker] HP 5195 laptop configs

2000-11-14 Thread andre

 
 Christopher Molnar [EMAIL PROTECTED] writes:
 
  On Tuesday 14 November 2000 18:39, Chmouel Boudjnah wrote:
   Christopher Molnar [EMAIL PROTECTED] writes:
 ESS Technology|ES1988 Allegro-1 (MULTIMEDIA_AUDIO unknown)
SubVendor=0x103c SubDevice=0x0012
  
   there could be a driver for your card at :
  
   http://www.zabbo.net/maestro3/
  
   it say it's experimental.
  
  Looks like it may work but I do not have a clue on how to get it to compile. 
  I tried the way he said to do it and it did not work. Whole bunch of errors. 
 
 apply this patch :
 
 --- maestro3.c.chmouTue Nov 14 16:50:59 2000
 +++ maestro3.c  Tue Nov 14 16:51:02 2000
 @@ -104,11 +104,15 @@
   #if defined(MODULE)  defined(MODVERSIONS)
 #include linux/modversions.h
   #endif
 +#if 0
   #define DECLARE_WAITQUEUE(QUEUE,INIT) struct wait_queue QUEUE = {INIT, NULL}
   #define wait_queue_head_t struct wait_queue *
 +#endif
   #define SILLY_PCI_BASE_ADDRESS(PCIDEV) (PCIDEV-base_address[0]  
PCI_BASE_ADDRESS_IO_MASK)
   #define SILLY_INIT_SEM(SEM) SEM=MUTEX;
 +#if 0
   #define init_waitqueue_head init_waitqueue
 +#endif
   #define SILLY_MAKE_INIT(FUNC) __initfunc(FUNC)
   #define SILLY_OFFSET(VMA) ((VMA)-vm_offset)
  #else
 
 
 there are already defined in our kernel.
 
 -- 
 MandrakeSoft Inc http://www.chmouel.org
   --Chmouel
 
Is this serieus or silly ???
   or both ??




Re: [Cooker] HP 5195 laptop configs

2000-11-14 Thread Chmouel Boudjnah

[EMAIL PROTECTED] (andre) writes:

 Is this serieus or silly ???  or both ??

it serious, we have backported the sound API from 2.2.18pre.

-- 
MandrakeSoft Inc http://www.chmouel.org
  --Chmouel