No sound from speaker, using Realtek ALC269 and snd_hda

Big Yuuta init.py at gmail.com
Sun Oct 28 20:09:12 UTC 2012


Thank you, Alexander!


On Sun, Oct 28, 2012 at 8:28 PM, Alexander Motin <mav at freebsd.org> wrote:
> On 28.10.2012 17:12, Big Yuuta wrote:
>>
>> hint.hdaa.0.nid20.config="as=1 seq=0 device=Speaker"
>> hint.hdaa.0.nid26.config="as=1 seq=15 device=Headphones"
>> hint.hdaa.0.nid18.config="as=2 seq=0"
>
>
> As I see, these three hints are replicating existing configuration and
> effectively useless.

You're absolutely right! These are the same as the original ones.

>> #hint.hdaa.0.gpio_config="0=set"
>> hint.hdaa.0.config="forcestereo,ivref50,ivref80,ivref100,ivref,vref"
>> hint.pcm.0.config="gpio0,gpio1,gpio2,gpio3,gpio4,gpio5,gpio6,gpio7"
>> hint.pcm.0.vol="100"
>>
>> This is my n'th attempt, I pretty tried everything I could imagine.
>>
>> Here's my verbose dmesg http://dpaste.com/818967/plain/
>>
>> Am I missing something? Is my understanding of pinouts correct?
>
>
> CODEC configuration looks good and I see no problems in driver output. I
> think most likely problem is in CODEC wiring and power amplifier. Your CODEC
> has two GPIO lines and EAPD line. That gives 8 possible combinations. I
> would recommend you to try them all. GPIOs, as you tried could be set with
> hint.hdaa.0.gpio_config tunable. EAPD line can be controlled (0 or 100) by
> the ogain mixer control.

You mean combinations like:

hint.hdaa.0.gpio_config="0=set 1=set 2=set"

Where the values could be "set" or "keep"? But then again, the man
also cites "clear", "disable", "input". So that'd make more than 8 possible
permutations? Or is it something else? Can you please give me an example?

Also, can I, after booting, just try with:

kenv  hint.hdaa.0.gpio_config="0=set 1=set 2=set"
kdunload snd_hda.ko
kdload snd_hda.ko

or should I reboot each time?


> Unluckily with this output I can't completely identify your system to check
> what Linux does for it. Could you send me `devinfo -vr` output.

Sure! I'm attaching it

Again thanks for all your work on the subject, and your help!


P.S. Here's some extra output from dmesg when I set: dev.hdac.0.pindump=1

