From nobody Thu Sep 01 07:05:36 2022 X-Original-To: freebsd-arm@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 4MJBs30PXrz4bYvM for ; Thu, 1 Sep 2022 07:05:43 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MJBs15MyTz3V1F for ; Thu, 1 Sep 2022 07:05:41 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References: To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=zgac9ywVftsBjfZvMj9PCrR2kuKRC+2AteZ7N4TyMgc=; b=NObeKz7xVzK/rMEDygMRSHf/cm zFymO/gXeP9lDg4IXyLr+HTFiBu0w676Z0Q9CEcfbLvVeOhFn0EDvz3xSpzNqyOdRRpOvjuPv1t97 37mTbSo0M975C1wGVfpW2SZfF8YtOhKCsJ3xKTu2m9ZjRGGqweY34Jh1U7H+j5yuFERU=; Message-ID: Date: Thu, 1 Sep 2022 09:05:36 +0200 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: sound on raspberry pi 4 Content-Language: en-US To: freebsd-arm@freebsd.org References: From: Ronald Klop In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: / X-Spam-Score: -0.4 X-Spam-Status: No, score=-0.4 required=5.0 tests=ALL_TRUSTED,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.2 X-Scan-Signature: 4cc6a862e0a753e674eb374334b394fd X-Rspamd-Queue-Id: 4MJBs15MyTz3V1F X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=NObeKz7x; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-0.99)[-0.988]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 8/31/22 19:52, void wrote: > Hi, > > Does anyone know how to get a raspberry pi 4 with sound > to work on freebsd? Is it possible or is it a nonfree > binary blob thing? > > Theres no sound from the jack on the board. It's connected via HDMI, so tried the sound jack there but no dice. > > The overlays available appear to be for accessories. > I'm just after what sound the board itself can make, without > having to buy additional hardware. > > # cat /dev/sndstat > FreeBSD Audio Driver (64bit 2009061500/aarch64) > No devices installed. > No devices installed from userspace. > > sysctl seems to show something > > # sysctl hw.snd > hw.snd.maxautovchans: 16 > hw.snd.default_unit: -1 > hw.snd.version: 2009061500/aarch64 > hw.snd.default_auto: -1 > hw.snd.verbose: 1 > 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 > > TIA, Hi, A patch is available which fixes this. I tested it myself. https://lists.freebsd.org/archives/freebsd-arm/2022-February/000949.html I have no idea why this hasn't made it into the source tree yet. You can cc the original author of the patch if you want to get in contact. Regards, Ronald.