Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp585223rwb; Tue, 25 Jul 2023 22:32:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlHpxoQglXbblQNevfh2W7lSus2IleP5a4EFA1HykO1A2ddp0lL4sm3F4bMtF3XntngFLg5J X-Received: by 2002:a17:902:ea06:b0:1b8:a67f:1c0f with SMTP id s6-20020a170902ea0600b001b8a67f1c0fmr1075116plg.39.1690349519840; Tue, 25 Jul 2023 22:31:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690349519; cv=none; d=google.com; s=arc-20160816; b=pUE0+BMEDXz3LQVdRYQ7YIbafI0QLSGl6ed+H5atXg14gvUX0KTVah18dsz1iB1pNQ vEEDFK4gYzUXJ69RYtxrMRY6y0d7eFjvCjMdOEoaJ6ALERsEbaie67gNbZIxRJcAHgkL 4mY1Qhd7r9ZLRUwdZtxQ0UtrstbSZ3m1r90AqBxauGmvopLP4BSiubyHjzXZaDeII/Jh ikg+QB6+zdRjP+eh610cCl1U2b+J3Z2wPLNMyLnRcLrBSHOku02SE8EtbaFIj5ilfWA4 kLV1twG0BHsrPPEmpDHSlNuRlNEruc4tUYdkKobvUWUdIU9/B9FVWEIu94KbMVoK0X7G 66Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=evyHQAPRpXDS9sBZSzj4rTD4vLR62V5i18xBovfpYqU=; fh=zLFCbhamVECcPqkKOrA0fl151OaNHhzQRAUjXCxvyCc=; b=n3sCd0nYhL7hiNonQPGxbyhAD9jtErdOX5Be9oMEnSlSr18g2E5Ur442BUL9OvSMBi ROA6VErvN4UeFvRymnYE/a8eDlT2EzCFaqaE9r6GHiuDmpBxMyYQFbvTzSHxGKNIyjMB NrPz7n79cmBxsHtks++XF+hwxUXYjwJQoLMF5YrtXjwHGMjSk8OU0wvnN5F8dGceCYoO 21MkwZ4oXQOnY22fDKFYq5PqhZWROn2mQlybMvZEOjhWnNvlnTB8rmD0v057a3xvJvei lSMMJUqyljcZOHD4M2ZeZATR6z4tAJGtiBXNBfq1maYFvHs36+Qz0lg8sROipOxVlWkx ydUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cxwcE7Of; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h17-20020a170902f55100b001bba894ac4asi5511205plf.274.2023.07.25.22.31.47; Tue, 25 Jul 2023 22:31:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cxwcE7Of; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231166AbjGZEzq (ORCPT + 99 others); Wed, 26 Jul 2023 00:55:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjGZEzm (ORCPT ); Wed, 26 Jul 2023 00:55:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8227019AD for ; Tue, 25 Jul 2023 21:55:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 202E36145A for ; Wed, 26 Jul 2023 04:55:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC2E3C433C7; Wed, 26 Jul 2023 04:55:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690347339; bh=jOeF8cppzlPBCIFSmBztXHTHPsxcIlXUKSUY753sPaU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cxwcE7OfXPa1gb3qMiUZj/lC1U5j/C1r691UiAJQVkcVVAudxFcwtAGx8Wu2AcBnB 8lw24oou0sqv8AzGPDJFOusy7EgHHBLa0o5YKEMRCYKB89vjV3tpZvC17ICy6u/8X6 wk9O06Fvrp3aj5VQ4wyFnph/ve5zGaqkPJNX5ABraRKfX98byGF+KGkHOPeLYldO83 LJguFqCyv0CZWxH63HcSnPxUnB+xQo2/ZUImevvR5gtdveNs84BRWD/GnRadRWkB03 xjDYrOn/ZU721oOo2Pfgdaa1cWGeddodXaPNYVMwVN/JG2S9oD+Y1Nz2p6/u6fUTNP VKL7rm/ov1IpQ== Date: Wed, 26 Jul 2023 10:25:35 +0530 From: Vinod Koul To: Robert Lee Cc: Takashi Iwai , perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: compress: add opus codec define Message-ID: References: <20230725093005.3499455-1-lerobert@google.com> <87sf9ctifg.wl-tiwai@suse.de> <87lef4thir.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26-07-23, 09:47, Robert Lee wrote: Please stop top posting! > Yes, but we still need this change to let the sound system can use the > codec. or do you have any suggestions? Upstream your driver along with this change should be the way to go > > Thanks, > Robert. > > Takashi Iwai 於 2023年7月25日 週二 下午6:25寫道: > > > > On Tue, 25 Jul 2023 12:14:56 +0200, > > Robert Lee wrote: > > > > > > Thanks for reply so quickly. > > > And yes, there are other changes but it is inside our offload pcm > > > driver to handle it. > > > Currently we only use it to decode, and we don't need additional option for it. > > > > It means still a downstream-only change :) > > > > It's nice to upstream changes in general, but from the upstream POV, > > only changing this gives no benefit. Let's tie with the actual use > > case *in the upstream*. > > > > > > thanks, > > > > Takashi > > > > > > > > Thanks, > > > Robert. > > > > > > Takashi Iwai 於 2023年7月25日 週二 下午6:05寫道: > > > > > > > > On Tue, 25 Jul 2023 11:30:05 +0200, > > > > Robert Lee wrote: > > > > > > > > > > Add to support decode Opus codec in Ogg container. > > > > > > > > > > Signed-off-by: Robert Lee > > > > > > > > The change makes sense only when it's really used. So usually it's > > > > better to put into a series that actually implements its usage. > > > > > > > > > > > > thanks, > > > > > > > > Takashi > > > > > > > > > --- > > > > > include/uapi/sound/compress_params.h | 3 ++- > > > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > > > > > diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h > > > > > index ddc77322d571..bac5797bcb02 100644 > > > > > --- a/include/uapi/sound/compress_params.h > > > > > +++ b/include/uapi/sound/compress_params.h > > > > > @@ -43,7 +43,8 @@ > > > > > #define SND_AUDIOCODEC_BESPOKE ((__u32) 0x0000000E) > > > > > #define SND_AUDIOCODEC_ALAC ((__u32) 0x0000000F) > > > > > #define SND_AUDIOCODEC_APE ((__u32) 0x00000010) > > > > > -#define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_APE > > > > > +#define SND_AUDIOCODEC_OPUS ((__u32) 0x00000011) > > > > > +#define SND_AUDIOCODEC_MAX SND_AUDIOCODEC_OPUS > > > > > > > > > > /* > > > > > * Profile and modes are listed with bit masks. This allows for a > > > > > -- > > > > > 2.41.0.487.g6d72f3e995-goog > > > > > > > > -- ~Vinod