{"id":118,"date":"2018-01-21T21:20:41","date_gmt":"2018-01-21T21:20:41","guid":{"rendered":"http:\/\/labiol.xyz\/?p=118"},"modified":"2018-01-21T21:20:41","modified_gmt":"2018-01-21T21:20:41","slug":"sound-setup-freebsd","status":"publish","type":"post","link":"https:\/\/www.labiol.xyz\/index.php\/2018\/01\/21\/sound-setup-freebsd\/","title":{"rendered":"Sound setup &#8211; freebsd."},"content":{"rendered":"<h3>Sound in freebsd<\/h3>\n<p>Firstly check which driver is suitable for your audio card.<\/p>\n<p>As it is described\u00a0<a title=\"there\" href=\"http:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/handbook\/sound-setup.html\" target=\"_blank\" rel=\"noopener\">there<\/a>\u00a0[<a title=\"http:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/handbook\/sound-setup.html\" href=\"http:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/handbook\/sound-setup.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/handbook\/sound-setup.html<\/a>] try to load right module: kldload snd_driver or kldload snd_hda<\/p>\n<p>Information about your card can be grabbed from \/dev\/sndstat file or dmesg command.<\/p>\n<pre>cat \/dev\/sndstat\r\n\r\nInstalled devices:\r\npcm0:  (play)\r\npcm1:  (play\/rec) default\r\npcm2:  (play\/rec)\r\npcm3:  (play)\r\npcm4:  (play)\r\n<\/pre>\n<p>or<\/p>\n<pre>dmesg | grep pcm\r\n \r\npcm0:  at nid 3 on hdaa0\r\npcm1:  at nid 20 and 18 on hdaa1\r\npcm2:  at nid 21 and 24,25 on hdaa1\r\npcm3:  at nid 30 on hdaa1\r\npcm4:  at nid 27 on hdaa1\r\n<\/pre>\n<p>In my case it is Realtek ALC888 sound card and<\/p>\n<pre> kldload snd_driver<\/pre>\n<p>works fine<\/p>\n<p>To add module while system starting additional information should be added to \/boot\/loader.conf or \/boot\/defaults\/loader.conf. In my case the following line should persist<\/p>\n<pre>snd_driver_load=\"YES\"\r\n<\/pre>\n<p>Test sound card simply by command:<\/p>\n<pre> cat filename &gt; \/dev\/sdp<\/pre>\n<p>Default volume set at system boot can be set in \/boot\/device.hints file, for example:<\/p>\n<pre>hint.pcm.0.vol=\"50\"<\/pre>\n<p>Although volume can also be set from command line by command mixer, example:<\/p>\n<pre> mixer --without option show current volume<\/pre>\n<pre> mixer vol 75  --change vol to 75%<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Sound in freebsd Firstly check which driver is suitable for your audio card. As it is described\u00a0there\u00a0[http:\/\/www.freebsd.org\/doc\/en_US.ISO8859-1\/books\/handbook\/sound-setup.html] try to load right module: kldload snd_driver or kldload snd_hda Information about your card can be grabbed from \/dev\/sndstat file or dmesg command. cat \/dev\/sndstat Installed devices: pcm0: (play) pcm1: (play\/rec) default pcm2: &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-118","post","type-post","status-publish","format-standard","hentry","category-freebsd"],"_links":{"self":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":1,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":119,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/118\/revisions\/119"}],"wp:attachment":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}