From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C07A5EB64DC for ; Sun, 25 Jun 2023 08:34:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231836AbjFYIe1 (ORCPT ); Sun, 25 Jun 2023 04:34:27 -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 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