From owner-freebsd-hackers@freebsd.org Mon Apr 30 14:43:21 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54627FAD12A for ; Mon, 30 Apr 2018 14:43:21 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [199.48.133.146]) by mx1.freebsd.org (Postfix) with ESMTP id F2FD170355 for ; Mon, 30 Apr 2018 14:43:20 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from sweettea.beer.town (unknown [76.164.8.130]) by smtp.vangyzen.net (Postfix) with ESMTPSA id 973CA5646F; Mon, 30 Apr 2018 09:43:14 -0500 (CDT) Subject: Re: new laptop, no sound in spite of driver attaching To: Wojciech Puchar , freebsd-hackers@freebsd.org References: From: Eric van Gyzen Openpgp: preference=signencrypt Message-ID: <83d82ee4-ea07-1082-e4d9-a969a8588167@vangyzen.net> Date: Mon, 30 Apr 2018 09:43:10 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:43:21 -0000 On 04/30/2018 06:58, Wojciech Puchar wrote: > and no idea where to search for a solution > > FreeBSD laptop.wojtek.intra 11.1-STABLE FreeBSD 11.1-STABLE #2: Mon Apr > 30 13:35:54 CEST 2018 > root@laptop.wojtek.intra:/usr/src/sys/amd64/compile/laptop  amd64 > > > in dmesg > hdac0: mem 0x91410000-0x91413fff irq 22 > at device 27.0 on pci0 > hdacc0: at cad 0 on hdac0 > hdaa0: at nid 1 on hdacc0 > pcm0: at nid 20 and 25 on hdaa0 > pcm1: at nid 33 and 18 on hdaa0 > hdacc1: at cad 2 on hdac0 > hdaa1: at nid 1 on hdacc1 > pcm2: at nid 5 on hdaa1 > > > tried to change hw.snd.default_unit to 0, 1 or 2 - no sound in any case. > > mixer when default_unit is 0 > > Mixer vol      is currently set to  65:65 > Mixer pcm      is currently set to 100:100 > Mixer speaker  is currently set to 100:100 > Mixer mic      is currently set to   0:0 > Mixer mix      is currently set to 100:100 > Mixer rec      is currently set to   0:0 > Mixer igain    is currently set to   0:0 > Mixer ogain    is currently set to 100:100 > Recording source: mic > > > mixer when default_unit is 1 > > Mixer vol      is currently set to 100:100 > Mixer pcm      is currently set to 100:100 > Mixer rec      is currently set to  37:37 > Mixer igain    is currently set to   0:0 > Mixer monitor  is currently set to  56:56 > > mixer when default_unit is 2 > > Mixer vol      is currently set to 100:100 > Mixer pcm      is currently set to 100:100 > > this is HP 250 G5 laptop HDA is apparently very difficult for vendors to get right. Linux has thousands of lines of vendor- and model-specific patches to fix it. Start here: https://github.com/torvalds/linux/blob/master/sound/pci/hda/patch_realtek.c If you're lucky, you'll find a patch for your laptop or a similar laptop that has the same problem(s). The next step is to figure out how to express the patch in FreeBSD's driver. Hopefully, someone will take interest in porting many of Linux's HDA patches to FreeBSD. Sound is probably one of the top three reasons people fail to run FreeBSD on their laptop. Eric