From nobody@FreeBSD.org  Sun Jul 18 19:35:37 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 868D4106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Jul 2010 19:35:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 746F38FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Jul 2010 19:35:37 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o6IJZbCX009224
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 18 Jul 2010 19:35:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o6IJZaDI009223;
	Sun, 18 Jul 2010 19:35:36 GMT
	(envelope-from nobody)
Message-Id: <201007181935.o6IJZaDI009223@www.freebsd.org>
Date: Sun, 18 Jul 2010 19:35:36 GMT
From: vermaden <vermaden@interia.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Headphones are deaf (do not work) on Lenovo ThinkPad X300
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         148741
>Category:       kern
>Synopsis:       [sound] Headphones are deaf (do not work) on Lenovo ThinkPad X300
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 18 19:40:08 UTC 2010
>Closed-Date:    Mon Nov 26 15:11:35 UTC 2012
>Last-Modified:  Wed Dec 26 19:00:01 UTC 2012
>Originator:     vermaden
>Release:        Stock/GENERIC FreeBSD 8.1-RC2
>Organization:
>Environment:
FreeBSD xavio 8.1-RC2 FreeBSD 8.1-RC2 #0: Tue Jun 29 20:21:55 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
Sound is working very nice on Lenovo ThinkPad X300, but when I plug the headphones, there is no sound on speakers and no sound in the headphones.

They also did not worked on 8.0-RELEASE.

Below I add (maybe) needed dumps, regards,
vermaden

% sysctl hw.snd     
hw.snd.feeder_rate_quality: 1
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.feeder_rate_polyphase_max: 183040
hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97
hw.snd.feeder_eq_exact_rate: 0
hw.snd.feeder_eq_presets: PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000
hw.snd.vpc_reset: 0
hw.snd.vpc_0db: 45
hw.snd.vpc_autoreset: 1
hw.snd.latency_profile: 1
hw.snd.latency: 7
hw.snd.report_soft_matrix: 1
hw.snd.report_soft_formats: 1
hw.snd.compat_linux_mmap: 0
hw.snd.vpc_mixer_bypass: 1
hw.snd.verbose: 0
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2009061500/amd64
hw.snd.default_auto: 0

% cat /dev/sndstat 
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)
Installed devices:
pcm0: <HDA Analog Devices AD1984A PCM #0 Analog> (play/rec) default
pcm1: <HDA Analog Devices AD1984A PCM #1 Digital> (rec)
pcm2: <HDA Analog Devices AD1984A PCM #2 Analog> (play)

% pciconf -l -v
hostb0@pci0:0:0:0:      class=0x060000 card=0x20b317aa chip=0x2a008086 rev=0x0c hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile PM965/GM965/GL960 Express Processor to DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:     class=0x030000 card=0x20b517aa chip=0x2a028086 rev=0x0c hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile 965 Express Integrated Graphics Controller'
    class      = display
    subclass   = VGA
vgapci1@pci0:0:2:1:     class=0x038000 card=0x20b517aa chip=0x2a038086 rev=0x0c hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile 965 Express Integrated Graphics Controller'
    class      = display
em0@pci0:0:25:0:        class=0x020000 card=0x20b917aa chip=0x10498086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Gigabit Network Connection Interface Controller (82566MM NIC)'
    class      = network
    subclass   = ethernet
uhci0@pci0:0:26:0:      class=0x0c0300 card=0x20aa17aa chip=0x28348086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *4'
    class      = serial bus
    subclass   = USB
uhci1@pci0:0:26:1:      class=0x0c0300 card=0x20aa17aa chip=0x28358086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *5'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:26:7:      class=0x0c0320 card=0x20ab17aa chip=0x283a8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'ICH8 Enhanced USB2 Enhanced Host Controller (81EC1043 (?))'
    class      = serial bus
    subclass   = USB
