• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

headphones no audio

oscarandrea

New Member


Messages: 14

#1
hi, i have a problem with freebsd, I can not hear sound from the headphones, the loudspeakers of my notebook (asus x55a) feels, but if I connect the headphones, and nothing changes in xfce4 plugin not the headphones item appears, time PC-BSD is installed it and it worked so I do not think it's a compatibility problem, thanks in advance

This is what appears when I inserted the headset
 

shepper

Aspiring Daemon

Thanks: 228
Messages: 677

#3
This can be complicated to answer.
Xfce4 uses gstreamer plugins and in NetBSD uses pulseaudio as a sound server. In NetBSD you have to install the gstreamer pulseaudio plugin. Not sure how the FreeBSD porters set this up.

I would start by just seeing if basic sound works from the command line. Handbook section 7.2 goes into the basics but is a little dated. You do not need to load the snd_hda module in FreeBSD 11.0 as it is statically built into the default kernel.

A simple way to generate test sound from the command line is to use audio/madplay and an *mp3 of your choice.
 

oscarandrea

New Member


Messages: 14

#4
This can be complicated to answer.
Xfce4 uses gstreamer plugins and in NetBSD uses pulseaudio as a sound server. In NetBSD you have to install the gstreamer pulseaudio plugin. Not sure how the FreeBSD porters set this up.

I would start by just seeing if basic sound works from the command line. Handbook section 7.2 goes into the basics but is a little dated. You do not need to load the snd_hda module in FreeBSD 11.0 as it is statically built into the default kernel.

