From owner-svn-src-all@FreeBSD.ORG Sun Jul 27 08:42:09 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BA5E2663; Sun, 27 Jul 2014 08:42:09 +0000 (UTC) Received: from mail-qa0-x230.google.com (mail-qa0-x230.google.com [IPv6:2607:f8b0:400d:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 337A22455; Sun, 27 Jul 2014 08:42:09 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id m5so6310397qaj.7 for ; Sun, 27 Jul 2014 01:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=N7Q0SJ8J7fTo+537I3+m/SYhvPi/Fdv54nTDVmjlkb4=; b=l3Q9A/dUac4zxWCLV0PpKvWnA2+KmnUFXKXL4k6B4InHXxeIaOXFidy0QOM72UIthY rjzHQ+YTxZbJ6WKq9124Ot0O97kDJ07dZDgrDaNRIF84vNg7wJaBanMY/0OhmUlHiBDe hRBpgAwZF5S2tKjLEW6M4Of5BkTurkGK2n8jizn39wsG8klm3ZKNkxV+B3KVQ/qiW6wP Tqm4d8QM+NTjmPt6Pv38RUERKTzTUXSwKWHdGyQzm9MOnRG6CPtw3YuGlI+mLkkgWvmr VCgUYAZc2GymybjIh4Aes2tTFuUzwRK2qpYvnN3DQjXg0fjAnBeowssi2xaasRXB891P oNmA== MIME-Version: 1.0 X-Received: by 10.224.171.197 with SMTP id i5mr46723578qaz.55.1406450528367; Sun, 27 Jul 2014 01:42:08 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Sun, 27 Jul 2014 01:42:08 -0700 (PDT) In-Reply-To: References: <201407131031.s6DAVTja093433@svn.freebsd.org> <53C335EF.2090606@FreeBSD.org> <53D4BA51.7070505@FreeBSD.org> Date: Sun, 27 Jul 2014 01:42:08 -0700 X-Google-Sender-Auth: Aih6yWyUeWJa0Tr76uLPp7fso7k Message-ID: Subject: Re: svn commit: r268584 - head/sys/dev/sound/pci/hda From: Adrian Chadd To: Alexander Motin Content-Type: text/plain; charset=UTF-8 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , Mark Johnston , "src-committers@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2014 08:42:09 -0000 ... aaand it worked. Woo! So how'd it actually map the correct selection between headphones and speaker? That's now cutting back and forth correctly as I plug in and out the headphone jack. -a On 27 July 2014 01:40, Adrian Chadd wrote: > ok, with that it looks like: > > root@lucy-11i386:/home/adrian/work/freebsd/head/src # kldload sound ; > kldload snd_hda > root@lucy-11i386:/home/adrian/work/freebsd/head/src # dmesg > snd_unit_init() u=0x00ff8000 [512] d=0x00007c00 [32] c=0x000003ff [1024] > feeder_register: snd_unit=-1 snd_maxautovchans=16 latency=5 > feeder_rate_min=1 feeder_rate_max=2016000 feeder_rate_round=25 > pci0: driver added > found-> vendor=0x8086, dev=0x2a44, revid=0x07 > domain=0, bus=0, slot=3, func=0 > class=07-80-00, hdrtype=0x00, mfdev=1 > cmdreg=0x0006, statreg=0x0010, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=16 > powerspec 3 supports D0 D3 current D0 > MSI supports 1 message, 64 bit > pci0:0:3:0: reprobing on driver added > found-> vendor=0x8086, dev=0x293e, revid=0x03 > domain=0, bus=0, slot=27, func=0 > class=04-03-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0506, statreg=0x0010, cachelnsz=16 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=b, irq=17 > powerspec 2 supports D0 D3 current D0 > MSI supports 1 message, 64 bit > pci0:0:27:0: reprobing on driver added > hdac0: mem 0xfc020000-0xfc023fff irq 17 > at device 27.0 on pci0 > hdac0: PCI card vendor: 0x17aa, device: 0x20f2 > hdac0: HDA Driver Revision: 20120126_0002 > hdac0: Config options: on=0x00000000 off=0x00000000 > hdac0: attempting to allocate 1 MSI vectors (1 supported) > msi: routing MSI IRQ 258 to local APIC 0 vector 52 > hdac0: using IRQ 258 for MSI > hdac0: Caps: OSS 4, ISS 4, BSS 0, NSDO 1, 64bit, CORB 256, RIRB 256 > found-> vendor=0x8086, dev=0x2930, revid=0x03 > domain=0, bus=0, slot=31, func=3 > class=0c-05-00, hdrtype=0x00, mfdev=0 > cmdreg=0x0103, statreg=0x0280, cachelnsz=0 (dwords) > lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) > intpin=a, irq=23 > pci0:0:31:3: reprobing on driver added > pci2: driver added > pci3: driver added > pci5: driver added > pci13: driver added > pci21: driver added > found-> vendor=0x1180, dev=0x0832, revid=0x04 > domain=0, bus=21, slot=0, func=1 > class=0c-00-10, hdrtype=0x00, mfdev=1 > cmdreg=0x0106, statreg=0x0210, cachelnsz=16 (dwords) > lattimer=0x20 (960 ns), mingnt=0x02 (500 ns), maxlat=0x04 (1000 ns) > intpin=b, irq=17 > powerspec 2 supports D0 D1 D2 D3 current D0 > pci0:21:0:1: reprobing on driver added > hdacc0: at cad 0 on hdac0 > hdaa0: at nid 1 on hdacc0 > hdaa0: Subsystem ID: 0x17aa211c > hdaa0: NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 > hdaa0: GPIO0: disabled > hdaa0: GPIO1: disabled > hdaa0: GPIO2: disabled > hdaa0: GPIO3: disabled > hdaa0: Original pins configuration: > hdaa0: nid 0x as seq device conn jack loc color misc > hdaa0: 22 022140f0 15 0 Headphones Jack 1/8 Front Green 0 > hdaa0: 23 61a190f0 15 0 Mic None 1/8 Ext-Rear Pink 0 > hdaa0: 24 02a190f0 15 0 Mic Jack 1/8 Front Pink 0 > hdaa0: 25 40f000f0 15 0 Other None Unknown 0x00 Unknown 0 > hdaa0: 26 901701f0 15 0 Speaker Fixed Analog Internal Unknown 1 > hdaa0: 27 40f001f0 15 0 Other None Unknown 0x00 Unknown 1 > hdaa0: 28 40f001f0 15 0 Other None Unknown 0x00 Unknown 1 > hdaa0: 29 90a601f0 15 0 Mic Fixed Digital Internal Unknown 1 > hdaa0: Patching pin config nid=22 0x022140f0 -> 0x0221401f > hdaa0: Patching pin config nid=24 0x02a190f0 -> 0x02a1902e > hdaa0: Patching pin config nid=26 0x901701f0 -> 0x90170110 > hdaa0: Patching pin config nid=29 0x90a601f0 -> 0x90a60120 > hdaa0: Patched pins configuration: > hdaa0: nid 0x as seq device conn jack loc color misc > hdaa0: 22 0221401f 1 15 Headphones Jack 1/8 Front Green 0 > hdaa0: 23 61a190f0 15 0 Mic None 1/8 Ext-Rear Pink 0 DISA > hdaa0: 24 02a1902e 2 14 Mic Jack 1/8 Front Pink 0 > hdaa0: 25 40f000f0 15 0 Other None Unknown 0x00 Unknown 0 DISA > hdaa0: 26 90170110 1 0 Speaker Fixed Analog Internal Unknown 1 > hdaa0: 27 40f001f0 15 0 Other None Unknown 0x00 Unknown 1 DISA > hdaa0: 28 40f001f0 15 0 Other None Unknown 0x00 Unknown 1 DISA > hdaa0: 29 90a60120 2 0 Mic Fixed Digital Internal Unknown 1 > hdaa0: 2 associations found: > hdaa0: Association 0 (1) out: > hdaa0: Pin nid=26 seq=0 > hdaa0: Pin nid=22 seq=15 > hdaa0: Association 1 (2) in: > hdaa0: Pin nid=29 seq=0 > hdaa0: Pin nid=24 seq=14 > hdaa0: Tracing association 0 (1) > hdaa0: Pin 26 traced to DAC 16 > hdaa0: Pin 22 traced to DAC 16 and hpredir 0 > hdaa0: Association 0 (1) trace succeeded > hdaa0: Tracing association 1 (2) > hdaa0: Pin 29 traced to ADC 20 > hdaa0: Unable to trace pin 24 to ADC 20, undo traces > hdaa0: Unable to trace pin 29 to ADC 21, undo traces > hdaa0: Association 1 (2) trace failed > hdaa0: Looking for additional DAC for association 0 (1) > hdaa0: Tracing input monitor > hdaa0: Tracing other input monitors > hdaa0: Tracing beeper > hdaa0: Headphones redirection for association 0 nid=22 using > unsolicited responses. > hdaa0: Redirect output to: main > hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref > pcm0: at nid 26,22 on hdaa0 > pcm0: Playback: > pcm0: Stream cap: 0x00000001 PCM > pcm0: PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz > pcm0: DAC: 16 > pcm0: > pcm0: nid=26 [pin: Speaker (Fixed)] > pcm0: + <- nid=16 [audio output] [src: pcm] > pcm0: > pcm0: nid=22 [pin: Headphones (Green Jack)] > pcm0: + <- nid=16 [audio output] [src: pcm] > pcm0: > pcm0: Master Volume (OSS: vol): -74/0dB > pcm0: +- ctl 1 (nid 16 out): -74/0dB (75 steps) > pcm0: > pcm0: PCM Volume (OSS: pcm): -74/0dB > pcm0: +- ctl 1 (nid 16 out): -74/0dB (75 steps) > pcm0: > pcm0: Speaker/Beep Volume (OSS: speaker): -18/0dB > pcm0: +- ctl 3 (nid 19 out): -18/0dB (4 steps) > pcm0: > pcm0: Mixer "vol": > pcm0: Mixer "pcm": > pcm0: Mixer "speaker": > pcm0: Mixer "ogain": > pcm0: Playback channel set is: Front Left, Front Right, > pcm0: Playback channel matrix is: 2.0 (unknown) > unknown: > at nid 2 on hdacc0 (no driver attached) > hdacc0: Subsystem ID: 0xf24f684c > > -a