hdac0@pci0:0:27:0:      class=0x040300 card=0x20ac17aa chip=0x284b8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel audio controller embedded with the 82801H chipset ( ICH8 chipset ) (82801H)'
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0:      class=0x060400 card=0x20ad17aa chip=0x283f8086 rev=0x03 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) PCIe Port 1'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:1:      class=0x060400 card=0x20ad17aa chip=0x28418086 rev=0x03 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) PCIe Port 2'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:28:2:      class=0x060400 card=0x20ad17aa chip=0x28438086 rev=0x03 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) PCIe Port 3'
    class      = bridge
    subclass   = PCI-PCI
uhci2@pci0:0:29:0:      class=0x0c0300 card=0x20aa17aa chip=0x28308086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *1'
    class      = serial bus
    subclass   = USB
uhci3@pci0:0:29:1:      class=0x0c0300 card=0x20aa17aa chip=0x28318086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *2'
    class      = serial bus
    subclass   = USB
uhci4@pci0:0:29:2:      class=0x0c0300 card=0x20aa17aa chip=0x28328086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB UHCI *3'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:29:7:      class=0x0c0320 card=0x20ab17aa chip=0x28368086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) USB2 EHCI *1'
    class      = serial bus
    subclass   = USB
pcib4@pci0:0:30:0:      class=0x060401 card=0x20ae17aa chip=0x24488086 rev=0xf3 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 Family (ICH2/3/4/5/6/7/8/9-M) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:      class=0x060100 card=0x20b617aa chip=0x28118086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801HBM (ICH8M) LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:31:1:    class=0x01018a card=0x20a617aa chip=0x28508086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801H (ICH8 Family) Ultra ATA Storage Controllers'
    class      = mass storage
    subclass   = ATA
ahci0@pci0:0:31:2:      class=0x010601 card=0x20a717aa chip=0x28298086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile SATA AHCI Controller'
    class      = mass storage
    subclass   = SATA
none0@pci0:0:31:3:      class=0x0c0500 card=0x20a917aa chip=0x283e8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'SM Bus Controller (PCIVEN_8086&DEV_283E&SUBSYS_FF641179&REV_033&B1B)'
    class      = serial bus
    subclass   = SMBus
iwn0@pci0:3:0:0:        class=0x028000 card=0x11118086 chip=0x42308086 rev=0x61 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Intel Wireless WiFi Link 4965AGN (Intel 4965AGN)'
    class      = network