A simple way to generate test sound from the command line is to use audio/madplay and an *mp3 of your choice.
I changed de, now I have a window manager, dwm, still do not know how to configure the headset :(
 

shepper

Aspiring Daemon

Thanks: 228
Messages: 677

#5
During boot, FreeBSD audio probes for the available input/output pins and groups into pcm* devices. For a typical desktop, the rear panel jacks might be grouped into pcm0 while the front headphone/mic jacks would get grouped into pcm1. If your headphones are associated with pcm1, you can test by setting your default pcm to pcm1 Section 7.2 describes how to do this .

Most desktop user would like their front headphones to automatically mute the rear speaker jacks when plugged in. To do this you have to rearrange the pin associations as was done in this Thread 57969.

The reference for this is snd_hda(4). Hopefully, the man pages are translated. If you have problems post:
# cat /dev/sndstat and verbose dmesg content that list the pins for hdaa.
#
sysctl dev.hdac.0.pindump=1

followed by
# dmesg | grep hdaa > default_sound_gpio.txt.
 

oscarandrea

New Member


Messages: 14

#6
During boot, FreeBSD audio probes for the available input/output pins and groups into pcm* devices. For a typical desktop, the rear panel jacks might be grouped into pcm0 while the front headphone/mic jacks would get grouped into pcm1. If your headphones are associated with pcm1, you can test by setting your default pcm to pcm1 Section 7.2 describes how to do this .

Most desktop user would like their front headphones to automatically mute the rear speaker jacks when plugged in. To do this you have to rearrange the pin associations as was done in this Thread 57969.

The reference for this is snd_hda(4). Hopefully, the man pages are translated. If you have problems post:
# cat /dev/sndstat and verbose dmesg content that list the pins for hdaa.
#
sysctl dev.hdac.0.pindump=1

followed by
# dmesg | grep hdaa > default_sound_gpio.txt.
I'm not interested advanced configurations, interests me a command to use to assign the sound to the headphones
Code:
[oscar@oscar-freebsd ~]$ cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC269 (Internal Analog)> (play/rec) default
pcm1: <Realtek ALC269 (Left Analog)> (play/rec)
pcm2: <Intel Panther Point (HDMI/DP 8ch)> (play)
 

shepper

Aspiring Daemon

Thanks: 228
Messages: 677

#7
In your present setup, FreeBSD grouped the audio gpio pins into 3 groups: pcm0 = Internal Analog, pcm1=Left Analog and pcm2=HDMI. The HDMI grouping uses Intel Video.

The first question is if the grouping matches your physical layout: Do you have jacks on the left side of what I assume is a laptop?

If there are left side audio jacks: do you get sound by changing the default sound device from pcm0 to pcm1. This is done with the following command:
# sysctl hw.snd.default_unit=1
 

oscarandrea

New Member


Messages: 14

#8
In your present setup, FreeBSD grouped the audio gpio pins into 3 groups: pcm0 = Internal Analog, pcm1=Left Analog and pcm2=HDMI. The HDMI grouping uses Intel Video.

The first question is if the grouping matches your physical layout: Do you have jacks on the left side of what I assume is a laptop?

If there are left side audio jacks: do you get sound by changing the default sound device from pcm0 to pcm1. This is done with the following command:
# sysctl hw.snd.default_unit=1
out of curiosity I tried to download a song, and with mplayer / vlc works! so the problem is only on firefox!
is weird no?
thanks for the help
 

tobiam

Member

Thanks: 21
Messages: 88

#12
I am having a similar problem and also don't have audio on the headphones. The speakers work though. However I think I should have correct values, so I am unsure what to do. I am using FreeBSD 11.0 on amd64

Code:
mixer

Mixer vol      is currently set to 100:100
Mixer pcm      is currently set to 100:100

Code:
cat /dev/sndstat

Installed devices:
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> (play/rec)
pcm1: <Realtek ALC269 (Left Analog Mic)> (rec)
pcm2: <Intel Panther Point (HDMI/DP 8ch)> (play) default
No devices installed from userspace.
Code:
hdac0: <Intel Panther Point HDA Controller> mem 0xd3610000-0xd3613fff irq 22 at device 27.0 on pci0
hdacc0: <Realtek ALC269 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC269 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> at nid 20,33 and 27 on hdaa0
pcm1: <Realtek ALC269 (Left Analog Mic)> at nid 24 on hdaa0
hdacc1: <Intel Panther Point HDA CODEC> at cad 3 on hdac0
hdaa1: <Intel Panther Point Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Panther Point (HDMI/DP 8ch)> at nid 7 on hdaa1
hdaa0: Dumping AFG pins:
hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa0: 18 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
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 03a19830 3  0  Mic           Jack  1/8     Left       Pink    8
hdaa0:     Caps: IN OUT         VREF Sense: 0x80000000 (connected)
hdaa0: 25 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa0: 26 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps: IN OUT HP           Sense: 0x00000000 (disconnected)
hdaa0: 27 99a30920 2  0  Mic           Fixed ATAPI   Onboard    Unknown 9
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 0321101f 1  15 Headphones    Jack  1/8     Left       Black   0
hdaa0:     Caps:    OUT HP           Sense: 0x80000000 (connected)
hdaa0: NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa0:  GPIO0: output state=1
hdaa0:  GPIO1: disabled
hdaa1: Dumping AFG pins:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1:  5 58560010 1  0  Digital-out   None  Digital 0x18       Unknown 0 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1:  6 58560020 2  0  Digital-out   None  Digital 0x18       Unknown 0 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1:  7 18560030 3  0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdaa0: Dumping AFG pins:
hdaa0: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa0: 18 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
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 03a19830 3  0  Mic           Jack  1/8     Left       Pink    8
hdaa0:     Caps: IN OUT         VREF Sense: 0x80000000 (connected)
hdaa0: 25 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps: IN             VREF Sense: 0x00000000 (disconnected)
hdaa0: 26 411111f0 15 0  Speaker       None  1/8     Rear       Black   1 DISA
hdaa0:     Caps: IN OUT HP           Sense: 0x00000000 (disconnected)
hdaa0: 27 99a30920 2  0  Mic           Fixed ATAPI   Onboard    Unknown 9
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 0321101f 1  15 Headphones    Jack  1/8     Left       Black   0
hdaa0:     Caps:    OUT HP           Sense: 0x80000000 (connected)
hdaa0: NumGPIO=2 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1
hdaa0:  GPIO0: output state=1
hdaa0:  GPIO1: disabled
hdaa1: Dumping AFG pins:
hdaa1: nid   0x    as seq device       conn  jack    loc        color   misc
hdaa1:  5 58560010 1  0  Digital-out   None  Digital 0x18       Unknown 0 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1:  6 58560020 2  0  Digital-out   None  Digital 0x18       Unknown 0 DISA
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1:  7 18560030 3  0  Digital-out   Jack  Digital 0x18       Unknown 0
hdaa1:     Caps:    OUT              Sense: 0x00000000 (disconnected)
hdaa1: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0
hdac0: <Intel Panther Point HDA Controller> mem 0xd3610000-0xd3613fff irq 22 at device 27.0 on pci0
hdacc0: <Realtek ALC269 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC269 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> at nid 20,33 and 27 on hdaa0
pcm1: <Realtek ALC269 (Left Analog Mic)> at nid 24 on hdaa0
hdacc1: <Intel Panther Point HDA CODEC> at cad 3 on hdac0
hdaa1: <Intel Panther Point Audio Function Group> at nid 1 on hdacc1
pcm2: <Intel Panther Point (HDMI/DP 8ch)> at nid 7 on hdaa1
 

shepper

Aspiring Daemon

Thanks: 228
Messages: 677

#13
pcm0 has nid 20 as a fixed, onboard speaker with jack sensing from the headphones muting it. nid 20 is in association (as) 1 with seq = 0:
Code:
hdaa0: 20 99130110 1  0  Speaker       Fixed ATAPI   Onboard    Unknown 1
hdaa0:     Caps:    OUT    EAPD      Sense: 0x00000000 (disconnected)
nid 33 is also in pcm0 and in the same output association (1) as nid 20 with a seq=15. It should be wired to the HP jack.
Code:
hdaa0: 33 0321101f 1  15 Headphones    Jack  1/8     Left       Black   0
hdaa0:     Caps:    OUT HP           Sense: 0x80000000 (connected)
Both the headphone and mic jacks are described as "black" so you are using the newer 4 pin jacks. Older setups, like mine, has separate mic (pink) and headphone (green) jacks. If you are using older 3 pin headphones they will not work with the newer 4 pin jacks.

If you generated the above verbose dmesg with the headphones plugged in it correctly shows the headphone plugged in.

If you are using the newer Headphones, I wonder if it is possible for nids 27 and 30 to be misconfigured since they share the same jack If that is the case you could try swapping the settings for those 2 nids.
 
Last edited:

tobik@

Daemon
Developer

Thanks: 1,315
Messages: 1,894

#14
Code:
[oscar@oscar-freebsd ~]$ pkg info firefox pulseaudio
firefox-50.0_1,1
pulseaudio-8.0_2
in fact xfce4 do not use it, but I have not been able to remove it, it may have some of its setting to create problems?
Yes, could be. Firefox has enabled PulseAudio by default. If audio doesn't work in Firefox then PulseAudio is probably misconfigured or not running. Firefox will not start the daemon automatically anymore AFAICT and the ALSA output never worked for me. If you try playing e.g. a YouTube video in Firefox, is PulseAudio running ( pgrep pulseaudio)?

If not does it work if you run pulseaudio --start first?
 

tobiam

Member

Thanks: 21
Messages: 88

#15
Thanks for you response,

yes the connection/disconnection is sensed correctly.

If you are using the newer Headphones, I wonder if it is possible for nids 27 and 30 to be misconfigured since they share the same jack If that is the case you could try swapping the settings for those 2 nids.
I am not sure how what you mean here. I don't think I understand what you wanna swap or the rationale behind it. Do you mean completely swapping the settings between 27 and 30?

Like so?
Code:
hint.hdac.0.cad0.nid27.config="as=15 seq=0 device=Speaker"
hint.hdac.0.cad0.nid30.config="as=0 seq=15 device=Mic"
Because then I am out of luck.

I think you could have meant also meant swapping them with what currently is "as" 1. I am not sure about the rationale and I am pretty sure I am missing something here - especially because of the 27 being the mic. I read snd_hda(4). To explain what I don't really understand about that: Since the mic is sensed correctly and the as is the same "as" as the working speaker output isn't that what I want?

But then of course I don't know where nid 27 and 30 really belong to.

I'll play more with, trying to get a better understanding.

Or did you mean adding them to the same as?

hint.hdac.0.cad0.nid27.config="as=2"
hint.hdac.0.cad0.nid30.config="as=1"


That also didn't help.
 

oscarandrea

New Member


Messages: 14

#16
I had some problems with firefox because I updated the ports, though now I reinstalled firefox, I installed pavucontrol and sound pulse, I tried to put sysctl hw.snd.default_unit = 1
and even offline (with VLC / mplayer) works this time, I wonder if maybe I'm wrong, because of GNU / Linux I used the default ALSA always and never had any problems, what is the software to the default audio control for freebsd? to be honest I'm not understanding much, read OSS audio pulse, alsa etc. If my sound card is supported do I need to have a working default configuration? They do not care advanced options, only be able to use speakers and headphones Notebook. Thanks
 

shepper

Aspiring Daemon

Thanks: 228
Messages: 677

#17
An as=15 disables the device. What I was suggesting was putting nid27 in as=1, seq=15 and device=headphone. For testing you could disable nid30 by giving it as=15.

One point of confusion is that you have two "mics". Many laptop have a builtin mic at the top of the monitor bezel - usually a little hole next to the webcam. In your default setup nid24 is as=3 and nid27 is in as=2. I have always wondered if one could combine two different mics into the same as and multiplex the recording for stereo?
 

tobiam

Member

Thanks: 21
Messages: 88

#18
Thanks for your response.

No, this didn't solve the issue. I don't have output on neither the headphones nor the speakers after changing this.
 

shepper

Aspiring Daemon

Thanks: 228
Messages: 677

#19
I'm making suggestions based on the initial verbose dmesg where nid20 is the fixed onboard speakers. The device hints I suggested should not have altered that pin assignment. With your device hints in place, you can regenerate a verbose dmesg to see what happened to nid20. On my amd64 system dmesg concatenates so you will want to be sure you are looking at the latest output.
 

tobiam

Member

Thanks: 21
Messages: 88

#20
Starting from blank (original device.hints), after adding:
Code:
hint.hdac.0.cad0.nid27.config="as=1 seq=15 device=Headphones"
hint.hdac.0.cad0.nid30.config="as=15"
20, 27 and 33 all switch to DISA.

nid27 changes accordingly:
Code:
hdaa0: 27 9923091f 1  15 Headphones    Fixed ATAPI   Onboard    Unknown 9 DISA
nid30 already was on as 15, so doesn't change

There is no other change.
 

shepper

Aspiring Daemon

Thanks: 228
Messages: 677

#21
One question is if your headphones are really plugged in on both dmesg outputs?
In the above, nid33 shows the headphones as "connected" which will "disconnect" the lowest nid in that association = nid20. I recall reading some FreeBSD mailings that some brands "invert" jack sensing ie the jack says connected when nothing is plugged in. There is a way to invert jack sensing in the snd_hda man page. Perhaps remove the above device.hints and just make an entry to invert the jack sensing for nid33?

If the headphone jack sensing is correct, I would try either disabling nid33 rather than having it configured as a 2nd Headphone or changing it to a mic input.
 

tobiam

Member

Thanks: 21
Messages: 88

#22
Yes, the headphones are really plugged in. Disconnecting it will switch it to disconnected, so the sensing really works correctly. I only have the headphones plugged in, not the mic. I have it that way to see which one is the one I want. And so I can make sure it works, when it does. I also kept and will keep it that way, unless I state otherwise for pindumps (not for testing around in between of course), so it won't get confusing.

Disabling (setting as=0) nid33 brings back the sound, even when the headphones are connected.
  • In the original configuration, without any hints added the speakers work, but when I put in the headphones they stop, which is expected. Just the headphones don't work.
  • With 27 and 30 changed (as in the right side of the diff) they turn to DISA, neither works anymore.
  • Setting nid33 to disabled (as=0) now makes it so that even with the headphones plugged in the speakers keep working.
The only thing that bothers me is that the headphones never output any sound. It's not a physical problem On the same machine I also have a Linux installation.

I am not exactly sure how to map it, but this is what a working configuration looks under Linux, if it helps:

Code:
Codec: Realtek ALC271X
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0269
Subsystem Id: 0x10250686
Revision Id: 0x100100
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC271X Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x41 0x41]
  Converter: stream=5, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x1d: Stereo Amp-Out
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=5, channel=0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC271X Analog", type="Audio", device=0
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1f 0x1f]
  Converter: stream=1, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
  Amp-In caps: ofs=0x0b, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x8b 0x8b]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Connection: 1
     0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Control: name="Internal Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="Internal Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=3, ofs=0
  Control: name="Mic Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Mic Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Beep Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Control: name="Beep Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=4, ofs=0
  Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
  Amp-In vals:  [0x1f 0x1f] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x18 0x19 0x1a 0x1b 0x1d
