From owner-freebsd-multimedia@freebsd.org Thu Dec 14 07:20:49 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7F686E99B6F for ; Thu, 14 Dec 2017 07:20:49 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DEE678393 for ; Thu, 14 Dec 2017 07:20:49 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-it0-x234.google.com with SMTP id d16so8864046itj.1 for ; Wed, 13 Dec 2017 23:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cRM9/oCRyseC0QD/RCy6lxAQxfyfsZNLuDLU71TVPEQ=; b=ScxZ+Mb/EqsZyR57Tf7FQxYLHblxY/ovpwT83efNUpvl2fD5pOSQ5o1A9hDGDYqrDm yQN2EdG9sR/gisxsZbBuXkYqNY+rQ8XPYiATT7T/ZQfqJHXkD8ESzVD2oqgD5/tBebOL WB0bZPEaG6CLJ33pOcYercBwqB5iGbgEQg38NwJIeELTW3MOPwXqVnfb4qR3P734QHL1 H8quQv7oy6e+l4v3mwfGCton6C+5/W1SOvQSFo0DxqSqXVRjHfd6dJ/6tzh0YtwAZjl+ 7H29cEhbKnlgMH7NyfH9zwbnVzM1rKWdhXOVz6fdDem+zca4HvxagVJV2noWgBsAW4Y8 bQbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cRM9/oCRyseC0QD/RCy6lxAQxfyfsZNLuDLU71TVPEQ=; b=eHIEW40XEoxNQi8q/drOaHtLIZPnaGp2w/OmmfTOe8TK4sqH7rvcwmnPEWzHbiyF8x IatwNc8ZG4lKbHNDtbKt5upMxfNBfM4zIBVXC1KD8yuF07GXiQ4nFUggVQ7Ue5OnHyOQ 6brleIEr3g0TLIpyWbFWulB0Qw6c7bNAeN6wah9F3yokfvaQ/eOWD3MNSVH+ACBxyK9r KFu6hfxnGREmYcYvKMcO9KsDCYHHviMa2VPMZMdlpnjHWMCspsckkHzsIQkeYAG3ppq5 ABnavg6Shr53Z5ghFIudEELzO493S9Skdu0+rS2rW+ZKl0HTfykH0wb25SJqR4pDzYiL bTbw== X-Gm-Message-State: AKGB3mKRk5z26bJ98oFxX5KZ6e65Pt1TFcDzxaCZxIrYtokGZAIVggHE VDCDOrteozvMrEswqtgFI4pvy+2clqv4yDPts8qF1YDA X-Google-Smtp-Source: ACJfBos5J4A8+uESHyHCMb9ZxH0PzzG4npCvrRao9Hm62s2jKMmsyencmCX7M6J/2lcurxBmSiV0J+iAx0N5nm6VUlY= X-Received: by 10.107.162.131 with SMTP id l125mr6789218ioe.153.1513236048436; Wed, 13 Dec 2017 23:20:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.11.31 with HTTP; Wed, 13 Dec 2017 23:20:47 -0800 (PST) In-Reply-To: References: From: blubee blubeeme Date: Thu, 14 Dec 2017 15:20:47 +0800 Message-ID: Subject: Re: FreeBSD amd64 GENERIC kernel To: Shane Ambler Cc: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 07:20:49 -0000 On Thu, Dec 14, 2017 at 1:57 PM, Shane Ambler wrote: > On 14/12/2017 01:22, blubee blubeeme wrote: > > What sources do kernel modules pull in? > > > > I'm looking at the generic kernel config for am64: > > > > # Sound support > > device sound # Generic sound driver (required) > > device snd_cmi # CMedia CMI8338/CMI8738 > > device snd_csa # Crystal Semiconductor CS461x/428x > > device snd_emu10kx # Creative SoundBlaster Live! and Audigy > > device snd_es137x # Ensoniq AudioPCI ES137x > > device snd_hda # Intel High Definition Audio > > device snd_ich # Intel, NVidia and other ICH AC'97 Audio > > device snd_via8233 # VIA VT8233x Audio > > > > > > The device "sound" is required, does that mean if I totally uncomment out > > all the device including sound, then the machine won't boot? > > > > Does required mean a breaking kernel or just no sound? > > Required means any of the following snd_* devices require it to build. > > Commenting all devices you have listed results in a kernel that allows > the module from audio/oss to be loaded. > > Having experimented with this a few days ago - while the sound and snd_* > loadable modules are built, they are also permanently linked into the > generic kernel which means we can't unload them after startup or prevent > them loading in loader.conf, so to use the audio/oss kernel module a > custom kernel needs to be built with these disabled. > > It is also possible to add > WITHOUT_MODULES=sound snd_cmi snd_csa snd_emu10kx snd_es137x snd_hda > snd_ich snd_via8233 > to /etc/make.conf. > > Note that this leads to a generic kernel without sound that can be > confusing later when you have forgotten. I would recommend using the > custom kernel config with a descriptive name "ident NO_SOUND" so that > later you know why sound stops working. > > I like to keep generic installed as kernel and give custom kernels > different names - > > make buildkernel KERNCONF=NO_SOUND > make installkernel KERNCONF=NO_SOUND KODIR=/boot/kernel.no_sound > > Add kernel="kernel.no_sound" to loader.conf to load it at boot. > Add kernels="kernel,kernel.no_sound" to easily choose between them in > the boot screen. > > I must admit to a lack of documentation regarding the install and use of > audio/oss. While I didn't get far with config, I can contribute the > above to installation. > > -- > FreeBSD - the place to B...Software Developing > > Shane Ambler > > Hi Shane thanks for the tips, I just built a kernel with all of those sound drivers commented out. There was no problem, except for the total lack of sound, which is expected. My sound does make that default *beep* when I delete on an empty terminal though. My goal is to port OSS 4.2 to get rid of all the patches and legacy OSS stuff. OSS has ALSA emulation so I should be able to test /ports/audio packages to see what needs patching, updating etc... Once OSS 4.2 is in FreeBSD then I can work on adding OSS backends for Chromium and other software that I use. Chromium OSS feature request from 2009: https://bugs.chromium.org/p/chromium/issues/detail?id=19470 Would they still accept an OSS backend today?