% dmesg
Copyright (c) 1992-2010 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.1-RC2 #0: Tue Jun 29 20:21:55 UTC 2010
    root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Duo CPU     L7100  @ 1.20GHz (1197.01-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x6fb  Family = 6  Model = f  Stepping = 11
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant
real memory  = 2147483648 (2048 MB)
avail memory = 2011885568 (1918 MB)
ACPI APIC Table: <LENOVO TP-7T   >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32 (20100331/tbfadt-625)
ACPI Warning: Optional field Gpe1Block has zero address or length: 0x       0    102C/0x0 (20100331/tbfadt-655)
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <LENOVO TP-7T> on motherboard
CPU0: local APIC error 0x40
acpi0: [ITHREAD]
acpi_ec0: <Embedded Controller: GPE 0x12, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 7df00000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x1800-0x1807 mem 0xfa000000-0xfa0fffff,0xe0000000-0xefffffff irq 16 at device 2.0 on pci0
agp0: <Intel GM965 SVGA controller> on vgapci0
agp0: detected 7676k stolen memory
agp0: aperture size is 256M
vgapci1: <VGA-compatible display> mem 0xfa100000-0xfa1fffff at device 2.1 on pci0
em0: <Intel(R) PRO/1000 Network Connection 7.0.5> port 0x1840-0x185f mem 0xfa200000-0xfa21ffff,0xfa225000-0xfa225fff irq 20 at device 25.0 on pci0
em0: Using MSI interrupt
em0: [FILTER]
em0: Ethernet address: 00:1c:25:7e:35:06
uhci0: <Intel 82801H (ICH8) USB controller USB-D> port 0x1860-0x187f irq 20 at device 26.0 on pci0
uhci0: [ITHREAD]
usbus0: <Intel 82801H (ICH8) USB controller USB-D> on uhci0
uhci1: <Intel 82801H (ICH8) USB controller USB-E> port 0x1880-0x189f irq 21 at device 26.1 on pci0
uhci1: [ITHREAD]
usbus1: <Intel 82801H (ICH8) USB controller USB-E> on uhci1
ehci0: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> mem 0xfa426c00-0xfa426fff irq 22 at device 26.7 on pci0
ehci0: [ITHREAD]
usbus2: EHCI version 1.0
usbus2: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> on ehci0
pci0: <multimedia, HDA> at device 27.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 20 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> irq 21 at device 28.1 on pci0
pci3: <ACPI PCI bus> on pcib2
iwn0: <Intel(R) PRO/Wireless 4965BGN> mem 0xf9f00000-0xf9f01fff irq 17 at device 0.0 on pci3
iwn0: MIMO 2T3R, MoW2, address 00:1f:3b:80:dc:75
iwn0: [ITHREAD]
iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
pcib3: <ACPI PCI-PCI bridge> irq 22 at device 28.2 on pci0
pci4: <ACPI PCI bus> on pcib3
uhci2: <Intel 82801H (ICH8) USB controller USB-A> port 0x18a0-0x18bf irq 16 at device 29.0 on pci0
uhci2: [ITHREAD]
usbus3: <Intel 82801H (ICH8) USB controller USB-A> on uhci2
uhci3: <Intel 82801H (ICH8) USB controller USB-B> port 0x18c0-0x18df irq 17 at device 29.1 on pci0
uhci3: [ITHREAD]
usbus4: <Intel 82801H (ICH8) USB controller USB-B> on uhci3
uhci4: <Intel 82801H (ICH8) USB controller USB-C> port 0x18e0-0x18ff irq 18 at device 29.2 on pci0
uhci4: [ITHREAD]
usbus5: <Intel 82801H (ICH8) USB controller USB-C> on uhci4
ehci1: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> mem 0xfa427000-0xfa4273ff irq 19 at device 29.7 on pci0
ehci1: [ITHREAD]
usbus6: EHCI version 1.0
usbus6: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> on ehci1
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci13: <ACPI PCI bus> on pcib4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH8M UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1c00-0x1c0f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ahci0: <Intel ICH8M AHCI SATA controller> port 0x1c50-0x1c57,0x1c44-0x1c47,0x1c48-0x1c4f,0x1c40-0x1c43,0x1c20-0x1c3f mem 0xfa426000-0xfa4267ff irq 16 at device 31.2 on pci0
ahci0: [ITHREAD]
ahci0: AHCI v1.10 with 3 1.5Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich0: [ITHREAD]
ahcich1: <AHCI channel> at channel 2 on ahci0
ahcich1: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_ibm0: <IBM ThinkPad ACPI Extras> on acpi0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xe0000-0xeffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
ZFS filesystem version 3
ZFS storage pool version 14
Timecounters tick every 10.000 msec
vboxdrv: fAsync=0 offMin=0x108 offMax=0x38a
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 12Mbps Full Speed USB v1.0
usbus6: 480Mbps High Speed USB v2.0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SAMSUNG MCCOE64G8MPP-0VA PS105L16> ATA-7 SATA 2.x device
ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes)
ada0: 61057MB (125045424 512 byte sectors: 16H 63S/T 16383C)
SMP: AP CPU #1 Launched!
ugen0.1: <Intel> at usbus0ugen1.1: <Intel> at usbus1

uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2ugen3.1: <Intel> at usbus3

uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4ugen5.1: <Intel> at usbus5

uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
ugen6.1: <Intel> at usbus6
uhub6: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus6
Root mount waiting for: usbus6 usbus5 usbus4 usbus3 usbus2 usbus1 usbus0
uhub1: 2 ports with 2 removable, self powered
uhub0: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub5: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
Root mount waiting for: usbus6 usbus2
uhub2: 4 ports with 4 removable, self powered
Root mount waiting for: usbus6 usbus2
uhub6: 6 ports with 6 removable, self powered
Root mount waiting for: usbus6
ugen6.2: <Chicony Electronics Co., Ltd.> at usbus6
Trying to mount root from ufs:/dev/label/rootfs
ugen0.2: <STMicroelectronics> at usbus0
vboxnet0: Ethernet address: 0a:00:27:00:00:00
wlan0: Ethernet address: 00:1f:3b:80:dc:75
wlan0: link state changed to UP
drm0: <Intel i965GM> on vgapci0
info: [drm] MSI enabled 1 message(s)
vgapci0: child drm0 requested pci_enable_busmaster
info: [drm] AGP at 0xe0000000 256MB
info: [drm] Initialized i915 1.6.0 20080730
drm0: [ITHREAD]
hdac0: <Intel 82801H High Definition Audio Controller> mem 0xfa220000-0xfa223fff irq 17 at device 27.0 on pci0
hdac0: HDA Driver Revision: 20100226_0142
hdac0: [ITHREAD]
hdac0: HDA Codec #0: Analog Devices AD1984A
pcm0: <HDA Analog Devices AD1984A PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA Analog Devices AD1984A PCM #1 Digital> at cad 0 nid 1 on hdac0
pcm2: <HDA Analog Devices AD1984A PCM #2 Analog> at cad 0 nid 1 on hdac0


>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jul 18 20:01:08 UTC 2010 
Responsible-Changed-Why:  
reclassify. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148741 

From: Brandon Gooch <jamesbrandongooch@gmail.com>
To: bug-followup@FreeBSD.org, vermaden@interia.pl
Cc:  
Subject: Re: kern/148741: [sound] Headphones are deaf (do not work) on Lenovo 
	ThinkPad X300
Date: Sun, 18 Jul 2010 18:38:41 -0500

 Try adding the following to /boot/device.hints and rebooting:
 
 hint.hdac.0.config="gpio0,gpio1,gpio2,gpio3,gpio4,gpio5,gpio6,gpio7"
 hint.hdac.0.cad0.nid17.config="as=1 seq=15 device=Headphones"
 hint.hdac.0.cad0.nid18.config="as=1 seq=0 device=Speaker"
 hint.hdac.0.cad0.nid20.config="as=2 seq=15 device=Line-in"
 hint.hdac.0.cad0.nid22.config="as=1 seq=15 device=CD"
 hint.hdac.0.cad0.nid23.config="as=2 seq=0 device=Mic"
 
 Works for me on my Lenovo X300.
 
 -Brandon

From: vermaden <vermaden@interia.pl>
To: jamesbrandongooch@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/148741: [sound] Headphones are deaf (do not work) on Lenovo ThinkPad X300
Date: 20 Jul 2010 15:00:03 +0200

 > Try adding the following to /boot/device.hints and rebooting:
 > 
 > hint.hdac.0.config="gpio0,gpio1,gpio2,gpio3,gpio4,gpio5,gpio6,gpio7"
 > hint.hdac.0.cad0.nid17.config="as=1 seq=15 device=Headphones"
 > hint.hdac.0.cad0.nid18.config="as=1 seq=0 device=Speaker"
 > hint.hdac.0.cad0.nid20.config="as=2 seq=15 device=Line-in"
 > hint.hdac.0.cad0.nid22.config="as=1 seq=15 device=CD"
 > hint.hdac.0.cad0.nid23.config="as=2 seq=0 device=Mic"
 > 
 > Works for me on my Lenovo X300.
 > 
 > -Brandon
  
  Yes, it works as You say, thank You ... but shouldnt
  it work out of the box without these 'hacks'?
  
  Regards,
  vermaden
  
  
  
  
  
  
  ----------------------------------------------------------------------
  Duzi chlopcy lubia wampiry i krew.
  http://linkint.pl/f2718
 
State-Changed-From-To: open->closed 
State-Changed-By: mav 
State-Changed-When: Mon Nov 26 15:09:31 UTC 2012 
State-Changed-Why:  
Proposed hints looks like overkill, but as far as it works, that is OK. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148741 