Node 0x0c [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x00 0x00]
  Connection: 2
     0x03 0x0b
Node 0x0e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0f [Audio Mixer] wcaps 0x20010a: Mono Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00] [0x80]
  Connection: 2
     0x02 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40000b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00010014: OUT EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x99130110: [Fixed] Speaker at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c 0x0d*
Node 0x15 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x16 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x17 [Pin Complex] wcaps 0x40010c: Mono Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80]
  Pincap 0x00000010: OUT
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Connection: 1
     0x0f
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00001734: IN OUT Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x03a19830: [Jack] Mic at Ext Left
    Conn = 1/8, Color = Pink
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Connection: 1
     0x0d
Node 0x19 [Pin Complex] wcaps 0x40008b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00001724: IN Detect
    Vref caps: HIZ 50 GRD 80
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0000003c: IN OUT HP Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00000034: IN OUT Detect
  Pin Default 0x99a30920: [Fixed] Mic at Int ATAPI
    Conn = ATAPI, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Unsolicited: tag=00, enabled=0
  Connection: 2
     0x0c* 0x0d
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
  Pincap 0x00000020: IN
  Pin Default 0x4017992d: [N/A] Speaker at Ext N/A
    Conn = Analog, Color = Pink
    DefAssociation = 0x2, Sequence = 0xd
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
Node 0x1e [Pin Complex] wcaps 0x400381: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=25
Node 0x21 [Pin Complex] wcaps 0x40018d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x0321101f: [Jack] HP Out at Ext Left
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Connection: 2
     0x0c* 0x0d
