You are not logged in.

#1 2014-09-06 11:20:18

stinkyfax
Member
Registered: 2014-09-06
Posts: 8

[Solved] Audio playback from wrong jack

Hello everyone,

I could no longer get sound to work after updating Arch and rebooting. Digging deeper I found out that it works if I plug my speakers from "Line" to "Rear" jack. It seems to me that Alsa uses wrong audio-jack to playback the sound.

How can I enforce playback back to the original jack "Line"? I am using ALC1150 chip, 2 speakers configuration.

Outputs of few commands you might find useful:

aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, ALC1150 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC1150 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC1150 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
amixer scontents
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 79 [91%] [-6.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Front Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Front Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Side',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 31 [100%] [12.00dB] [on]
  Front Right: Playback 31 [100%] [12.00dB] [on]
Simple mixer control 'Line Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Beep',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 0 [0%] [-17.25dB] [off]
  Front Right: Capture 0 [0%] [-17.25dB] [off]
Simple mixer control 'Capture',1
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 0 [0%] [-17.25dB] [off]
  Front Right: Capture 0 [0%] [-17.25dB] [off]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Input Source',1
  Capabilities: cenum
  Items: 'Front Mic' 'Rear Mic' 'Line'
  Item0: 'Front Mic'
Simple mixer control 'Rear Mic',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 0 [0%] [-34.50dB] [off]
  Front Right: Playback 0 [0%] [-34.50dB] [off]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 0 [0%] [0.00dB]
  Front Right: 0 [0%] [0.00dB]
alsactl init
alsactl: sysfs_init:48: sysfs path '/sys' is invalid

Found hardware: "HDA-Intel" "Realtek ALC1150" "HDA:10ec0900,10438619,00100001" "0x1043" "0x8619"
Hardware is initialized using a generic method
cat /proc/asound/card0/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 16384

Update: sound works from all the "surround" jacks: front, side, rear, but not from the standard Line-Out, why?

Last edited by stinkyfax (2014-09-07 09:27:49)

Offline

#2 2014-09-06 22:48:02

jwm-art
Member
Registered: 2011-02-01
Posts: 87

Re: [Solved] Audio playback from wrong jack

Have you looked on the ALSA Arch Wiki page?
https://wiki.archlinux.org/index.php/Ad … chitecture
Maybe HDA Analyzer might give you something to work with?
https://wiki.archlinux.org/index.php/Ad … A_analyzer
It needs root priveledges so make sure you can run X applications through sudo:
https://wiki.archlinux.org/index.php/Su … using_sudo
and then something like:

wget -O run.py http://www.alsa-project.org/hda-analyzer.py
sed -i 's/python/python2/g' run.py
sudo python2 run.py

The last command will fail, but then...

sed -i 's/python/python2/g' /dev/shm/hda-analyzer/*.py
sudo python2 run.py

Not sure what help that will be, looks far too technical for my liking, though it did ask something about resetting defaults before I exited... Maybe it might help... Or make things worse...

Offline

#3 2014-09-07 00:04:58

stinkyfax
Member
Registered: 2014-09-06
Posts: 8

Re: [Solved] Audio playback from wrong jack

jwm-art wrote:

Have you looked on the ALSA Arch Wiki page?
https://wiki.archlinux.org/index.php/Ad … chitecture
Maybe HDA Analyzer might give you something to work with?
https://wiki.archlinux.org/index.php/Ad … A_analyzer
It needs root priveledges so make sure you can run X applications through sudo:
https://wiki.archlinux.org/index.php/Su … using_sudo
and then something like:

wget -O run.py http://www.alsa-project.org/hda-analyzer.py
sed -i 's/python/python2/g' run.py
sudo python2 run.py

The last command will fail, but then...

sed -i 's/python/python2/g' /dev/shm/hda-analyzer/*.py
sudo python2 run.py

Not sure what help that will be, looks far too technical for my liking, though it did ask something about resetting defaults before I exited... Maybe it might help... Or make things worse...

Thank you, the Arch wiki page was a great help in finding out the cause, but it hasn't given me much of a direction on how to fix my particular problem.

I also came across HDA-Analyzer when searched the web. Played around with it, the Line-Out was already in activated stage there, could not manage to solve it. I am running out of the options, might as well try out reinstalling the Arch, though that is not how fixing stuff in linux is supposed to happen sad

Offline

#4 2014-09-07 01:08:52

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] Audio playback from wrong jack

Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

 Disable that for starters. Use hdajackretask from alsa-tools package to reassign jack ports.

Offline

#5 2014-09-07 09:27:19

stinkyfax
Member
Registered: 2014-09-06
Posts: 8

Re: [Solved] Audio playback from wrong jack

Thank you for the help. The problem was mysteriously resolved "itself".

I have dual boot, and I suspect windows might have not fully released sound hardware on reboot (if that is possible at all), but I have not done anything else except spend some time in Windows and get back to Arch.  (I have fast-boot disabled)

emeres, Thank you for pointing out of hdajackretask, will give it a try when (if) problem appears again. I have been search for a tool like this for hours and did not find anything.

Offline

#6 2014-09-07 10:07:39

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [Solved] Audio playback from wrong jack

 Hdajackretask is for hda compliant hardware only, as far as I know, which I assumed you have, since there is not that much hardware around with those capabilities. Did you cold boot? By that I mean booting from a powered off state, preferably with no charge in system components. The hda cards accept certain [re]configuration that can be done on the fly, look hda-verb up. Should the sound card, its codec*/controller/main ic, keep it in its 'memory'/registers, then it might be possible to retain the previous/a corrupted state.

*Realtek calls its devices that, although sometimes an amplifier is also in the main description.

Offline

#7 2014-09-08 15:29:42

stinkyfax
Member
Registered: 2014-09-06
Posts: 8

Re: [Solved] Audio playback from wrong jack

emeres wrote:

 Hdajackretask is for hda compliant hardware only, as far as I know, which I assumed you have, since there is not that much hardware around with those capabilities. Did you cold boot? By that I mean booting from a powered off state, preferably with no charge in system components. The hda cards accept certain [re]configuration that can be done on the fly, look hda-verb up. Should the sound card, its codec*/controller/main ic, keep it in its 'memory'/registers, then it might be possible to retain the previous/a corrupted state.

*Realtek calls its devices that, although sometimes an amplifier is also in the main description.

At the time of issue, it was not cold booted, but rebooted from Windows, thus gives a chance to your theory. I will look into the tools and ideas you gave once the problem repeats, thank you very much.

Offline

Board footer

Powered by FluxBB