From: Yuri <yuri@rawbw.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148741: [sound] Headphones are deaf (do not work) on Lenovo
 ThinkPad X300
Date: Mon, 26 Nov 2012 22:27:33 -0800

 On 11/26/2012 21:59, vermaden wrote:mav@FreeBSD.org:
 >> Synopsis: [sound] Headphones are deaf (do not work) on Lenovo 
 >> ThinkPad X300
 >>
 >> State-Changed-From-To: open->closed
 >> State-Changed-By: mav
 >> State-Changed-When: Mon Nov 26 15:09:31 UTC 2012
 >> State-Changed-Why:
 >> Proposed hints looks like overkill, but as far as it works, that is OK.
 >>
 >> http://www.freebsd.org/cgi/query-pr.cgi?pr=148741
 > Closing this PR is OK under one of these conditions:
 >
 >   - LINK to that X300 specifical configuration/hack PR should be 
 > within FreeBSD Handbook.
 >   - Information for X300 specific configuration should be directly in 
 > the FreeBSD Handbook.
 
 Or there should be the quirks-like mechanism in hda driver incorporating 
 these hints on the device by device level.
 
 Yuri
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148741: commit references a PR
Date: Wed, 26 Dec 2012 18:51:46 +0000 (UTC)

 Author: mav
 Date: Wed Dec 26 18:51:37 2012
 New Revision: 244713
 URL: http://svnweb.freebsd.org/changeset/base/244713
 
 Log:
   MFC r244145:
   Add quirks for AD1984A codec and Lenovo X300 laptop.
   
   PR:		kern/148741
 
 Modified:
   stable/8/sys/dev/sound/pci/hda/hdaa_patches.c
   stable/8/sys/dev/sound/pci/hda/hdac.h
 Directory Properties:
   stable/8/sys/   (props changed)
   stable/8/sys/dev/   (props changed)
   stable/8/sys/dev/sound/   (props changed)
   stable/8/sys/dev/sound/pci/   (props changed)
 
 Modified: stable/8/sys/dev/sound/pci/hda/hdaa_patches.c
 ==============================================================================
 --- stable/8/sys/dev/sound/pci/hda/hdaa_patches.c	Wed Dec 26 18:50:03 2012	(r244712)
 +++ stable/8/sys/dev/sound/pci/hda/hdaa_patches.c	Wed Dec 26 18:51:37 2012	(r244713)
 @@ -271,7 +271,17 @@ hdac_pin_patch(struct hdaa_widget *w)
  	}
  
  	/* New patches */
 -	if (id == HDA_CODEC_AD1986A &&
 +	if (id == HDA_CODEC_AD1984A &&
 +	    subid == LENOVO_X300_SUBVENDOR) {
 +		switch (nid) {
 +		case 17: /* Headphones with redirection */
 +			patch = "as=1 seq=15";
 +			break;
 +		case 20: /* Two mics together */
 +			patch = "as=2 seq=15";
 +			break;
 +		}
 +	} else if (id == HDA_CODEC_AD1986A &&
  	    (subid == ASUS_M2NPVMX_SUBVENDOR ||
  	    subid == ASUS_A8NVMCSM_SUBVENDOR ||
  	    subid == ASUS_P5PL2_SUBVENDOR)) {
 @@ -372,6 +382,13 @@ hdaa_widget_patch(struct hdaa_widget *w)
  		    HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_SHIFT;
  		w->waspin = 1;
  	}
 +	/*
 +	 * Clear "digital" flag from digital mic input, as its signal then goes
 +	 * to "analog" mixer and this separation just limits functionaity.
 +	 */
 +	if (hdaa_codec_id(devinfo) == HDA_CODEC_AD1984A &&
 +	    w->nid == 23)
 +		w->param.widget_cap &= ~HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL_MASK;
  	HDA_BOOTVERBOSE(
  		if (w->param.widget_cap != orig) {
  			device_printf(w->devinfo->dev,
 
 Modified: stable/8/sys/dev/sound/pci/hda/hdac.h
 ==============================================================================
 --- stable/8/sys/dev/sound/pci/hda/hdac.h	Wed Dec 26 18:50:03 2012	(r244712)
 +++ stable/8/sys/dev/sound/pci/hda/hdac.h	Wed Dec 26 18:51:37 2012	(r244713)
 @@ -218,6 +218,7 @@
  #define LENOVO_3KN200_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x384e)
  #define LENOVO_B450_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3a0d)
  #define LENOVO_TCA55_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x1015)
 +#define LENOVO_X300_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x20ac)
  #define LENOVO_ALL_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
  
  /* Samsung */
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/148741: commit references a PR
Date: Wed, 26 Dec 2012 18:50:16 +0000 (UTC)

 Author: mav
 Date: Wed Dec 26 18:50:03 2012
 New Revision: 244712
 URL: http://svnweb.freebsd.org/changeset/base/244712
 
 Log:
   MFC r244145:
   Add quirks for AD1984A codec and Lenovo X300 laptop.
   
   PR:		kern/148741
 
 Modified:
   stable/9/sys/dev/sound/pci/hda/hdaa_patches.c
   stable/9/sys/dev/sound/pci/hda/hdac.h
 Directory Properties:
   stable/9/sys/   (props changed)
   stable/9/sys/dev/   (props changed)
 
 Modified: stable/9/sys/dev/sound/pci/hda/hdaa_patches.c
 ==============================================================================
 --- stable/9/sys/dev/sound/pci/hda/hdaa_patches.c	Wed Dec 26 18:28:17 2012	(r244711)
 +++ stable/9/sys/dev/sound/pci/hda/hdaa_patches.c	Wed Dec 26 18:50:03 2012	(r244712)
 @@ -271,7 +271,17 @@ hdac_pin_patch(struct hdaa_widget *w)
  	}
  
  	/* New patches */
 -	if (id == HDA_CODEC_AD1986A &&
 +	if (id == HDA_CODEC_AD1984A &&
 +	    subid == LENOVO_X300_SUBVENDOR) {
 +		switch (nid) {
 +		case 17: /* Headphones with redirection */
 +			patch = "as=1 seq=15";
 +			break;
 +		case 20: /* Two mics together */
 +			patch = "as=2 seq=15";
 +			break;
 +		}
 +	} else if (id == HDA_CODEC_AD1986A &&
  	    (subid == ASUS_M2NPVMX_SUBVENDOR ||
  	    subid == ASUS_A8NVMCSM_SUBVENDOR ||
  	    subid == ASUS_P5PL2_SUBVENDOR)) {
 @@ -372,6 +382,13 @@ hdaa_widget_patch(struct hdaa_widget *w)
  		    HDA_PARAM_AUDIO_WIDGET_CAP_TYPE_SHIFT;
  		w->waspin = 1;
  	}
 +	/*
 +	 * Clear "digital" flag from digital mic input, as its signal then goes
 +	 * to "analog" mixer and this separation just limits functionaity.
 +	 */
 +	if (hdaa_codec_id(devinfo) == HDA_CODEC_AD1984A &&
 +	    w->nid == 23)
 +		w->param.widget_cap &= ~HDA_PARAM_AUDIO_WIDGET_CAP_DIGITAL_MASK;
  	HDA_BOOTVERBOSE(
  		if (w->param.widget_cap != orig) {
  			device_printf(w->devinfo->dev,
 
 Modified: stable/9/sys/dev/sound/pci/hda/hdac.h
 ==============================================================================
 --- stable/9/sys/dev/sound/pci/hda/hdac.h	Wed Dec 26 18:28:17 2012	(r244711)
 +++ stable/9/sys/dev/sound/pci/hda/hdac.h	Wed Dec 26 18:50:03 2012	(r244712)
 @@ -218,6 +218,7 @@
  #define LENOVO_3KN200_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x384e)
  #define LENOVO_B450_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3a0d)
  #define LENOVO_TCA55_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x1015)
 +#define LENOVO_X300_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x20ac)
  #define LENOVO_ALL_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
  
  /* Samsung */
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