Node 0x22 [Audio Selector] wcaps 0x30010b: Stereo Amp-In
  Amp-In caps: N/A
  Amp-In vals:  [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00] [0x00 0x00]
  Connection: 7
     0x18* 0x19 0x1a 0x1b 0x1d 0x0b 0x12
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00] [0x80 0x80] [0x80 0x80]
  Connection: 6
     0x18 0x19 0x1a 0x1b 0x1d 0x0b
 

shepper

Aspiring Daemon

Thanks: 228
Messages: 677

#24
Node 0x02 [Audio Output] wcaps 0x1d: Stereo Amp-Out Control: name="Headphone Playback Volume", index=0, device=0 ControlAmp: chs=3, dir=Out, idx=0, ofs=0 Device: name="ALC271X Analog", type="Audio", device=0 Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0 Amp-Out vals: [0x41 0x41] Converter: stream=5, channel=0 PCM:
I was interested in the "switches" in the ALSA output and did a search for ALC271X. If found this at kernel.org:
ALC22x/23x/25x/269/27x/28x/29x (and vendor-specific ALC3xxx models)
======
laptop-amic Laptops with analog-mic input
laptop-dmic Laptops with digital-mic input
alc269-dmic Enable ALC269(VA) digital mic workaround
alc271-dmic Enable ALC271X digital mic workaround
inv-dmic Inverted internal mic workaround
headset-mic Indicates a combined headset (headphone+mic) jack
headset-mode More comprehensive headset support for ALC269 & co
headset-mode-no-hp-mic Headset mode support without headphone mic
lenovo-dock Enables docking station I/O for some Lenovos
hp-gpio-led GPIO LED support on HP laptops
dell-headset-multi Headset jack, which can also be used as mic-in
dell-headset-dock Headset jack (without mic-in), and also dock I/O
alc283-dac-wcaps Fixups for Chromebook with ALC283
alc283-sense-combo Combo jack sensing on ALC283
tpt440-dock Pin configs for Lenovo Thinkpad Dock support
I might help to search for FreeBSD sound on your particular make/model of laptop. If you come up empty I would look at the bug reporting guidelines at FreeBSD Sound wiki - they are at the bottom of the page

oscarandrea - Didn't mean to hijack your thread - I was hoping that some of tobiam posts would help you sort through your problem. Can you state where you are at? I'm assuming Basic sound works because VLC worked and the issue is Firefox/PulseAudio. Note that if you use pulse audio you have to tell your other applications to also use pulseaudio.
 
Top