Bug 214920 - [sound] No sound with headphones attached, using ALC271X on Acer Aspire V3-771
Summary: [sound] No sound with headphones attached, using ALC271X on Acer Aspire V3-771
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-multimedia mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-29 00:02 UTC by Christian Sturm
Modified: 2016-12-18 11:11 UTC (History)
0 users

See Also:


Attachments
ouput of cat /proc/asound/card0/codec (9.37 KB, text/plain)
2016-11-29 00:02 UTC, Christian Sturm
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Sturm 2016-11-29 00:02:39 UTC
Created attachment 177501 [details]
ouput of cat /proc/asound/card0/codec

I've been trying to get audio to work when using headphones. Trying to use /boot/device.hints also remained unsuccessful[1]. Headphone and microphone sensing work correctly, just like speakers work out of the box.

The very same system works under Linux. I attached information from this system in a working state there.

The values are taken with headphones and microphone connected.

uname -a
FreeBSD cabal 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

cat /dev/sndstat
Installed devices:
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> (play/rec) default
pcm1: <Realtek ALC269 (Left Analog Mic)> (rec)
pcm2: <Intel Panther Point (HDMI/DP 8ch)> (play)
No devices installed from userspace.


mixer
Mixer vol      is currently set to  24:24
Mixer pcm      is currently set to 100:100
Mixer speaker  is currently set to  74:74
Mixer mix      is currently set to  74:74
Mixer rec      is currently set to  35:35
Mixer igain    is currently set to   0:0
Mixer ogain    is currently set to 100:100
Mixer monitor  is currently set to  56:56
Recording source: monitor


sysctl hw.snd
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2009061500/amd64
hw.snd.default_auto: 1
hw.snd.verbose: 0
hw.snd.vpc_mixer_bypass: 1
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.basename_clone: 1
hw.snd.compat_linux_mmap: 0
hw.snd.syncdelay: -1
hw.snd.usefrags: 0
hw.snd.vpc_reset: 0
hw.snd.vpc_0db: 45
hw.snd.vpc_autoreset: 1
hw.snd.timeout: 5
hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_matrix: 1
hw.snd.report_soft_formats: 1

sysctl dev.pcm
dev.pcm.2.bitperfect: 0
dev.pcm.2.buffersize: 65536
dev.pcm.2.play.vchanformat: s16le:2.0
dev.pcm.2.play.vchanrate: 48000
dev.pcm.2.play.vchanmode: passthrough
dev.pcm.2.play.vchans: 1
dev.pcm.2.play.32bit: 24
dev.pcm.2.%parent: hdaa1
dev.pcm.2.%pnpinfo: 
dev.pcm.2.%location: nid=7
dev.pcm.2.%driver: pcm
dev.pcm.2.%desc: Intel Panther Point (HDMI/DP 8ch)
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 65536
dev.pcm.1.rec.vchanformat: s16le:2.0
dev.pcm.1.rec.vchanrate: 48000
dev.pcm.1.rec.vchanmode: fixed
dev.pcm.1.rec.vchans: 1
dev.pcm.1.rec.autosrc: 2
dev.pcm.1.rec.32bit: 24
dev.pcm.1.%parent: hdaa0
dev.pcm.1.%pnpinfo: 
dev.pcm.1.%location: nid=24
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Realtek ALC269 (Left Analog Mic)
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 65536
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.autosrc: 2
dev.pcm.0.rec.32bit: 24
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.32bit: 24
dev.pcm.0.%parent: hdaa0
dev.pcm.0.%pnpinfo: 
dev.pcm.0.%location: nid=20,33,27
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: Realtek ALC269 (Analog 2.0+HP/2.0)
dev.pcm.%parent:

