From owner-freebsd-questions@freebsd.org Fri Nov 20 00:20:23 2020 Return-Path: Delivered-To: freebsd-questions@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 8C6A2477EFE for ; Fri, 20 Nov 2020 00:20:23 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (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 4CccdL4Kz6z3qLJ for ; Fri, 20 Nov 2020 00:20:22 +0000 (UTC) (envelope-from gobble.wa@gmail.com) Received: by mail-ej1-x62a.google.com with SMTP id 7so10500598ejm.0 for ; Thu, 19 Nov 2020 16:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j3AZHscwqJ58nR6gW7lIHFq14R7Trwa0mr5KrJ0t7J0=; b=YKZiPcuQRVMaAQcjfNn3GM3DYQLPbbTsurKOlTHXsJqBq9RE6N9c6jdGAC6if/2KKq GqfPx5pwUusWolutKBi9RI3ck+KLZZd8ntx2v1IN5IJJKpOaZeee+XzrNNw1LTCG2B0S BdKwbkGQKJbjGWFn/zg6Aj98PqGynhkEBt6US4A5R7mJLirbAWnsZCiDP/64sv+gsKNG wYz2uSYu60Gma4Kj2KZuRdGerqh1AcJtdjy66G0bdXC0Dn5TyAHs2x8FFbAXOqamEQiC r1iatHKWeD20Dw/IBChz+Zw6Nl4CJkjiXpZ53ndW3toSHzHoonHs+dHD8oviPi4RXMIw sKRw== 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=j3AZHscwqJ58nR6gW7lIHFq14R7Trwa0mr5KrJ0t7J0=; b=ozT/sPil57k1AvEqT0B458HazrftmhvNhtuVxp6LEyUv/rWRZWYl317SzuymhKvzZ0 KV5iagMDVIvBtWuTx4M8eM/kye3RZaT7OiBIC+FqemhlRFrmGuBL//a0iyXG4Sujlko3 nxYKjtcAwqIGtOgrdWpJLNiEEhiCfL0jtFNxJcWd9eq8F8jcPOYcNMaLzsL855cTPXHH UVWxDIUHKcSNa0xHERz8W3dY11vAbrdi9vuyJCkxa7/ZF+uFtqK3S5p33+h96xmUJ+XK LPAg/Csub/k3Ymwhe3ddPzNsHmOt3cG4zRvtq42CHbvKhnWnbs34GUfJoBI8ToaU70PD yGvA== X-Gm-Message-State: AOAM533bJBcM8fWXg6zHM8txBOysJwugxknPysmIONXDQDOOZapw4cXH ++LZzSagOYFh3c2E7BGXkGXebPzg21OvQgFMsEpddax0+WTDWIXN X-Google-Smtp-Source: ABdhPJyXlbb4gBsAQRbXjuiUlqjF1oeps4WMifiGrQPPO6TNvg80Qx5uOG6fUlIZwGO/iOYP75fJdx8sMCizYefho04= X-Received: by 2002:a17:906:cc84:: with SMTP id oq4mr10052709ejb.513.1605831621101; Thu, 19 Nov 2020 16:20:21 -0800 (PST) MIME-Version: 1.0 References: <642cdfb9963fef55d696c28e28d28622.squirrel@webmail.harte-lyne.ca> In-Reply-To: <642cdfb9963fef55d696c28e28d28622.squirrel@webmail.harte-lyne.ca> From: Waitman Gobble Date: Thu, 19 Nov 2020 20:20:09 -0400 Message-ID: Subject: Re: Firefox - No audio To: byrnejb@harte-lyne.ca Cc: FreeBSD Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4CccdL4Kz6z3qLJ X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=YKZiPcuQ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gobblewa@gmail.com designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=gobblewa@gmail.com X-Spamd-Result: default: False [-3.99 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.995]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::62a:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::62a:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62a:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2020 00:20:23 -0000 On Thu, Nov 19, 2020 at 10:39 AM James B. Byrne via freebsd-questions wrote: > > FreeBSd-12.1p10 > > Firefox-82.0.1. > > I have a system that has only basic VGA video on board and requires a separate > video card for anything else. The card installed is an Nvidia. I had to > switch the card from interrupt to polling in order to get a stable video player > in Firefox. But now Firefox provides no audio. > > On the same system both MPlayer and Chromium handle audio and video without > problem. But these also worked before I switched from interrupt to polling. > > The sysctl settings are: > > sysctl -a | grep snd > device snd_cmi > device snd_csa > device snd_emu10kx > device snd_es137x > device snd_hda > device snd_ich > device snd_via8233 > hw.snd.maxautovchans: 16 > hw.snd.default_unit: 2 > hw.snd.version: 2009061500/amd64 > hw.snd.default_auto: 1 > hw.snd.verbose: 0 > hw.snd.vpc_mixer_bypass: 1 > hw.snd.feeder_rate_quality: 1 > hw.snd.feeder_rate_round: 25 > hw.snd.feeder_rate_max: 2016000 > hw.snd.feeder_rate_min: 1 > hw.snd.feeder_rate_polyphase_max: 183040 > hw.snd.feeder_rate_presets: 100:8:0.85 100:36:0.92 100:164:0.97 > hw.snd.feeder_eq_exact_rate: 0 > hw.snd.feeder_eq_presets: > PEQ:16000,0.2500,62,0.2500:-9,9,1.0:44100,48000,88200,96000,176400,192000 > hw.snd.basename_clone: 1 > hw.snd.compat_linux_mmap: 0 > hw.snd.syncdelay: -1 > hw.snd.usefrags: 0 > hw.snd.vpc_reset: 0 > hw.snd.vpc_0db: 45 > hw.snd.vpc_autoreset: 1 > hw.snd.timeout: 5 > hw.snd.latency_profile: 1 > hw.snd.latency: 2 > hw.snd.report_soft_matrix: 1 > hw.snd.report_soft_formats: 1 > > > sysctl -a | grep hdac > irq264: hdac0:143 @cpu0(domain0): 2412 > irq282: hdac1:179 @cpu0(domain0): 57 > dev.hdaa.1.%parent: hdacc1 > dev.hdaa.0.%parent: hdacc0 > dev.hdacc.1.%parent: hdac1 > dev.hdacc.1.%pnpinfo: vendor=0x10ec device=0x0892 revision=0x03 stepping=0x02 > dev.hdacc.1.%location: cad=0 > dev.hdacc.1.%driver: hdacc > dev.hdacc.1.%desc: Realtek ALC892 HDA CODEC > dev.hdacc.0.%parent: hdac0 > dev.hdacc.0.%pnpinfo: vendor=0x10de device=0x0051 revision=0x01 stepping=0x00 > dev.hdacc.0.%location: cad=0 > dev.hdacc.0.%driver: hdacc > dev.hdacc.0.%desc: NVIDIA (0x0051) HDA CODEC > dev.hdacc.%parent: > dev.hdac.1.polling: 1 > dev.hdac.1.pindump: 0 > dev.hdac.1.%parent: pci12 > dev.hdac.1.%pnpinfo: vendor=0x1022 device=0x1457 subvendor=0x1849 > subdevice=0x7893 class=0x040300 > dev.hdac.1.%location: slot=0 function=3 dbsf=pci0:12:0:3 > handle=\_SB_.PCI0.GP18.AZAL > dev.hdac.1.%driver: hdac > dev.hdac.1.%desc: AMD (0x1457) HDA Controller > dev.hdac.0.polling: 0 > dev.hdac.0.pindump: 0 > dev.hdac.0.%parent: pci10 > dev.hdac.0.%pnpinfo: vendor=0x10de device=0x0e0f subvendor=0x3842 > subdevice=0x3733 class=0x040300 > dev.hdac.0.%location: slot=0 function=1 dbsf=pci0:10:0:1 > dev.hdac.0.%driver: hdac > dev.hdac.0.%desc: NVIDIA (0x0e0f) HDA Controller > dev.hdac.%parent: > > Can anyone shed some light as to why Firefox, and apparently only Firefox, has > such difficulties with the Nvida setup? And provide some guidance on how to > deal with them. > > -- > *** e-Mail is NOT a SECURE channel *** > Do NOT transmit sensitive data via e-Mail > Unencrypted messages have no legal claim to privacy > Do NOT open attachments nor follow links sent by e-Mail > > James B. Byrne mailto:ByrneJB@Harte-Lyne.ca > Harte & Lyne Limited http://www.harte-lyne.ca > 9 Brockley Drive vox: +1 905 561 1241 > Hamilton, Ontario fax: +1 905 561 0757 > Canada L8E 3C3 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" I use NVidia graphics but not for sound.. You probably want to change the hw.snd.default_unit # sysctl hw.snd.default_unit= {the number of your audio device} (as root) You may have to restart Firefox. Or, if you use pulseaudio you can do this without restarting Firefox. # pulseaudio -k (as regular user, not root) % cat /dev/sndstat Installed devices: pcm0: (play) pcm1: (play) pcm2: (play/rec) pcm3: (play/rec) pcm4: (play/rec) default pcm5: (play/rec) I always have to set mine to 4 after a reboot. It's possible to make it stay that way, but it's a USB audio device that i sometimes don't plug in. So I just do it manually. -- Waitman Gobble