{"id":75,"date":"2017-01-23T10:13:13","date_gmt":"2017-01-23T09:13:13","guid":{"rendered":"https:\/\/www.softwolves.com\/wolfblog\/?p=75"},"modified":"2017-01-23T10:13:13","modified_gmt":"2017-01-23T09:13:13","slug":"sound-output-from-the-wrong-jack","status":"publish","type":"post","link":"https:\/\/www.softwolves.com\/wolfblog\/2017\/01\/23\/sound-output-from-the-wrong-jack\/","title":{"rendered":"Sound output from the wrong jack"},"content":{"rendered":"<p>Debian recently released an update to their stable release, <a href=\"https:\/\/www.debian.org\/News\/2017\/20170114\">version 8.7<\/a>, and with it an update to slightly more recent Linux kernel version (up to 3.16 from 3.2). Well, that would be nice to have I thought, and updated my office workstation and rebooted. Everything looked fine, it even picked up and updated the\u00a0Nvidia graphics driver that I always have problems with. But then, when I tried to play radio over the Internet, the sound suddenly started blaring out from a speaker inside the chassis that I didn&#8217;t even know it had, instead of my connected proper speakers.<\/p>\n<p>So, first I thought the driver was broken, so I rebooted back to the old kernel. Still wrong, then I turned power off and back on and started the old kernel, still the wrong output. Strange.<\/p>\n<p>I have a HP Z220 Workstation (from 2013) at the office, with an \u201cIntel Corporation 7 Series\/C210 Series Chipset Family High Definition Audio Controller (rev 04)\u201d audio\u00a0controller, with a\u00a0Realtek ALC221 chip (as per output from <em>lspci -v<\/em> and <em>\/proc\/asound\/card0\/codec#0<\/em>). It took me\u00a0an hour of intense googling to find the correct set of keywords to find something, but apparently\u00a0most English-language threads use\u00a0\u201cjack\u201d for the outputs. I should have known that.<\/p>\n<p>I eventually stumbled on <a href=\"https:\/\/bbs.archlinux.org\/viewtopic.php?id=186689\">this ArchLinux thread<\/a> from 2014 which mentioned a tool called <em>hdajackretask<\/em> that can be used to rearrange the outputs from the HDA cards. Debian distributes\u00a0this utility in the <a href=\"https:\/\/packages.debian.org\/search?keywords=alsa-tools-gui\">alsa-tools-gui package<\/a>.\u00a0After installing the package and changing the output type I managed to get sound playing through my speakers again.<\/p>\n<div id=\"attachment_76\" style=\"width: 200px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.softwolves.com\/wolfblog\/wp-content\/uploads\/2017\/01\/hdajackretask.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-76\" class=\"size-medium wp-image-76\" src=\"https:\/\/www.softwolves.com\/wolfblog\/wp-content\/uploads\/2017\/01\/hdajackretask-190x300.png\" alt=\"hdajackretask screenshot, setting &quot;Green Line Out, Rear side&quot; to &quot;Line out (back)&quot;\" width=\"190\" height=\"300\" srcset=\"https:\/\/www.softwolves.com\/wolfblog\/wp-content\/uploads\/2017\/01\/hdajackretask-190x300.png 190w, https:\/\/www.softwolves.com\/wolfblog\/wp-content\/uploads\/2017\/01\/hdajackretask.png 397w\" sizes=\"auto, (max-width: 190px) 100vw, 190px\" \/><\/a><p id=\"caption-attachment-76\" class=\"wp-caption-text\">Screenshot from hdajackretask, used to select output devices from an HDA audio card<\/p><\/div>\n<p>Now to actually get some work done. That is Mondays for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian recently released an update to their stable release, version 8.7, and with it an update to slightly more recent Linux kernel version (up to 3.16 from 3.2). Well, that would be nice to have I thought, and updated my office workstation and rebooted. Everything looked fine, it even picked up and updated the\u00a0Nvidia graphics [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[41,42,39,11],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-software","tag-alsa","tag-audio","tag-frustration","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":1,"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/posts\/75\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.softwolves.com\/wolfblog\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}