From owner-freebsd-current@freebsd.org Sun Sep 13 10:50:38 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 04F2E3D48E8 for ; Sun, 13 Sep 2020 10:50:38 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bq5qx09tKz423V for ; Sun, 13 Sep 2020 10:50:36 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-wr1-x441.google.com with SMTP id t10so15624575wrv.1 for ; Sun, 13 Sep 2020 03:50:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mAncFOxOhTDxO25L/pRhroAuXdak0qTtxhqqan7mVgc=; b=Qojn83GJFEZ68ve3NH7Nu9igeonGk0iRmPvyfMCjFMlDd0hB6QRKSmFFN1ATcC40vt oczfvHwJvbzuu7gisEyXSULTULRBo1kyQ3SLOLD482MmZ3escuQlRmkWV0+HUxvHPXtl YyMdF7n5M8DQk3miXCBQ0H2O18ToK6hehNSbt+9xOs2OTqb+gJE//KnA8JXWGy7QXCEV 7I0OCoM9/R9QsW5p6R5G2IJyX+6ysTL1a4+8rSVxtkpktLT2zmNlDVxx9Yrb+yywRFua EwidldACLXsRO4o1GDWanJ9X0minB4wBenDEKhyn0SnN5GO77NdTeik7TRR/CF06MINd sXTw== X-Gm-Message-State: AOAM530flKBhMQQrjKUwQK91FjeOWw4890HzejcqBr0weh8DreQ5IL5E nZn4/qa1SoFC2ZhH+vUnTaxpzHko0xPc16mhouDI4vYUQH2ZNw== X-Google-Smtp-Source: ABdhPJxqqNwg5lgBDK7PScr8YWH8Qa4E5+gQkVCqNFz9AuquP/wF8mgdFrmIZaMC3rNoMD8OOMNtvfUG1/nomWbNmsM= X-Received: by 2002:a5d:4e8a:: with SMTP id e10mr10748329wru.329.1599994234741; Sun, 13 Sep 2020 03:50:34 -0700 (PDT) MIME-Version: 1.0 References: <9551111b-5dfb-c42b-6f58-81f6c8b8bbd1@gmail.com> In-Reply-To: <9551111b-5dfb-c42b-6f58-81f6c8b8bbd1@gmail.com> From: Tomasz CEDRO Date: Sun, 13 Sep 2020 12:50:28 +0200 Message-ID: Subject: Re: USB sound devices with FreeBSD-CURRENT To: Graham Perrin Cc: FreeBSD CURRENT , FreeBSD questions Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4Bq5qx09tKz423V X-Spamd-Bar: - X-Spamd-Result: default: False [-1.85 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; NEURAL_HAM_MEDIUM(-0.82)[-0.824]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.20)[0.200]; NEURAL_HAM_LONG(-0.92)[-0.924]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[cedro.info]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::441:from]; R_SPF_NA(0.00)[no SPF record]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2020 10:50:38 -0000 I am using EMU10K1 attached to the sound system over USB on my laptop and the device needs to be connected on boot - unplug will crash the system. If device is plugged in on boot and I add `hw.snd.default_unit=3` to `/etc/sysctl.conf`, that is before I start X, then I have audio playback "by default". In order to have dynamic audio configuration I have found PulseAudio helpful a lot as it allows you to select which application uses which input/otput audio device. Note that PulseAudio can lock your audio hardware and block clean module removal. I am not sure about current default sound system in FreeBSD if its still OSS or ALSA, but if you do not want to use PulseAudio, you may want to try ALSA configuration at `/usr/local/etc/asound.conf` it allows some more detailed remap. Good luck :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info