dmesg | grep 'pcm[0-9]'
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> at nid 20,27 and 24 on hdaa0
pcm1: <Intel Panther Point (HDMI/DP 8ch)> at nid 7 on hdaa1
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> at nid 20,33 and 27 on hdaa0
pcm0: Playback:
pcm0:      Stream cap: 0x00000001 PCM
pcm0:         PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
pcm0:             DAC: 2
pcm0: 
pcm0:     nid=20 [pin: Speaker (Fixed)]
pcm0:       + <- nid=12 [audio mixer] [src: pcm, mix]
pcm0:              + <- nid=2 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
pcm0: 
pcm0:     nid=33 [pin: Headphones (Black Jack)]
pcm0:       + <- nid=12 [audio mixer] [src: pcm, mix]
pcm0:              + <- nid=2 [audio output] [src: pcm]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
pcm0: 
pcm0: Record:
pcm0:      Stream cap: 0x00000001 PCM
pcm0:         PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
pcm0:             ADC: 8
pcm0: 
pcm0:     nid=8 [audio input]
pcm0:       + <- nid=35 [audio mixer] [src: speaker, mix, monitor]
pcm0:              + <- nid=27 [pin: Mic (Fixed)] [src: monitor]
pcm0:              + <- nid=29 [beep widget] [src: speaker]
pcm0:              + <- nid=11 [audio mixer] [src: mix]
pcm0: 
pcm0: Input Mix:
pcm0: 
pcm0:     nid=11 [audio mixer]
pcm0:       + <- nid=27 [pin: Mic (Fixed)] [src: monitor]
pcm0:       + <- nid=29 [beep widget] [src: speaker]
pcm0: 
pcm0: Master Volume (OSS: vol): -65/0dB
pcm0:    +- ctl  1 (nid   2 out):    -65/0dB (88 steps)
pcm0:    +- ctl 10 (nid  12 in   0): mute
pcm0:    +- ctl 11 (nid  12 in   1): mute
pcm0:    +- ctl 17 (nid  20 in ):    mute
pcm0:    +- ctl 26 (nid  33 in ):    mute
pcm0: 
pcm0: PCM Volume (OSS: pcm): -65/0dB
pcm0:    +- ctl  1 (nid   2 out):    -65/0dB (88 steps)
pcm0:    +- ctl 10 (nid  12 in   0): mute
pcm0: 
pcm0: Microphone2 Volume (OSS: monitor): 0/36dB
pcm0:    +- ctl  8 (nid  11 in   3): -34/12dB (32 steps) + mute
pcm0:    +- ctl 25 (nid  27 out):    0/36dB (4 steps)
pcm0:    +- ctl 30 (nid  35 in   3): mute
pcm0: 
pcm0: Speaker/Beep Volume (OSS: speaker): -16/12dB
pcm0:    +- ctl  9 (nid  11 in   4): -34/12dB (32 steps) + mute
pcm0:    +- ctl 31 (nid  35 in   4): mute
pcm0: 
pcm0: Recording Level (OSS: rec): -16/30dB
pcm0:    +- ctl  3 (nid   8 in   0): -16/30dB (32 steps) + mute
pcm0:    +- ctl 30 (nid  35 in   3): mute
pcm0:    +- ctl 31 (nid  35 in   4): mute
pcm0:    +- ctl 32 (nid  35 in   5): mute
pcm0: 
pcm0: Input Mix Level (OSS: mix): -34/12dB
pcm0:    +- ctl  8 (nid  11 in   3): -34/12dB (32 steps) + mute
pcm0:    +- ctl  9 (nid  11 in   4): -34/12dB (32 steps) + mute
pcm0:    +- ctl 11 (nid  12 in   1): mute
pcm0:    +- ctl 32 (nid  35 in   5): mute
pcm0: 
pcm0: Input Monitoring Level (OSS: igain): 0/0dB
pcm0:    +- ctl 11 (nid  12 in   1): mute
pcm0: 
pcm0: Mixer "vol":
pcm0: Mixer "pcm":
pcm0: Mixer "speaker":
pcm0: Mixer "mix":
pcm0: Mixer "rec":
pcm0: Mixer "igain":
pcm0: Mixer "ogain":
pcm0: Mixer "monitor":
pcm0: Playback channel set is: Front Left, Front Right, 
pcm0: Playback channel matrix is: 2.0 (connected)
pcm0: Automatically set rec source to: monitor
pcm0: Recording channel set is: Front Left, Front Right, 
pcm0: Recording channel matrix is: 2.0 (unknown)
random: harvesting attach, 8 bytes (4 bits) from pcm0
pcm1: <Realtek ALC269 (Left Analog Mic)> at nid 24 on hdaa0
pcm1: Record:
pcm1:      Stream cap: 0x00000001 PCM
pcm1:         PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
pcm1:             ADC: 9
pcm1: 
pcm1:     nid=9 [audio input]
pcm1:       + <- nid=34 [audio selector] [src: speaker, mic]
pcm1:              + <- nid=24 [pin: Mic (Pink Jack)] [src: mic]
pcm1:              + <- nid=29 [beep widget] [src: speaker]
pcm1: 
pcm1: Microphone Volume (OSS: mic): 0/36dB
pcm1:    +- ctl  4 (nid   9 in   0): -16/30dB (32 steps) + mute
pcm1:    +- ctl 20 (nid  24 out):    0/36dB (4 steps)
pcm1: 
pcm1: Speaker/Beep Volume (OSS: speaker)
pcm1:    +- ctl  4 (nid   9 in   0): -16/30dB (32 steps) + mute
pcm1: 
pcm1: Recording Level (OSS: rec): -16/30dB
pcm1:    +- ctl  4 (nid   9 in   0): -16/30dB (32 steps) + mute
pcm1:    +- ctl 20 (nid  24 out):    0/36dB (4 steps)
pcm1: 
pcm1: Mixer "mic":
pcm1: Mixer "rec":
pcm1: Automatically set rec source to: mic
pcm1: Recording channel set is: Front Left, Front Right, 
pcm1: Recording channel matrix is: 2.0 (connected)
random: harvesting attach, 8 bytes (4 bits) from pcm1
pcm2: <Intel Panther Point (HDMI/DP 8ch)> at nid 7 on hdaa1
pcm2: Playback:
pcm2:      Stream cap: 0x00000005 AC3 PCM
pcm2:         PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz
pcm2:             DAC: 4
pcm2: 
pcm2:     nid=7 [pin: Digital-out (Jack)]
pcm2:       + <- nid=4 [audio output] [src: pcm]
pcm2: 
pcm2: Master Volume (OSS: vol): 0/0dB
pcm2:    +- ctl  3 (nid   7 in ):    mute
pcm2: 
pcm2: PCM Volume (OSS: pcm): 0/0dB
pcm2:    +- ctl  3 (nid   7 in ):    mute
pcm2: 
pcm2: Mixer "vol":
pcm2: Mixer "pcm":
pcm2: Soft PCM mixer ENABLED
pcm2: Playback channel matrix is: unknown, assuming 7.1 (disconnected)
random: harvesting attach, 8 bytes (4 bits) from pcm2


[1] See (also contains some other behavior): https://forums.freebsd.org/threads/58623/#post-335870
Comment 1 Christian Sturm 2016-12-18 11:11:13 UTC
Even though I currently fail to see why a system upgrade fixed this issue. Should someone want to look into this see this post:

https://forums.freebsd.org/threads/58623/page-2#post-337692