mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Cássio Gabriel" <cassiogabrielcontato@gmail.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Takashi Iwai <tiwai@suse.com>,
	Thierry Reding <thierry.reding@kernel.org>,
	Jonathan Hunter <jonathanh@nvidia.com>,
	Jaroslav Kysela <perex@perex.cz>,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-tegra@vger.kernel.org, notify@kernel.org
Subject: Re: [PATCH RFC 0/4] ALSA: Consolidate CEA channel allocation data
Date: Fri, 12 Jun 2026 08:44:34 -0300	[thread overview]
Message-ID: <b92f04fd-3e28-4ce1-b6c3-b371f4cbc648@gmail.com> (raw)
In-Reply-To: <87ldcki0k3.wl-tiwai@suse.de>


[-- Attachment #1.1: Type: text/plain, Size: 1721 bytes --]

Hi, Iwai-san

On 6/12/26 06:13, Takashi Iwai wrote:
> On Fri, 12 Jun 2026 06:53:22 +0200,
> Cássio Gabriel wrote:
>>
>> HDA HDMI and Intel HDMI LPE maintain separate copies of the ordered
>> CEA-861 channel allocation descriptors, ELD speaker expansion, and
>> allocation selection logic. The Intel implementation originated from
>> the HDA code, but the copies now differ in supported allocation ranges
>> and fallback behavior.
>>
>> Move the common data and transformations alongside the PCM DRM ELD
>> helpers, then migrate both users while preserving their established
>> behavior. HDA retains the complete CA range and channel-count fallback.
>> Intel HDMI LPE retains its CA 0x1f limit, ELD speaker bits 0 through 6,
>> and lack of fallback for incompatible ELD data.
>>
>> The descriptors and their derived channel counts and speaker masks
>> become compile-time constants. This removes duplicated mutable
>> initialization and provides one authoritative allocation table without
>> changing the existing allocation-selection policy.
>>
>> No hardware was available to test this patch series.
>>
>> Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
>> ---
>> Cássio Gabriel (4):
>>       ALSA: pcm: Add common CEA channel allocation helpers
>>       ALSA: hda: Make CEA channel allocation interfaces const
>>       ALSA: hda: Use common CEA channel allocations
>>       ALSA: x86: Use common CEA channel allocations
> 
> This looks like a nice cleanup.  There is similar code in
> sound/soc/codecs/hdmi-codec.c, too.  Can we integrate it further in
> future?

Yes, absolutely, and thanks for pointing that file.
I'll work on that.

-- 
Thanks,
Cássio


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

      reply	other threads:[~2026-06-12 11:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-12  4:53 Cássio Gabriel
2026-06-12  4:53 ` [PATCH RFC 1/4] ALSA: pcm: Add common CEA channel allocation helpers Cássio Gabriel
2026-06-12  4:53 ` [PATCH RFC 2/4] ALSA: hda: Make CEA channel allocation interfaces const Cássio Gabriel
2026-06-12  4:53 ` [PATCH RFC 3/4] ALSA: hda: Use common CEA channel allocations Cássio Gabriel
2026-06-12  4:53 ` [PATCH RFC 4/4] ALSA: x86: " Cássio Gabriel
2026-06-12  9:13 ` [PATCH RFC 0/4] ALSA: Consolidate CEA channel allocation data Takashi Iwai
2026-06-12 11:44   ` Cássio Gabriel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b92f04fd-3e28-4ce1-b6c3-b371f4cbc648@gmail.com \
    --to=cassiogabrielcontato@gmail.com \
    --cc=jonathanh@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=notify@kernel.org \
    --cc=perex@perex.cz \
    --cc=thierry.reding@kernel.org \
    --cc=tiwai@suse.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®