hdaa0: Dumping AFG pins:
hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa0: 18 99a30920 2  0  Mic           Fixed ATAPI   Onboard    Unknown 9
hdaa0:     Caps: IN
hdaa0: 20 99130110 1  0  Speaker       Fixed ATAPI   Onboard    Unknown 1
hdaa0:     Caps:    OUT    EAPD      Sense: 0x00000000 (disconnected)
hdaa0: 23 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps:    OUT
hdaa0: 24 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps: IN OUT         VREF Sense: 0x00000000 (disconnected)
hdaa0: 25 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa0: 26 0121441f 1  15 Headphones    Jack  1/8     Rear       Green   4
hdaa0:     Caps: IN OUT HP           Sense: 0x00000000 (disconnected)
hdaa0: 27 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps: IN OUT              Sense: 0x00000000 (disconnected)
hdaa0: 30 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa0: 33 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps:    OUT HP           Sense: 0x00000000 (disconnected)
hdaa0: NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa0:  GPIO0: disabled
hdaa0:  GPIO1: disabled
-------------- next part --------------
nexus0
  apic0
  ram0
      I/O memory addresses:
          0x0-0x9fbff
          0x100000-0x7f68ffff
  acpi0
      Interrupt request lines:
          9
      I/O ports:
          0x10-0x1f
          0x22-0x3f
          0x44-0x4d
          0x50-0x5e
          0x63
          0x65
          0x67-0x6f
          0x72-0x7f
          0x80
          0x84-0x86
          0x88
          0x8c-0x8e
          0x90-0x9f
          0xa2-0xbf
          0xe0-0xef
          0x25c-0x25f
          0x380-0x383
          0x400-0x41f
          0x480-0x4bf
          0x4d0-0x4d1
          0x800-0x87f
      I/O memory addresses:
          0xc0000-0xcffff
          0xe0000-0xfffff
          0xe0000000-0xefffffff
          0xfec00000-0xfec00fff
          0xfed14000-0xfed19fff
          0xfed1c000-0xfed1ffff
          0xfed20000-0xfed3ffff
          0xfed50000-0xfed8ffff
          0xfed90000-0xffffffff
    acpi_ec0 pnpinfo _HID=PNP0C09 _UID=0 at handle=\_SB_.PCI0.SBRG.EC0_
        I/O ports:
            0x62
            0x66
    cpu0 pnpinfo _HID=none _UID=0 at handle=\_PR_.P001
        ACPI I/O ports:
            0x814
      acpi_throttle0
      est0
      p4tcc0
      acpi_perf0
      cpufreq0
    cpu1 pnpinfo _HID=none _UID=0 at handle=\_PR_.P002
        ACPI I/O ports:
            0x814
      acpi_throttle1
      est1
      p4tcc1
      acpi_perf1
      cpufreq1
    pcib0 pnpinfo _HID=PNP0A08 _UID=0 at handle=\_SB_.PCI0
        I/O ports:
            0xcf8-0xcff
      pci0
        hostb0 pnpinfo vendor=0x8086 device=0xa010 subvendor=0x1043 subdevice=0x83ac class=0x060000 at slot=0 function=0
        vgapci0 pnpinfo vendor=0x8086 device=0xa011 subvendor=0x1043 subdevice=0x83ac class=0x030000 at slot=2 function=0 handle=\_SB_.PCI0.VGA_
            Interrupt request lines:
                259
            I/O ports:
                0xdc00-0xdc07
            I/O memory addresses:
                0xd0000000-0xdfffffff
                0xf7d00000-0xf7dfffff
                0xf7e00000-0xf7e7ffff
          agp0
              I/O memory addresses:
                  0x80000000-0x80000fff
          acpi_video0
          drm0
          drmn0
        vgapci1 pnpinfo vendor=0x8086 device=0xa012 subvendor=0x1043 subdevice=0x83ac class=0x038000 at slot=2 function=1
            I/O memory addresses:
                0xf7e80000-0xf7efffff
          acpi_video1
          drm1
          drmn1
        hdac0 pnpinfo vendor=0x8086 device=0x27d8 subvendor=0x1043 subdevice=0x8437 class=0x040300 at slot=27 function=0
            Interrupt request lines:
                256
            I/O memory addresses:
                0xf7cf8000-0xf7cfbfff
          hdacc0 pnpinfo vendor=0x10ec device=0x0269 revision=0x01 stepping=0x00 at cad=0
            hdaa0 pnpinfo type=0x01 subsystem=0x10438437 at nid=1
              pcm0 at nid=20,26,18
        pcib1 pnpinfo vendor=0x8086 device=0x27d0 subvendor=0x1043 subdevice=0x83ad class=0x060400 at slot=28 function=0 handle=\_SB_.PCI0.P0P4
          pci4
        pcib2 pnpinfo vendor=0x8086 device=0x27d2 subvendor=0x1043 subdevice=0x83ad class=0x060400 at slot=28 function=1 handle=\_SB_.PCI0.P0P5
            I/O memory addresses:
                0xf0000000-0xf6ffffff
                0xf8000000-0xfbffffff
          pci2
            ath0 pnpinfo vendor=0x168c device=0x002c subvendor=0x1a3b subdevice=0x1112 class=0x028000 at slot=0 function=0
                Interrupt request lines:
                    17
                pcib2 memory window:
                    0xfbff0000-0xfbffffff
        pcib3 pnpinfo vendor=0x8086 device=0x27d6 subvendor=0x1043 subdevice=0x83ad class=0x060400 at slot=28 function=3 handle=\_SB_.PCI0.P0P7
            I/O ports:
                0xe000-0xefff
            I/O memory addresses:
                0xf7f00000-0xf7ffffff
          pci1
            alc0 pnpinfo vendor=0x1969 device=0x1062 subvendor=0x1043 subdevice=0x838a class=0x020000 at slot=0 function=0
                Interrupt request lines:
                    257
                pcib3 I/O port window:
                    0xec00-0xec7f
                pcib3 memory window:
                    0xf7fc0000-0xf7ffffff
              miibus0
                atphy0 pnpinfo oui=0xc82e model=0x1 rev=0xb at phyno=0
        uhci0 pnpinfo vendor=0x8086 device=0x27c8 subvendor=0x1043 subdevice=0x83ad class=0x0c0300 at slot=29 function=0 handle=\_SB_.PCI0.USB0
            Interrupt request lines:
                23
            I/O ports:
                0xd400-0xd41f
          usbus0
            uhub0
        uhci1 pnpinfo vendor=0x8086 device=0x27c9 subvendor=0x1043 subdevice=0x83ad class=0x0c0300 at slot=29 function=1 handle=\_SB_.PCI0.USB1
            Interrupt request lines:
                19
            I/O ports:
                0xd480-0xd49f
          usbus1
            uhub1
        uhci2 pnpinfo vendor=0x8086 device=0x27ca subvendor=0x1043 subdevice=0x83ad class=0x0c0300 at slot=29 function=2 handle=\_SB_.PCI0.USB2
            Interrupt request lines:
                18
            I/O ports:
                0xd800-0xd81f
          usbus2
            uhub2
        uhci3 pnpinfo vendor=0x8086 device=0x27cb subvendor=0x1043 subdevice=0x83ad class=0x0c0300 at slot=29 function=3 handle=\_SB_.PCI0.USB3
            Interrupt request lines:
                16
            I/O ports:
                0xd880-0xd89f
          usbus3
            uhub3
        ehci0 pnpinfo vendor=0x8086 device=0x27cc subvendor=0x1043 subdevice=0x83ad class=0x0c0320 at slot=29 function=7 handle=\_SB_.PCI0.EUSB
            Interrupt request lines:
                23
            I/O memory addresses:
                0xf7cf7c00-0xf7cf7fff
          usbus4
            uhub4
        pcib4 pnpinfo vendor=0x8086 device=0x2448 subvendor=0x1043 subdevice=0x83ad class=0x060401 at slot=30 function=0 handle=\_SB_.PCI0.P0P1
          pci5
        isab0 pnpinfo vendor=0x8086 device=0x27bc subvendor=0x1043 subdevice=0x83ad class=0x060100 at slot=31 function=0 handle=\_SB_.PCI0.SBRG
          isa0
            sc0
            vga0
                I/O ports:
                    0x3c0-0x3df
                I/O memory addresses:
                    0xa0000-0xbffff
            fdc0
            ppc0
            uart0
            uart1
        ahci0 pnpinfo vendor=0x8086 device=0x27c1 subvendor=0x1043 subdevice=0x83ad class=0x010601 at slot=31 function=2 handle=\_SB_.PCI0.IDE1
            Interrupt request lines:
                258
            I/O ports:
                0xc800-0xc81f
                0xc880-0xc883
                0xcc00-0xcc07
                0xd000-0xd003
                0xd080-0xd087
            I/O memory addresses:
                0xf7cf7800-0xf7cf7bff
          ahcich0 at channel=0
              I/O memory addresses:
                  0xf7cf7900-0xf7cf797f
          ahcich1 at channel=1
          ahcich2 at channel=2
          ahcich3 at channel=3
        unknown pnpinfo vendor=0x8086 device=0x27da subvendor=0x1043 subdevice=0x83ad class=0x0c0500 at slot=31 function=3
            ACPI I/O ports:
                0x400-0x41f
    acpi_sysresource0 pnpinfo _HID=PNP0C01 _UID=10 at handle=\_SB_.PCI0.MCH_
    unknown pnpinfo _HID=AWY0001 _UID=0 at handle=\_SB_.PCI0.SBRG.IELK
    unknown pnpinfo _HID=PNP0000 _UID=0 at handle=\_SB_.PCI0.SBRG.PIC_
        I/O ports:
            0x20-0x21
            0xa0-0xa1
    atdma0 pnpinfo _HID=PNP0200 _UID=0 at handle=\_SB_.PCI0.SBRG.DMAD
        DMA request lines:
            4
        I/O ports:
            0x0-0xf
            0x81-0x83
            0x87
            0x89-0x8b
            0x8f
            0xc0-0xdf
    attimer0 pnpinfo _HID=PNP0100 _UID=0 at handle=\_SB_.PCI0.SBRG.TMR_
        Interrupt request lines:
            0
        I/O ports:
            0x40-0x43
    atrtc0 pnpinfo _HID=PNP0B00 _UID=0 at handle=\_SB_.PCI0.SBRG.RTC0
        Interrupt request lines:
            8
        I/O ports:
            0x70-0x71
    atkbdc0 pnpinfo _HID=PNP0303 _UID=0 at handle=\_SB_.PCI0.SBRG.PS2K
        Interrupt request lines:
            1
        I/O ports:
            0x60
            0x64
      atkbd0
      psm0
          Interrupt request lines:
              12
    unknown pnpinfo _HID=PNP0800 _UID=0 at handle=\_SB_.PCI0.SBRG.SPKR
        I/O ports:
            0x61
    fpupnp0 pnpinfo _HID=PNP0C04 _UID=0 at handle=\_SB_.PCI0.SBRG.COPR
        I/O ports:
            0xf0-0xff
    unknown pnpinfo _HID=PNP0C09 _UID=0 at handle=\_SB_.PCI0.SBRG.EC0_
    acpi_sysresource1 pnpinfo _HID=PNP0C02 _UID=16 at handle=\_SB_.PCI0.SBRG.RMSC
    hpet0 pnpinfo _HID=PNP0103 _UID=0 at handle=\_SB_.PCI0.SBRG.HPET
        Interrupt request lines:
            20
        I/O memory addresses:
            0xfed00000-0xfed003ff
    acpi_sysresource2 pnpinfo _HID=PNP0C02 _UID=0 at handle=\_SB_.PCI0.SBRG.OMSC
    psmcpnp0 pnpinfo _HID=SYN0A13 _UID=0 at handle=\_SB_.PCI0.SBRG.PS2M
    acpi_sysresource3 pnpinfo _HID=PNP0C02 _UID=17 at handle=\_SB_.PCI0.PCIE
    battery0 pnpinfo _HID=PNP0C0A _UID=0 at handle=\_SB_.PCI0.BAT0
    acpi_acad0 pnpinfo _HID=ACPI0003 _UID=0 at handle=\_SB_.PCI0.AC0_
    acpi_sysresource4 pnpinfo _HID=PNP0C01 _UID=1 at handle=\_SB_.RMEM
    unknown pnpinfo _HID=ASUS010 _UID=16843008 at handle=\_SB_.ATKD
    acpi_lid0 pnpinfo _HID=PNP0C0D _UID=0 at handle=\_SB_.LID_
    acpi_button0 pnpinfo _HID=PNP0C0E _UID=0 at handle=\_SB_.SLPB
    acpi_button1 pnpinfo _HID=PNP0C0C _UID=170 at handle=\_SB_.PWRB
    pci_link0 pnpinfo _HID=PNP0C0F _UID=1 at handle=\_SB_.LNKA
    pci_link1 pnpinfo _HID=PNP0C0F _UID=2 at handle=\_SB_.LNKB
    pci_link2 pnpinfo _HID=PNP0C0F _UID=3 at handle=\_SB_.LNKC
    pci_link3 pnpinfo _HID=PNP0C0F _UID=4 at handle=\_SB_.LNKD
    pci_link4 pnpinfo _HID=PNP0C0F _UID=5 at handle=\_SB_.LNKE
    pci_link5 pnpinfo _HID=PNP0C0F _UID=6 at handle=\_SB_.LNKF
    pci_link6 pnpinfo _HID=PNP0C0F _UID=7 at handle=\_SB_.LNKG
    pci_link7 pnpinfo _HID=PNP0C0F _UID=8 at handle=\_SB_.LNKH
    acpi_tz0 pnpinfo _HID=none _UID=0 at handle=\_TZ_.TZ00
    unknown pnpinfo _HID=PNP0C14 _UID=0 at handle=\AMW0
    acpi_timer0 pnpinfo unknown at unknown
        ACPI I/O ports:
            0x808-0x80b


More information about the freebsd-questions mailing list