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
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 log is created by the following steps:
1. echo autospawn = no >> ~/.config/pulse/client.conf 2. killall pulseaudio 3. LANG=C pulseaudio -vvvv --log-time=1 > ~/pulseverbose.log 2>&1 4. Wait a couple of seconds 5. Plugin jack external subwoofer 6. Plugin jack headset 7. Press CTRL-C
Are the results the same, or is there more hope this time? :-)
On 13 July 2015 at 13:24, Raymond Yau superquad.vortex2@gmail.com wrote:
Honestly some of the Alsa code talk is a bit over my head, so maybe I
should just stick to providing PCI/Vendor ID's and test results. :)
RY> How do you test ? Using sound preference or alsa speaker-test
I apply some of your code by retyping this into the mainline kernel
4.2-rc1 code, compile and install the kernel, and then test the audio.
The subwoofer I test by playing music with my music player, Audacious. When testing different configurations and output profiles I use
pavucontrol.
For testing the microphone, I open pavucontrol, switch the input source
between Internal Microphone and Microphone and look at the volumebar to see if the microphone works fine.
Do you have suggestions how to apply and test the provided patches?
you have to provide alsa-info of patched driver
http://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=test/chmap.c;hb=HEAD
./chmap -Dhw:0 query
Do chmap show the stereo and 2.1 channel map ?
the "External Subwoofer Jack" detect kctl should return true when you plug the Sonic Master Subwoofer and false when you unplug
after you add analog-output-subwoofer.conf and replace the output path analog-output-lineout and analog-output-speaker in 2.1 profiles in profile-sets/default.conf
You have to provide pulseaudio verbsose log if pulseaudio did not automatically switch to 2.1 profile
The dirty workaround for the headset mic when your codec cannot distinguish headphone and headset but you use only headset
Change the headset.conf to use jsck headphone instead of headset mic jack
http://cgit.freedesktop.org/pulseaudio/pulseaudio/plain/src/modules/alsa/mix...
-[Jack Headset Mic] -required-any = any
-[Jack Headset Mic Phantom] -state.plugged = unknown -state.unplugged = unknown -required-any = any
[Jack Headphone] -state.plugged = unknown +required-any = any