From nobody Tue Apr 18 18:56:47 2023 X-Original-To: freebsd-multimedia@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 4Q1Cp70qcHz45WZ9 for ; Tue, 18 Apr 2023 18:57:03 +0000 (UTC) (envelope-from tmarjeski@gmail.com) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 4Q1Cp45pWYz3mJk for ; Tue, 18 Apr 2023 18:57:00 +0000 (UTC) (envelope-from tmarjeski@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=GJ5n51eg; spf=pass (mx1.freebsd.org: domain of tmarjeski@gmail.com designates 2a00:1450:4864:20::430 as permitted sender) smtp.mailfrom=tmarjeski@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-2fa2fc747easo1306393f8f.2 for ; Tue, 18 Apr 2023 11:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681844218; x=1684436218; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=TzEA6xRfbVUZX44qyvjNe4Vm+Qw3f10q2kTfS1IuaG4=; b=GJ5n51egmjmyCd/zhth8RKmlLRg5NOozRWH5gQwUQ59Pyt6jKLP10BkUqCqITolzDi f9CPMoim4/oI7G1fsmT9LxuWAU1JOsaiVOjWgFQ55GWXUe036QeDpgbDF92RPgqtVCGl 6x5unum7CLKPBZiK7lZzw/IN0QAEBp0MTzJqUlFFPUzCDvs9Gmo4ld6l36D1CybzFMIS 86FNQp46P/Kw2IGEOd/D2eJo+Gl43LcLfwCTtF8zcJTa//LS9FG0s59Rc3ArOpjJHnb1 bvIez2Nj+btSrsdT1ob7cljp1hcZsEpOzjLYW6e1jegwRJ1MpfPv/6vox3Mzlpmd8qo+ 8cHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681844218; x=1684436218; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TzEA6xRfbVUZX44qyvjNe4Vm+Qw3f10q2kTfS1IuaG4=; b=FFYScbIRvo1TN8dpjU64iFh5m6If1I7SGqmMYL6lfQIBRsVIAWrsFr2Gry2lQclHBi 4fs47uWUGqZawj7M80yN7eW/qzHAqjLGkUw4Env1bJ/FMRxLDMY/5DAyb0wADqdaOkeB R8bAGnohmaaExsQOZYcuqoUqWo33iEayno7+vN8tlPJjxDD5L7ED/SDhMoFIeXMgAWq0 GQXalDTyGC49Ohzy7zSUX5EfNu5hB8tluFOFJdPXc9u7ZWQ7r14+kgZ+460Aw2MtPHkW f9QXOpOcDUvD2fhgWS03GzAzA44w8UjhR3kSIWFWomXm38QkswSoYNdUU2ISbl9CZc4u GnaA== X-Gm-Message-State: AAQBX9cY2EPmOG6f/kGYRJGlATVAUzR/H3d/3KfgPtghP44GOAwxCjR6 lDe1c0+V69x+3AuDN6e+LtsHdKgH+bkYHKfzbdAuHjVIFzI= X-Google-Smtp-Source: AKy350bCaKa/bdMqsyiEKaWbhbxm9QufKdUbvt421va9pucillKfqekeL5BDdWjvluDqWPmrE3ygmtQ5kfS3YatQ2H4= X-Received: by 2002:adf:f08f:0:b0:2fb:d02:fa98 with SMTP id n15-20020adff08f000000b002fb0d02fa98mr2898425wro.12.1681844218575; Tue, 18 Apr 2023 11:56:58 -0700 (PDT) List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 From: Trevor Arjeski Date: Tue, 18 Apr 2023 21:56:47 +0300 Message-ID: Subject: Possibility of remapping USB PCM device To: freebsd-multimedia@freebsd.org Content-Type: multipart/alternative; boundary="0000000000003758c105f9a0dfdc" X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::430:from]; MLMMJ_DEST(0.00)[freebsd-multimedia@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-multimedia@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4Q1Cp45pWYz3mJk X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N --0000000000003758c105f9a0dfdc Content-Type: text/plain; charset="UTF-8" Hi all, I am new to FreeBSD and I am in the midst of setting up things the way I like them on my desktop. I have a strange USB headset that requires a special configuration on linux - pulseaudio includes this configuration, and I was wondering if there is a possibility it can be done in FreeBSD. Below is a description of the device from the pulseaudio source code from this commit https://github.com/pulseaudio/pulseaudio/commit/814419cc3d788acb9113a3d62c373deb1a911e75 | Steelseries Arctis 7 USB headset mono output path. The headset has two | output devices. The first one is mono, meant for voice audio, and the | second one is stereo, meant for everything else. The purpose of this | unusual design is to provide separate volume controls for voice and | other audio, which can be useful in gaming. | This path doesn't provide hardware volume control, because the stereo | output is controlled by the PCM element with index 1, and currently | PulseAudio only supports elements with index 0. The last sentence is what I am trying to achieve, somehow, so that I can control the volume. I have already gone through all the sysctl's on the two pcm devices, and messed with all the available mixer settings. My assumption is that FreeBSD is doing what Linux was doing before the pulseaudio patch - not allowing "index 1" - whatever that means. Any information is welcome. I would even be interested in patching some of the driver code for my own learning (doesn't need to go upstream). I am running CURRENT and can rebuild the system and kernel. Thanks. --0000000000003758c105f9a0dfdc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,
I am new to FreeBSD and I am in the= midst of setting up things the way I like them on my desktop. I have a str= ange USB headset that requires a special configuration on linux - pulseaudi= o includes this configuration, and I was wondering if there is a possibilit= y it can be done in FreeBSD.

Below is a descriptio= n of the device from the pulseaudio source code from this commit https://github.com/pulseaudio/pulseaudio/commit/814419cc3d7= 88acb9113a3d62c373deb1a911e75

| Steelseries Ar= ctis 7 USB headset mono output path. The headset has two
| output device= s. The first one is mono, meant for voice audio, and the
| second one is= stereo, meant for everything else. The purpose of this
| unusual design= is to provide separate volume controls for voice and
| other audio, whi= ch can be useful in gaming.
| This path doesn't provide hardw= are volume control, because the stereo
| output is controlled by the PCM= element with index 1, and currently
| PulseAudio only supports elements= with index 0.

The last sentence is what I am tryi= ng to achieve, somehow, so that I can control the volume.
I have already gone through all the sysctl's on the two pcm devi= ces, and messed with all the available mixer settings. My assumption is tha= t FreeBSD is doing what Linux was doing before the pulseaudio patch - not a= llowing "index 1" - whatever that means.

<= div>Any information is welcome. I would even be interested in patching some= of the driver code for my own learning (doesn't need to go upstream). = I am running CURRENT and can rebuild the system and kernel.

<= /div>
Thanks.
--0000000000003758c105f9a0dfdc--