2015-07-26 19:55 GMT+08:00 Arthur Borsboom arthurborsboom@gmail.com:
Hi Raymond,
I have to apologize.
When you said Pulseaudio might have a bug, I rechecked my steps and I believe I had only applied half of your patches. I have applied all the patches this time, against the 4.2.0-rc3 kernel and posted the requested info again.
alsa-info: http://www.alsa-project.org/db/?f=ab56d544c53402fc7fdb96956299753de2708a6f
control.23 { iface CARD name 'External Subwoofer Jack' value true comment { access read type BOOLEAN count 1 } }
As "External Subwoofer Jack" can report the presence of the external Sonice Master Subwoofer
You need David to answer whether pulseaudio can auto mute since there is NO "Headphone Jack" kctl for model=dell-headset-multi
http://git.kernel.org/cgit/linux/kernel/git/tiwai/hda-emu.git/tree/codecs/ca...
There is no "Headphone Jack" kctl for those alc3661-dell which use dell-headset-multi,
control.19 { iface CARD name 'Headphone Mic Jack' value false comment { access read type BOOLEAN count 1 } } control.20 { iface CARD name 'Headset Mic Phantom Jack' value true comment { access read type BOOLEAN count 1 } } control.21 { iface CARD name 'Internal Mic Phantom Jack' value true comment { access read type BOOLEAN count 1 } } control.22 { iface CARD name 'Speaker Front Phantom Jack' value true comment { access read type BOOLEAN count 1 } }
chmap-result (stable, does not change after plugging or unplugging jacks):
Type = FIXED, Channels = 2 FL FR Type = FIXED, Channels = 4 FL FR NA LFE
[Pavucontrol] -> [Configuration] -> [Built-in Audio] gives
Analog Stereo Duplex Analog Stereo Output Analog Surround 2.1 Output + Analog Stereo Input Analog Surround 2.1 Output Analog Surround 4.0 Output + Analog Stereo Input Analog Surround 4.0 Output Analog Stereo Input Off
Pulseaudio verbose log: http://pastebin.com/MwC3KQS5
Pulseaudio expect "Headphone Jack" but it is not available in dell-headset-multi
( 0.088| 0.000) D: [pulseaudio] alsa-mixer.c: Looking at profile output:analog-surround-21 ( 0.088| 0.000) D: [pulseaudio] alsa-mixer.c: Checking for playback on Analog Surround 2.1 (analog-surround-21) ( 0.088| 0.000) D: [pulseaudio] alsa-util.c: Trying surround21:1 with SND_PCM_NO_AUTO_FORMAT ... ( 0.088| 0.000) D: [pulseaudio] alsa-util.c: Managed to open surround21:1 ( 0.088| 0.000) D: [pulseaudio] alsa-util.c: Maximum hw buffer size is 11888 ms ( 0.106| 0.017) D: [pulseaudio] alsa-util.c: Set buffer size first (to 4408 samples), period size second (to 1102 samples). ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Profile output:analog-surround-21 supported. ( 0.106| 0.000) I: [pulseaudio] (alsa-lib)control.c: Invalid CTL surround21:1 ( 0.106| 0.000) I: [pulseaudio] alsa-util.c: Unable to attach to mixer surround21:1: No such file or directory ( 0.106| 0.000) I: [pulseaudio] alsa-util.c: Successfully attached to mixer 'hw:1' ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Removing path 'analog-output' as it is a subset of 'analog-output-speaker'. ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Available mixer paths (after tidying): ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Path Set 0xc8a0b0, direction=1 ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Path analog-output-speaker (Speakers), direction=1, priority=100, probed=yes, supported=yes, has_mute=yes, has_volume=yes, has_dB=yes, min_volume=0, max_volume=87, min_dB=-181.5, max_dB=0 ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Element Master, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x7ffffffffffff, n_channels=1, override_map=yes ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Element Headphone, direction=1, switch=2, volume=2, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x6, n_channels=2, override_map=no ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Element Speaker, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=4, required_absent=0, mask=0x3600000000f66, n_channels=2, override_map=yes ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Element Bass Speaker, direction=1, switch=1, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=4, required_absent=0, mask=0x80, n_channels=2, override_map=yes ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Element PCM, direction=1, switch=0, volume=1, volume_limit=-1, enumeration=0, required=0, required_any=0, required_absent=0, mask=0x3600000000f66, n_channels=2, override_map=yes ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Jack Headphone, alsa_name='Headphone Jack', detection unavailable ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Jack Dock Headphone, alsa_name='Dock Headphone Jack', detection unavailable ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Jack Front Headphone, alsa_name='Front Headphone Jack', detection unavailable ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Jack Line Out, alsa_name='Line Out Jack', detection unavailable ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Jack Line Out Front, alsa_name='Line Out Front Jack', detection unavailable ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Jack Speaker Phantom, alsa_name='Speaker Phantom Jack', detection unavailable ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Jack Speaker Front Phantom, alsa_name='Speaker Front Phantom Jack', detection possible ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Skipping profile output:analog-surround-21+input:analog-mono - will not be able to open input:analog-mono ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Looking at profile output:analog-surround-21+input:analog-stereo ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Checking for recording on Analog Stereo (analog-stereo) ( 0.106| 0.000) D: [pulseaudio] alsa-util.c: Trying front:1 with SND_PCM_NO_AUTO_FORMAT ... ( 0.106| 0.000) D: [pulseaudio] alsa-util.c: Managed to open front:1 ( 0.106| 0.000) D: [pulseaudio] alsa-util.c: Maximum hw buffer size is 23777 ms ( 0.106| 0.000) D: [pulseaudio] alsa-util.c: Set buffer size first (to 4408 samples), period size second (to 1102 samples). ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Profile output:analog-surround-21+input:analog-stereo supported. ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Skipping profile output:analog-surround-21+input:iec958-stereo - will not be able to open input:iec958-stereo ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Looking at profile output:analog-surround-40 ( 0.106| 0.000) D: [pulseaudio] alsa-mixer.c: Checking for playback on Analog Surround 4.0 (analog-surround-40) ( 0.106| 0.000) D: [pulseaudio] alsa-util.c: Trying surround40:1 with SND_PCM_NO_AUTO_FORMAT ... ( 0.106| 0.000) D: [pulseaudio] alsa-util.c: Managed to open surround40:1 ( 0.107| 0.000) D: [pulseaudio] alsa-util.c: Maximum hw buffer size is 11888 ms ( 0.107| 0.000) D: [pulseaudio] alsa-util.c: Set buffer size first (to 4408 samples), period size second (to 1102 samples). ( 0.107| 0.000) D: [pulseaudio] alsa-mixer.c: Profile output:analog-surround-40 supported.
it is pulseaudio bug to support surround40 since your laptop does not have "RL and RR" chmap