Re: mplayer segfault

2010-06-26 Thread Adam Borbely
On Sat, Jun 26, 2010 at 04:24:23AM +, Jacob Meuser wrote:
 On Fri, Jun 25, 2010 at 10:12:03PM +0200, Adam Borbely wrote:
 
 Starting program: /usr/local/bin/mplayer -monitoraspect 16:10 -xy 2 
 -fstype none -zoom -vo x11 tv:// -tv driver=bsdbt848:freq=224.25
 Breakpoint 1 at 0xe40da4c: file /usr/src/lib/libsndio/sndio.c, line 
 292.
 MPlayer SVN-r29414-snapshot-3.3.5 (C) 2000-2009 MPlayer Team
 
 Playing tv://.
 TV file format detected.
 Selected driver: bsdbt848
  name: Brooktree848 Support
  author: Charles Henrich
  comment: in development
   ^^  but it's like 10 tears old and
 more or less abandoned.
 
  upgraded to current solved the segfault problem but now i do not have
  any picture from the tv card only a big blue screen. there are no error
  messages in /var/log/messages or dmesg|tail so the driver reports everything
  is okay. what is the way to have any more detailed info/debug messages  from
  the kernel/driver to see what is going wrong?
 
 maybe try fiddling with the 'input' option.  probably it's using the
 composite input or something.  you probably want 'input=1' (see
 description of METEORSINPUT in bkrt(4)).
 

thank you for the tip, that input=1 option brought back my picture.
happy again ;)



Re: mplayer segfault

2010-06-25 Thread Adam Borbely
On Thu, Jun 17, 2010 at 05:03:50AM +, Jacob Meuser wrote:
 On Wed, Jun 16, 2010 at 11:50:18PM +0200, Alexandre Ratchov wrote:
  On Wed, Jun 16, 2010 at 09:44:16PM +0200, Adam Borbely wrote:
   hi!
   
   after updated from 4.6 to 4.7 I can not play tv with mplayer.
   mplayer is installed as a package:
   
   * mplayer-20090708p4  movie player supporting MPEG, DivX, AVI, ASF, MOV  
   more
   
   krumpli$ r gd
   gdb mplayer
   GNU gdb 6.3
   Copyright 2004 Free Software Foundation, Inc.
   GDB is free software, covered by the GNU General Public License, and you 
   are
   welcome to change it and/or distribute copies of it under certain 
   conditions.
   Type show copying to see the conditions.
   There is absolutely no warranty for GDB.  Type show warranty for 
   details.
   This GDB was configured as i386-unknown-openbsd4.7...(no debugging 
   symbols found)
   
   (gdb) set args -monitoraspect 16:10 -xy 2 -fstype none -zoom -vo x11 
   tv:// -tv driver=bsdbt848:freq=224.25
   (gdb) break sio_setpar
   Breakpoint 1 at 0x3dfda4c: file /usr/src/lib/libsndio/sndio.c, line 292.
   (gdb) r
   Starting program: /usr/local/bin/mplayer -monitoraspect 16:10 -xy 2 
   -fstype none -zoom -vo x11 tv:// -tv driver=bsdbt848:freq=224.25
   Breakpoint 1 at 0xe40da4c: file /usr/src/lib/libsndio/sndio.c, line 292.
   MPlayer SVN-r29414-snapshot-3.3.5 (C) 2000-2009 MPlayer Team
   
   Playing tv://.
   TV file format detected.
   Selected driver: bsdbt848
