Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14662961rwd; Sun, 25 Jun 2023 01:53:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5SgHJr3aeSavfJza2HkXLY52x7f1mWcFSWZ4QK0/rXaTIsUJ+JjdHyS+j/AeXt0NSCI75w X-Received: by 2002:a17:903:1205:b0:1b5:4859:ef36 with SMTP id l5-20020a170903120500b001b54859ef36mr1628165plh.57.1687683214494; Sun, 25 Jun 2023 01:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687683214; cv=none; d=google.com; s=arc-20160816; b=IRfCa0ZZJ0ZQbn1Pg1Vt+tyUkFN6Bi3KQ3IGVwgcR2X7+0gtYcKXWCq8Zyj2QoHzsS 8GD0x4JtCnmdrh2elHUC7vTCL2pNm229B3MBRB5Yx6nRZH5NGox7Gg00Gm0VoD+q/lps opssNUL5RawdUjKauARSXLn513KS+ZjBBn8v+Y9ffzBd7/H1yf+/JArudK24a5T2d8+M 7jBDzWYLNn8C13GVouV/okjMPWGSZlByCEcU6XGD0S2mqOnVpcXh/vpILEUzafPPmTlK 8jrzaL88sdW5A8zSj8ib36cCUZcHwhsUzRLe5MbA/lTjoM3IkFyhOPBlBy5KB4Xf4DqD xz4w== 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=lk4lEG3wUadjpgO/1kn596bQxR6ykihOV60vyW220OY=; fh=cVD1FrhAgnvD+QM2Ii3EbR1rgDEfH8A2jfUE13h8gl4=; b=Hq2J8zZDZVdzyw0llc8P13Sal9OchuvV4DkDNVCIt7TaWHHyUycA+KLTXLo2iCDwVe Ws0aokOB4YflMe+/pVaGoBlP9yx/ir/9w+Ru4aKYsVOYlvVoWG+0YRV+83Fk8JCBCDuq 9BMUKFxI8cPj2p0iUblCJNtsfEXaxYW4nhs+JB3cOrcf09wdLLCngTaziCn9H1S3Cyu5 6w0uyb1sSzbWlcHuJn/qXMJZ/Rc9aFyXp3H+oBa7hmf0ksGVhqrVfBKS/0l2GuBgiyI+ ygzYDVlCYOUiMyvd1dej0Dd3LM7L12yW8Dn741u7F6JnR9yaUqOrTcKAf/bcGVdkq6h9 TvCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IiM+GAdc; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=jqZlAibA; 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 z5-20020a170902708500b001ac5896c746si2653065plk.329.2023.06.25.01.53.23; Sun, 25 Jun 2023 01:53:34 -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=IiM+GAdc; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=jqZlAibA; 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 S231640AbjFYIeZ (ORCPT + 99 others); Sun, 25 Jun 2023 04:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231583AbjFYIeW (ORCPT ); Sun, 25 Jun 2023 04:34:22 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9EEDEE for ; Sun, 25 Jun 2023 01:34:21 -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-out2.suse.de (Postfix) with ESMTPS id 13CFF1F891; Sun, 25 Jun 2023 08:34:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1687682060; 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=lk4lEG3wUadjpgO/1kn596bQxR6ykihOV60vyW220OY=; b=IiM+GAdcpfR1CjNdneLCdGwrWzrbGwaHcE00iprdjkQKg4L1sHai/WIlEkahBp3e4U1ps7 oaL22TuCUdyWN/Ndmlbm81GAqxqAkLcq0ByBq/LNpnTQJ1WUe9exwo7jzLUFaEKhT/yab6 oF8Cg2nbDi3ov/4C0za8iEvNta5ZdzM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1687682060; 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=lk4lEG3wUadjpgO/1kn596bQxR6ykihOV60vyW220OY=; b=jqZlAibA329fR8i9bwl5PQ/JS8MiyZP0BHSbNSDDYHR8V3cP1e4eA8Pia/xxQcsEhXi5tP EyecItxqv/GBZaAQ== 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 D39CD13462; Sun, 25 Jun 2023 08:34:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 2oSvMgv8l2RrIgAAMHmgww (envelope-from ); Sun, 25 Jun 2023 08:34:19 +0000 Date: Sun, 25 Jun 2023 10:34:19 +0200 Message-ID: <87o7l4vt2s.wl-tiwai@suse.de> From: Takashi Iwai To: Matthias Reichl Cc: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Dom Cobley , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ASoC: hdmi-codec: fix channel info for compressed formats In-Reply-To: <20230624165232.5751-1-hias@horus.com> References: <20230624165232.5751-1-hias@horus.com> 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 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 Sat, 24 Jun 2023 18:52:32 +0200, Matthias Reichl wrote: > > According to CTA 861 the channel/speaker allocation info in the > audio infoframe only applies to uncompressed (PCM) audio streams. > > The channel count info should indicate the number of channels > in the transmitted audio, which usually won't match the number of > channels used to transmit the compressed bitstream. > > Some devices (eg some Sony TVs) will refuse to decode compressed > audio if these values are not set correctly. > > To fix this we can simply set the channel count to 0 (which means > "refer to stream header") and set the channel/speaker allocation to 0 > as well (which would mean stereo FL/FR for PCM, a safe value all sinks > will support) when transmitting compressed audio. > > Signed-off-by: Matthias Reichl Thanks, applied now. Takashi