Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8870850rwd; Tue, 20 Jun 2023 23:16:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4N+xQ/Jrvc7Iy44sidyOw0KFCK6SSW604eMquUqRcjj5BzfhLMt5BdoLKHEDirD5b0m+ka X-Received: by 2002:a17:902:da89:b0:1b5:1b0f:521b with SMTP id j9-20020a170902da8900b001b51b0f521bmr21660731plx.6.1687328203542; Tue, 20 Jun 2023 23:16:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687328203; cv=none; d=google.com; s=arc-20160816; b=AQ5WocMbqrpSnB48Znw/KxpQqpO6WDiaP/ey93dS3YIWX7fXySsNQzeXpk297f7fPV hEsMdkK00Vl25upJUuExK/3hzYGNzJdCocBhMD/zHt0gn6DMp2NM7nvDlF8ujc8Uc2n6 Mmsa272fENhcxcecX5dvF1jw9N3zyLzpX1NpGWEgsrOhbyR5myrnnNd+b6bTUj+U8ZAJ W0VBa9z/663ibCikWwxf9gQkKOodFDUM1hJycSy84LMZU8hu/gwnSbI5OR8ta3RYqFoj R/w2YxwcRG2JaCb9Urhv9ZNT6kj3NPIr9QTX5xSg3YZMfu0x1cyyCkqq0jaIUNeYKbtZ vGGg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DsSJC7NUnF9V9hYQNPOLNxYzFzDslD4x936hiY5T5Y0=; b=qPVMyJcIgo5ArbQrI081W/dXkkoHoJjr1FUq9cqXWK3UTDVACGFIHVeaMO3S57XgbQ woVy+I2qcpZZVmiZUxSj4evJr7NF4RSTMtXhNwyTcskbAhl6n4ipfF7K4B8LKs0KTG5L AxdTgWd8ZjZ4XHRG1jj0dCz44o5eXlbA3LkFtaJx8gLHW2fwE15q+3GwG5LbUg+85vkg WmUPnR3cSFiM5bPngVeEf0nBVc1liiArsp3VlbclzDsqtO1YinQnHhdZty8tGpb9fTxB I86+phuflfOxiFRA+pxJ3TcWYw5eK0tIae3sALvnu9bMlB1sZpDpqT1zucIULWu56eGC KILg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HisZojYC; 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 j14-20020a170902da8e00b001b414fae35csi3822589plx.497.2023.06.20.23.16.29; Tue, 20 Jun 2023 23:16:43 -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=HisZojYC; 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 S229716AbjFUFX2 (ORCPT + 99 others); Wed, 21 Jun 2023 01:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjFUFXZ (ORCPT ); Wed, 21 Jun 2023 01:23:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7519810E6; Tue, 20 Jun 2023 22:23:24 -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) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0DAF161418; Wed, 21 Jun 2023 05:23:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 997B5C433C0; Wed, 21 Jun 2023 05:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687325003; bh=D+a2fIP+FvcRNUy0gwO96/Y9cbIf48GeaSC+CFwrUpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HisZojYCZBzljKy0VjOa+EoQ1/I7zC99q8ha39jZkpNiVLIZ/Gnu5bX2g7g+mnxzL lsya92qHek4tX0OagUd/qAOAFVEWfQK0/QZEWE7UzUHSnyMkrutYysrsu4LNrqw+CW IepQp421GjTNwMMbq7eNgM6XZbXC4P/k5kGrubUvvtvrUaN9QFTjBomATLpxwwJR6A JMN+UQ3dSlYBtmHIZQ7BogzhP0MpHXwE7dLPWXx9u0pN+OY28+Tq1KozNljJCn1MHT SH3OeXTYe+1zf83ICvzJT7Vs8dPCHeSdDS1DFIYwS43+F2vsbV/3O2gG7Q+58bCKYU WaDBsHlWj94VA== Date: Wed, 21 Jun 2023 10:53:18 +0530 From: Vinod Koul To: Srinivas Kandagatla Cc: broonie@kernel.org, tiwai@suse.com, corbet@lwn.net, alsa-devel@alsa-project.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, quic_plai@quicinc.com, quic_mohs@quicinc.com Subject: Re: [PATCH v3] ALSA: compress: allow setting codec params after next track Message-ID: References: <20230619092805.21649-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230619092805.21649-1-srinivas.kandagatla@linaro.org> 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 19-06-23, 10:28, Srinivas Kandagatla wrote: > For gapless playback it is possible that each track can have different > codec profile with same decoder, for example we have WMA album, > we may have different tracks as WMA v9, WMA v10 and so on > > Or if DSP's like QDSP have abililty to switch decoders on single stream > for each track, then this call could be used to set new codec parameters. > > Existing code does not allow to change this profile while doing gapless > playback. > > Reuse existing SNDRV_COMPRESS_SET_PARAMS to set this new track params along > some additional checks to enforce proper state machine. > > With this new changes now the user can call SNDRV_COMPRESS_SET_PARAMS > anytime after setting next track and additional check in write should > also ensure that params are set before writing new data. Acked-by: Vinod Koul -- ~Vinod