name: Brooktree848 Support
author: Charles Henrich
comment: in development
   [Switching to process 31630, thread 0x8a620c00]
   
   Breakpoint 1, sio_setpar (hdl=0x87508b00, par=0xcfbe19a0) at 
   /usr/src/lib/libsndio/sndio.c:292
   292 hdl-eof = 1;
   (gdb) p hdl
   $1 = (struct sio_hdl *) 0x87508b00
   (gdb) n
   291 DPRINTF(sio_getpar: already started\n);
   (gdb) n
   292 hdl-eof = 1;
   (gdb) p hdl
   $2 = (struct sio_hdl *) 0x87508b00
   (gdb) r
   The program being debugged has been started already.
   Start it from the beginning? (y or n) n
   Program not restarted.
   (gdb) c
   Continuing.
   
   Breakpoint 1, sio_setpar (hdl=0x0, par=0x8512ae0c) at 
   /usr/src/lib/libsndio/sndio.c:292
   292 hdl-eof = 1;
   (gdb) bt
   #0  sio_setpar (hdl=0x0, par=0x8512ae0c) at 
   /usr/src/lib/libsndio/sndio.c:292
   #1  0x1c140188 in ?? ()
   #2  0x in ?? ()
   
   I don't know too much about sndio the only thing I see is that hdl is NUL 
   when
   sio_setpar is called the second time.
   
   advices?
   
  
  does the error occur if the bt848 is not involved? any hints
  on how to reproduce it without a bt848?
  
  You could try to ``export SIO_DEBUG=1'' and see if you get
  more information on what causes the crash.
 
 this is the stupidity of the bsdbt848 mplayer driver.  it has it's
 own audio code.  what needs to happen (as I said when I sent the
 untested patch to ports@ (and I was clear it was untested)) is to
 remove the audio code from bsdbt848 completely, finish the sndio
 streams code (there's a start there but it's unfinished and
 untested).  actually, there's absolutely no need to use the audio
 sampling interface when watching TV (recording yes, watching no).
 that's the really stupid part.
 
 oh, and if anyone ever wants to record audio/video with mencoder
 using uvideo(4), the mplayer sndio streams implementation will need
 to be finished.  (though I've never been able to capture any video
 with mencoder and a uvideo(4)).
 
 -- 
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org
 
 

upgraded to current solved the segfault problem but now i do not have
any picture from the tv card only a big blue screen. there are no error
messages in /var/log/messages or dmesg|tail so the driver reports everything
is okay. what is the way to have any more detailed info/debug messages  from
the kernel/driver to see what is going wrong?

thank you
Adam



mplayer segfault

2010-06-16 Thread Adam Borbely
hi!

after updated from 4.6 to 4.7 I can not play tv with mplayer.
mplayer is installed as a package:

* mplayer-20090708p4  movie player supporting MPEG, DivX, AVI, ASF, MOV  more

krumpli$ r gd
gdb mplayer
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i386-unknown-openbsd4.7...(no debugging symbols 
found)

(gdb) set args -monitoraspect 16:10 -xy 2 -fstype none -zoom -vo x11 tv:// -tv 
driver=bsdbt848:freq=224.25
(gdb) break sio_setpar
Breakpoint 1 at 0x3dfda4c: file /usr/src/lib/libsndio/sndio.c, line 292.
(gdb) r
Starting program: /usr/local/bin/mplayer -monitoraspect 16:10 -xy 2 -fstype 
none -zoom -vo x11 tv:// -tv driver=bsdbt848:freq=224.25
Breakpoint 1 at 0xe40da4c: file /usr/src/lib/libsndio/sndio.c, line 292.
MPlayer SVN-r29414-snapshot-3.3.5 (C) 2000-2009 MPlayer Team

Playing tv://.
TV file format detected.
Selected driver: bsdbt848
 name: Brooktree848 Support
 author: Charles Henrich
 comment: in development
[Switching to process 31630, thread 0x8a620c00]

Breakpoint 1, sio_setpar (hdl=0x87508b00, par=0xcfbe19a0) at 
/usr/src/lib/libsndio/sndio.c:292
292 hdl-eof = 1;
(gdb) p hdl
$1 = (struct sio_hdl *) 0x87508b00
(gdb) n
291 DPRINTF(sio_getpar: already started\n);
(gdb) n
292 hdl-eof = 1;
(gdb) p hdl
$2 = (struct sio_hdl *) 0x87508b00
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) c
Continuing.

Breakpoint 1, sio_setpar (hdl=0x0, par=0x8512ae0c) at 
/usr/src/lib/libsndio/sndio.c:292
292 hdl-eof = 1;
(gdb) bt
#0  sio_setpar (hdl=0x0, par=0x8512ae0c) at /usr/src/lib/libsndio/sndio.c:292
#1  0x1c140188 in ?? ()
#2  0x in ?? ()

I don't know too much about sndio the only thing I see is that hdl is NUL when
sio_setpar is called the second time.

advices?

please see full dmesg attached.

