Re: Only noise from azalia

2012-01-21 Thread Jairo Souto
On Sat, Jan 21, 2012 at 03:46:42PM +0400, Andre S wrote:
 I can get only noise from the audio of a notebook Acer Aspire 5820T-6825.
 
 Try this patch. But it for -current , not for 4.9
 
 --- sys/dev/pci/azalia.c.orig Tue Dec 27 17:26:51 2011
 +++ sys/dev/pci/azalia.c  Thu Jan 12 00:05:41 2012
 @@ -490,11 +490,22 @@
   uint8_t reg;
   pci_intr_handle_t ih;
   const char *interrupt_str;
 + int state;
  
   sc = (azalia_t*)self;
   pa = aux;
  
   sc-dmat = pa-pa_dmat;
 +
 + state = pci_set_powerstate(pa-pa_pc, pa-pa_tag, PCI_PMCSR_STATE_D0);
 + if ((statePCI_PMCSR_STATE_MASK) == PCI_PMCSR_STATE_D3) {
 + DPRINTF((\n%s: Set power state D3 to D0\n, __func__));
 + state = pci_get_powerstate(pa-pa_pc, pa-pa_tag);
 + if ((statePCI_PMCSR_STATE_MASK) == PCI_PMCSR_STATE_D3) {
 + printf(: unable to wake up from power state D3\n);
 + return;
 + }
 + }
  
   v = pci_conf_read(pa-pa_pc, pa-pa_tag, ICH_PCI_HDBARL);
   v = PCI_MAPREG_TYPE_MASK | PCI_MAPREG_MEM_TYPE_MASK;
 
 --- sys/dev/pci/azalia_codec.c.orig   Tue Dec 27 17:27:00 2011
 +++ sys/dev/pci/azalia_codec.cWed Jan 11 23:45:01 2012
 @@ -77,6 +77,7 @@
   break;
   case 0x10ec0269:
   this-name = Realtek ALC269;
 + this-qrks |= AZ_QRK_WID_CDIN_1C | AZ_QRK_WID_BEEP_1D;
   break;
   case 0x10ec0272:
   this-name = Realtek ALC272;

Great. It also did the job for the 4.9.

It is running perfectly. Very, very thanks.

--Jairo Souto (38)8816-1254



Re: Only noise from azalia

2012-01-20 Thread Jairo Souto
On Wed, Jan 18, 2012 at 09:41:03AM -0200, Daniel Bolgheroni wrote:
 On Tue, Jan 17, 2012 at 02:24:19PM -0200, Jairo Souto wrote:
  
  I have been tried all bsd.mp from
ftp.openbsd.org:/pub/OpenBSD/snapshots/amd64/bsd.mp
 
 Are you running 4.9 or -current?

4.9

 
  misc@ did not answer... 
 
 Usually, people in tech@ are in misc@ too. They probably won't because
 you're running a custom built kernel. Please see:
 
 http://www.openbsd.org/faq/faq5.html#WhySrc
 

I run the kernel customized to get an
HUAWEI cellular modem to run. Only the files
sys/dev/usb/{umsm.c,usbdevs.h,usbdevs,usbdevs_data.h} were
changed.

Thank you.

--Jairo Souto (38)8816-1254



Re: Only noise from azalia

2012-01-18 Thread Daniel Bolgheroni
On Tue, Jan 17, 2012 at 02:24:19PM -0200, Jairo Souto wrote:
 
 I have been tried all bsd.mp from
   ftp.openbsd.org:/pub/OpenBSD/snapshots/amd64/bsd.mp

Are you running 4.9 or -current?

 misc@ did not answer... 

Usually, people in tech@ are in misc@ too. They probably won't because
you're running a custom built kernel. Please see:

http://www.openbsd.org/faq/faq5.html#WhySrc



Re: Only noise from azalia

2012-01-17 Thread Daniel Bolgheroni
On Mon, Jan 16, 2012 at 08:49:13PM -0200, Jairo Souto wrote:
 I can get only noise from the audio of a notebook Acer Aspire
 5820T-6825.
 
   OpenBSD uranio.dlg 4.9 GENERIC.MP#6 amd64
 
 The snapshots until 9051675 Jan 13 19:04 bsd.mp have not worked.
 
 dmesg, audioctl -a and mixerctl -av are attached.
 
 I do need your help. Thank you.

Basic question: have you tried 5.0 or -current?

(This thread is more appropriate to misc@.)



Re: Only noise from azalia

