<p><br>
>>>> > I am trying to get simultaneous output on the Line Out and Headphones<br>
>>>> > outputs of my Intel HD Audio (AsRock Z97 motherboard) chipset and PC<br>
>>>> > case. With the default pulseaudio configuration in pavucontrol I can<br>
>>>> > choose Analog Stereo Duplex and then select either the "Line Out" or<br>
>>>> > "Headphones" port under "Output Devices", but I would like to have<br>
>>>> > simultaneous output on both (by having a seperate sink for each).<br>
>>>> ><br>
>>>> > Here is my alsa-info.sh output, please ignore the NVidia output<br>
>>>> > provided by my GPU as I would like to not use it if possible:<br>
>>>> ><br>
>>><br>
>>><br>
>>><a href="http://www.alsa-project.org/db/?f=b7e5097f7a899aa5294b147b23cbb877db3b6f3c"> http://www.alsa-project.org/db/?f=b7e5097f7a899aa5294b147b23cbb877db3b6f3c</a><br>
>>>><br>
>>>> > And this is what "pacmd list-sinks" says about the Built-In audio sink:<br>
>>>> ><a href="http://hastebin.com/bonadehimu"> http://hastebin.com/bonadehimu</a><br>
>>>><br>
>>>> It's not possible to have independent line out and headphone output on<br>
>>>> your hardware. There is only one analog device on your card.<br>
>>>><br>
>>>> --<br>
>>><br>
>>><br>
>>> The easy way to output same audio to both output is disable drivers auto<br>
>>> mute mode and change pulseaudio conf files<br>
>>><br>
>>> Simple mixer control 'Auto-Mute Mode',0<br>
>>> Capabilities: enum<br>
>>> Items: 'Disabled' 'Enabled'<br>
>>> Item0: 'Enabled'<br>
>>><br>
>>><br>
>>><a href="http://www.intel.com/content/www/us/en/support/boards-and-kits/desktop-boards/000007156.html"> http://www.intel.com/content/www/us/en/support/boards-and-kits/desktop-boards/000007156.html</a><br>
>>><br>
>>><br>
>>><a href="https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt"> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio.txt</a><br>
>>><br>
>>> You have to ask Tiwai to enable independent hp for your realtek codec on<br>
>>> desktop ( e.g. no internal mic and hda controller<br>
>>> support enough SDO)<br>
>>><br>
>>> You can specify hint indep_hp=1 by early patching, the driver<br>
>>> automatically disable automute when you switch on independent hp switch<br>
>>><br>
>>><br>
>>><a href="https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio-Controls.txt"> https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/Documentation/sound/alsa/HD-Audio-Controls.txt</a><br>
>>><br>
>>> Independent HP When this enum control is enabled, the headphone output is<br>
>>> routed from an individual stream (the third PCM such as hw:0,2) instead of<br>
>>> the primary stream<br>
>><br>
>><br>
>> Okay, so following your advice I set up modprobe.d to specify the<br>
>> early-patching files:<br>
>><br>
>> $ cat /etc/modprobe.d/snd_hda_intel.conf<br>
>> options snd_hda_intel patch=onboard-patch,hdmi-patch<br>
>><br>
>> and specified the hint in /lib/firmware/onboard-patch:<br>
>><br>
>> $ cat /lib/firmware/onboard-patch<br>
>> [codec]<br>
>> 0x10ec0892 0x1849d892 0<br>
>><br>
>> [hint]<br>
>> indep_hp = 1<br>
>><br>
>> this seems to work fine, I can query the card hints and indep_hp shows up:<br>
>><br>
>> $ cat /sys/class/sound/hwC0D0/hints<br>
>> indep_hp = 1<br>
>><br>
>> but pulseaudio still only shows one sink. Do I need to manually load<br>
>> another sink module?<br>
><br>
><br>
> also, my alsa-info after now:<a href="http://www.alsa-project.org/db/?f=f7de54b96d1cb50391d638e3bc687730daf17a2f"> http://www.alsa-project.org/db/?f=f7de54b96d1cb50391d638e3bc687730daf17a2f</a><br>
><br>
> so there now is a new "Alt-Analog" playback device:<br>
><br>
> ><br>
> APLAY<br>
><br>
> **** List of PLAYBACK Hardware Devices ****<br>
> card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]<br>
> Subdevices: 1/1<br>
> Subdevice #0: subdevice #0<br>
> card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]<br>
> Subdevices: 1/1<br>
> Subdevice #0: subdevice #0<br>
> card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]<br>
> Subdevices: 1/1<br>
> Subdevice #0: subdevice #0<br>
><br>
> ARECORD<br>
><br>
> **** List of CAPTURE Hardware Devices ****<br>
> card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]<br>
> Subdevices: 1/1<br>
> Subdevice #0: subdevice #0<br>
> card 0: PCH [HDA Intel PCH], device 2: ALC892 Alt Analog [ALC892 Alt Analog]<br>
> Subdevices: 1/1<br>
> Subdevice #0: subdevice #0<br>
><br>
><br>
> So I tried adding a second module-alsa-card:<br>
><br>
> $ pacmd load-module module-alsa-sink card_name=alsa_card.pci-0000_00_1b.2<br>
> Module load failed<br>
><br>
> (changed the .0 to .2 because thats the Alt Analog right?)</p>
<p>You also need hint </p>
<p>jack_detect=no<br></p>
<p><a href="https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-headphones.conf">https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-headphones.conf</a></p>
<p>Don't mute surround71 playback switches and don't turn off volume</p>
<p><a href="https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-lineout.conf">https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/paths/analog-output-lineout.conf</a></p>
<p>Don't mute headphone playback switch and don't turn off volume</p>
<p>You need to enable 'independent hp' and set 'input source',1 to front mic before starting pulseaudio server</p>
<p>Simple mixer control 'Independent HP',0 <br>
Capabilities: enum <br>
Items: 'Disabled' 'Enabled' <br>
Item0: 'Enabled'</p>
<p>Simple mixer control 'Input Source',1 <br>
Capabilities: cenum <br>
Items: 'Front Mic' 'Rear Mic' 'Line' <br>
Item0: 'Front Mic'</p>
<p>Use application (e.g. mplayer) which allow you to specify device hw:0,2</p>
<p><a href="https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/profile-sets/default.conf">https://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/profile-sets/default.conf</a></p>
<p>Just add a new mapping</p>
<p>[Mapping alt-analog-stereo] <br>
device-strings = hw:%f,2 <br>
channel-map = left,right <br>
paths-output = analog-output-headphones<br>
paths-input = analog-input-front-mic<br>
priority = 10</p>