From nobody Mon Oct 25 12:04:23 2021 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E0C7A181C033 for ; Mon, 25 Oct 2021 12:04:44 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HdDCc5t0Qz4kvZ for ; Mon, 25 Oct 2021 12:04:44 +0000 (UTC) (envelope-from tomek@cedro.info) Received: by mail-oo1-xc2f.google.com with SMTP id o26-20020a4abe9a000000b002b74bffdef0so3563307oop.12 for ; Mon, 25 Oct 2021 05:04:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MTvvei5Ya8zvwzMPQAxaDnD4nld+PrCfAQiCYGYJ3Ak=; b=RaWd7dYpKLr5U0rHdUqAhOfmzfhyRxdanIgmyYFdfYmsG0G/ZqgSnfuKgq8/LHSWII oLvjGD/1ogwnG86p2EQeP9g0XvcdVKAWAg7xlL8RhOu2AOsbXvvgIMmKDUcKqwSxlvYR 8oc7Bxu2psm98Ty7Tl8suou6RxN9czT5n9bKmlMbqjOGp4+WFMYzsl5GH6mg9QNxp4hG +4UdBsiJcZTL1FI2eyDxpn/n/Le3lzcVeGEq9LnvX3RyJAvFw/+pEfSrAON/uCIm8VzJ m7fx3AdjlOcGpG5Y8zPd1xbQPJL2aI5JfyXPlRrO+lHE5pbX5Dh+CR+vCqGb5ZNobbfI 6XGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MTvvei5Ya8zvwzMPQAxaDnD4nld+PrCfAQiCYGYJ3Ak=; b=xo5JPRDXQ3ILXpu99PHFc9z3RUV6j7MmRwf8ieM0Als/TnZXacUYQUuWBSAxCcPu+3 tqSz0qNVCFOnY2Em73BfPLxJ53jr2HrcDbQSapWZ8wK1LUHKTEzz4xIF1B7IaOFuiD8k QI6aBSDhAsLQKbA9HBU1rGdZlVdlJLRDVL7PybkEmGYeemQBL+D2xBNr3NglQaVEsAkq doyCCP0Ax63qiclH3GtVnsnQG354ouybnYsvFmyArXYyvMfsWtUN8D+ZC9tgYaoQ1CRq m19vGpuu9CA6yZ9XgFgiDgcMWsYQGJQVNiHw7DSQBOnb8b1oVJJHJB5dqp2P3BkGUS/p y7XQ== X-Gm-Message-State: AOAM530lNot/s3tTThbIamlFa1YhoaZ2ZR6uscdcXj2PKla+jKL+EoGc ldmNDv9g56yY+c76SaMzloSmCTFk7T1KdDNRGG/pe2tE2R0Fqg== X-Google-Smtp-Source: ABdhPJwQ1pX4jwZkUfEB6KwvIjq0cfLiOeTJlIXB9H7mOwe1TAgk2VCLfldU1H2Rt/wr2Hovu65kpslSmEAyxjyLeWw= X-Received: by 2002:a4a:c808:: with SMTP id s8mr11744392ooq.8.1635163478274; Mon, 25 Oct 2021 05:04:38 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Tomasz CEDRO Date: Mon, 25 Oct 2021 14:04:23 +0200 Message-ID: Subject: Re: Using USB sound card with FreeBSD To: Olivier Cc: FreeBSD Questions Mailing List Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4HdDCc5t0Qz4kvZ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Mon, Oct 25, 2021 at 11:35 AM Olivier wrote: > Hi, > I have a system with no sound interface. I have tried to install a USB > sound card, but so far, I don't see how to use it. > What is the device (/dev/xvz) that I should be sending my sound to? In > the past I had devices like /dev/dspW0.0 but I see nothing with that USB > sound card. > TIA, > Olivier Hey Olivier, I assume you are using RELEASE / GENERIC kernel, so modules / drivers should be already in the system, you need to load them if they do not auto-load. Then using USB Audio card looks exactly the same as built-in audio card. As root execute: kldload snd_uaudio This will load the USB Audio module. After that attach USB Audio card and /dev/dspXX should show up. If you want this module auto-loaded at boot time put `snd_uaudio_load="YES"` in `/boot/loader.conf`. Make sure your card is recognised and supported. See `dmesg` output or watch first console after connecting the USB Audio card (Ctrl+Alt+F1 to go there from X). If you do not have /dev/dsp despite loaded `snd_uaudio` try `usbconfig` to see if the card is attached and visible to the computer among other USB devices. If usb subsystem does not see the card then audio also won't see the card. In that case you may want to try different USB port, cable, check if that card works on another computer / os, etc. The simplest way to test if sound card works is to `cat /dev/random > /dev/dspXX` providing the device of interest you should hear random noise in the speakers. Also make sure with mixer that output is not muted. If you haven't read yet there is a Handbook section dedicated to Multimedia: https://docs.freebsd.org/en/books/handbook/multimedia/ Good luck and have fun! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info