2012-01-17 Thread Jairo Souto
On Tue, Jan 17, 2012 at 08:28:12AM -0200, Daniel Bolgheroni wrote:
 On Mon, Jan 16, 2012 at 08:49:13PM -0200, Jairo Souto wrote:
  I can get only noise from the audio of a notebook Acer Aspire
  5820T-6825.
  
  OpenBSD uranio.dlg 4.9 GENERIC.MP#6 amd64
  
  The snapshots until 9051675 Jan 13 19:04 bsd.mp have not worked.
  
  dmesg, audioctl -a and mixerctl -av are attached.
  
  I do need your help. Thank you.
 
 Basic question: have you tried 5.0 or -current?

I have been tried all bsd.mp from
  ftp.openbsd.org:/pub/OpenBSD/snapshots/amd64/bsd.mp


 
 (This thread is more appropriate to misc@.)

misc@ did not answer... 

 

Thank you.

--Jairo Souto (38)8816-1254



Only noise from azalia

2012-01-16 Thread Jairo Souto
I can get only noise from the audio of a notebook Acer Aspire
5820T-6825.

OpenBSD uranio.dlg 4.9 GENERIC.MP#6 amd64

The snapshots until 9051675 Jan 13 19:04 bsd.mp have not worked.

dmesg, audioctl -a and mixerctl -av are attached.

I do need your help. Thank you.

--Jairo Souto (38)8816-1254
dmesg
-

OpenBSD 4.9 (GENERIC.MP) #6: Tue Jan 10 22:37:22 BRST 2012
jso...@uranio.dlg:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80clock_battery
real mem = 3008843776 (2869MB)
avail mem = 2914713600 (2779MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9460 (51 entries)
bios0: vendor INSYDE version V1.23 date 12/21/2010
bios0: Acer Aspire 5820T
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP ASF! HPET APIC MCFG SLIC BOOT ASPT WDAT SSDT
acpi0: wakeup devices EHC1(S3) EHC2(S3) PXSX(S4) RP01(S4) PXSX(S4) PXSX(S4) 
PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz, 2660.92 MHz
cpu0: 
FPU,VME,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,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 133MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz, 2660.46 MHz
cpu1: 
FPU,VME,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,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz, 2660.46 MHz
cpu2: 
FPU,VME,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,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i5 CPU M 480 @ 2.67GHz, 2660.46 MHz
cpu3: 
FPU,VME,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,SSE4.1,SSE4.2,POPCNT,NXE,LONG
cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpimcfg0 at acpi0 addr 0xf000, bus 0-127
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P2)
acpiprt2 at acpi0: bus 3 (P0P1)
acpiprt3 at acpi0: bus 1 (RP01)
acpiprt4 at acpi0: bus -1 (RP02)
acpiprt5 at acpi0: bus -1 (RP03)
acpiprt6 at acpi0: bus -1 (RP04)
acpiprt7 at acpi0: bus -1 (RP05)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG3)
acpiprt11 at acpi0: bus -1 (PEG5)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpitz0 at acpi0: critical temperature 105 degC
acpibat0 at acpi0: BAT1 model AS10B3E serial 7F5A type LION oem SANYO
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: LCD_
acpivideo1 at acpi0: VGA_
cpu0: Enhanced SpeedStep 2660 MHz: speeds: 2667, 2666, 2533, 2399, 2266, 2133, 
1999, 1866, 1733, 1599, 1466, 1333, 1199 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core Host rev 0x18
vga1 at pci0 dev 2 function 0 Intel Mobile HD graphics rev 0x18
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 2 int 16 (irq 7)
drm0 at inteldrm0
Intel 3400 MEI rev 0x06 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 Intel 3400 USB rev 0x05: apic 2 int 16 (irq 7)
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 3400 HD Audio rev 0x05: apic 2 int 22 
(irq 11)
azalia_reset: resetting
azalia_reset: reset counter = 4999
azalia_reset: reset counter = 4985
azalia0: host: High Definition Audio rev. 1.0
azalia0: host: 4 output, 4 input, and 0 bidi streams
azalia0: found a codec at #0
azalia0: found a codec at #3
azalia_init_corb: CORB allocation succeeded.
azalia_init_corb: CORBWP=0; size=256
azalia_init_rirb: RIRB allocation succeeded.
azalia_init_rirb: RIRBRP=0, size=256
azalia0: codec[0] vid 0x10ec0269, subid 0x035d1025, rev. 1.0, HDA version 1.0
azalia0: nidstart=1 #functions=1
azalia_codec_init: FTYPE result = 0x0101
azalia_codec_init: There are 34 widgets in the audio function.
encodings=1PCM
PCM