Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8853873rwd; Tue, 20 Jun 2023 23:00:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bkrl2vRPkOa+b9f+OzcVn8DM4Bi88nXSs5cMYr44R+x+5mb1WvV/3C88Vn+bNnkT1yZ/n X-Received: by 2002:a05:6a00:2e10:b0:666:ae6b:c476 with SMTP id fc16-20020a056a002e1000b00666ae6bc476mr14838619pfb.25.1687327241744; Tue, 20 Jun 2023 23:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687327241; cv=none; d=google.com; s=arc-20160816; b=HkFradvW+CE7NKc82Vp3BWEDa/HmB7aQciv+h2/96r1PYhk+UATYLxt1R157v2brgh hzGDXe6VMfpuwumrsT91SQKausmyjB8iPdjIFYk6bbTxmQz37CL3gh+VRO3u0HDq37m3 Vv+q+AzUT0lA37/RPGiF6gD1jkBUjsaAZfH0LD5Np6FSRwVMpeWe3Hgc7W88H/IvyRxb WhDojy2zv2oA8kLIJ45mkrELFxeOo/UhIdI0op6qr0w8GmL01CLxQ4uQG0l//LH57Wba ZvVinYwCj0R63jhjqUcos5p/k9md3s4Y7x2sTNjFXnuYQhtbk/rQwRtjd40GRpTkp6Ms uDuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=9zyM/doTEDKZbW/dtNnMrjF7ydlOovCExA/UYr2bJ+0=; b=ItLPNjUDNQnRzAUOqWGITpvCiW9e1dwXNEdHksNmoa72UjRj4lzxR7PVLSnmXR/voz tXLl6EkNzOmJefCFPSTTJmSCcnmY204ww8c9RYuwNJprLkYLhdPRDIFmxGW8Kme4WhhU 0TpQmIRf+iMS3Yi27UBpO3Mcpo2MCtQs1nPYMWeT3cvgEoqtodk49JFEafsdmS8q9gFh FOqbVYIO96+lkJ1y+T5QBNvqODY5AcBLZ+z5+I2IsqKru1GhExJfBJS5Wi5KsbFTFgM/ mgBkTlsL40Yxhzebwg82JabQlftA6TBOj4KUMC0m9hOa13HIUBj+nDaLbL6/Gj9+3fHY 6X3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Lp+Qoq8e; dkim=neutral (no key) header.i=@suse.de header.b=Q+wYsoJI; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r16-20020aa79630000000b0066871180d63si3330701pfg.302.2023.06.20.23.00.29; Tue, 20 Jun 2023 23:00:41 -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=@suse.de header.s=susede2_rsa header.b=Lp+Qoq8e; dkim=neutral (no key) header.i=@suse.de header.b=Q+wYsoJI; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbjFUF3U (ORCPT + 99 others); Wed, 21 Jun 2023 01:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjFUF3Q (ORCPT ); Wed, 21 Jun 2023 01:29:16 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52DBB10E6; Tue, 20 Jun 2023 22:28:52 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id DD923218E5; Wed, 21 Jun 2023 05:28:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1687325330; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9zyM/doTEDKZbW/dtNnMrjF7ydlOovCExA/UYr2bJ+0=; b=Lp+Qoq8eyyndQfFSN9kaO8Abre31ZhmMpXWbLBRwl1RDQWIHJD3J9pQI++6J5b6C2/1ctI 6uMXPPyXP+aS0zZfe2sIyvS1G620BKIfHCbqBg6/lyAvuRE6XRaGOIX0PthCj5wuUNvq45 Nizga2fEtAMDky8xxkXl/sa/QdPQvCk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1687325330; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9zyM/doTEDKZbW/dtNnMrjF7ydlOovCExA/UYr2bJ+0=; b=Q+wYsoJI83FpAhoaIUZGWs44NbUYF+3a3vUdGm/+p83vibkSeAf4xIEWK+Akp+CZH7uJLz bmh6+Z9x67TcSTAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9CD4813A20; Wed, 21 Jun 2023 05:28:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id oUwYJZKKkmTJCQAAMHmgww (envelope-from ); Wed, 21 Jun 2023 05:28:50 +0000 Date: Wed, 21 Jun 2023 07:28:50 +0200 Message-ID: <87v8fhqt7x.wl-tiwai@suse.de> From: Takashi Iwai To: Srinivas Kandagatla Cc: vkoul@kernel.org, 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 In-Reply-To: <20230619092805.21649-1-srinivas.kandagatla@linaro.org> References: <20230619092805.21649-1-srinivas.kandagatla@linaro.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Mon, 19 Jun 2023 11:28:05 +0200, 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. > > Signed-off-by: Srinivas Kandagatla > --- > Changes since v2: > simplified the logic to allow set_params and udated the documentation accordingly Applied now. Thanks. Takashi