thank you,
Adam
OpenBSD 4.7 (GENERIC.MP) #449: Wed Mar 17 20:55:07 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (AuthenticAMD 686-class, 
512KB L2 cache) 2.42 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
real mem  = 3219615744 (3070MB)
avail mem = 3127590912 (2982MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 05/21/07, BIOS32 rev. 0 @ 0xf1de0, SMBIOS 
rev. 2.4 @ 0xf (65 entries)
bios0: vendor Phoenix Technologies, LTD version ASUS M2N-VM DH ACPI BIOS 
Revision 1103 date 05/21/2007
bios0: ASUSTeK Computer INC. M2N-VM DH
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP MCFG APIC
acpi0: wakeup devices HUB0(S5) XVR0(S5) XVR1(S5) XVR2(S5) UAR1(S5) PS2M(S4) 
PS2K(S4) USB0(S3) USB2(S3) AZAD(S5) MMAC(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (AuthenticAMD 686-class, 
512KB L2 cache) 2.42 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (HUB0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpitz0 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: PWRB
aibs0 at acpi0
aibs0: FSIF: misformed package: 3/5, assume 5
bios0: ROM list: 0xc/0x1
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
NVIDIA MCP61 Memory rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA MCP61 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA MCP61 SMBus rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-5300CL5
spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-6400CL5
iic1 at nviic0
NVIDIA MCP61 Memory rev 0xa2 at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 NVIDIA MCP61 USB rev 0xa2: apic 2 int 5 (irq 
5), version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 NVIDIA MPC61 USB rev 0xa2: apic 2 int 10 (irq 
10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
ppb0 at pci0 dev 4 function 0 NVIDIA MCP61 rev 0xa1
pci1 at ppb0 bus 1
bktr0 at pci1 dev 8 function 0 Brooktree BT848 rev 0x12: apic 2 int 11 (irq 
11)
bktr0: Pinnacle/Miro TV, Temic PAL tuner.
azalia0 at pci0 dev 5 function 0 NVIDIA MCP61 HD Audio rev 0xa2: apic 2 int 5 
(irq 5)
azalia0: codecs: Analog Devices AD1988A
audio0 at azalia0

unsupported atheros usb wifi wn721n

2010-05-12 Thread Adam Borbely
hi!

I just got a tp-link tl-wn721n usb adapter which looks like unsupported.
tried it on current. (vendor/product: 0x0cf3/0x9271)

my question: is there anybody who is working on any driver supporting
!

I just got a tp-link tl-wn721n usb adapter which looks like unsupported.
my question: is there anybody who is working on any driver supporting
this device. if there is then I could help testing it, if there's no one
then i thought it'd be a great opportunity to drive deeper and try to
write the driver for it. any suggestions?

Adamthis device. if there is then I could help testing it, if there's no one
then i thought it'd be a great opportunity to drive deeper and try to
write the driver for it. any suggestions?

Adam
OpenBSD 4.7-current (GENERIC.MP) #557: Tue Apr 27 00:36:31 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (GenuineIntel 686-class) 2 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
real mem  = 2145669120 (2046MB)
avail mem = 2067898368 (1972MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/07/10, BIOS32 rev. 0 @ 0xfdc70, SMBIOS 
rev. 2.4 @ 0xe0010 (71 entries)
bios0: vendor LENOVO version 7KETC9WW (2.29 ) date 04/07/2010
bios0: LENOVO 8918B8G
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT SSDT SSDT SSDT 
SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) 
USB3(S3) USB4(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (GenuineIntel 686-class) 2 
GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4513 serial  5561 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0xf000 0xcf000/0x1000 0xd/0x1000 0xe/0x1!
cpu0: Enhanced SpeedStep 1996 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
ppb0 at pci0 dev 1 function 0 Intel GM965 PCIE rev 0x0c: apic 1 int 16 (irq 
10)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor NVIDIA, unknown product 0x0429 rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 25 function 0 Intel ICH8 IGP M rev 0x03: apic 1 int 20 (irq 
11), address 00:15:58:cb:d4:f4
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1 int 20 (irq 
11)
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 1 int 21 (irq 
11)
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 1 int 22 (irq 
11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03: apic 1 int 
17 (irq 11)
azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices 
AD1984
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: apic 1 int 20 (irq 
11)
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801H PCIE rev 0x03: apic 1 int 21 (irq 
11)
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 Intel Wireless WiFi Link 4965 rev 0x61: apic 1 
int 17 (irq 11), MIMO 2T3R, MoW2, address 00:13:e8:ed:2c:cd
ppb3 at pci0 dev 28 function 2 Intel 82801H PCIE rev 0x03: apic 1 int 22 (irq 
11)
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 Intel 82801H PCIE rev 0x03: apic 1 int 23 (irq 
11)
pci5 at ppb4 bus 5
ppb5 at pci0 dev 28 function 4 Intel 82801H PCIE rev 0x03: apic 1 int 20 (irq 
11)
pci6 at ppb5 bus 13
uhci2 at pci0 dev 29 function 0 Intel 82801H USB rev 0x03: apic 1 int 16 (irq 
10)
uhci3 at pci0 dev 29