Re: [PATCH v2 01/24] ASoC: soc-core: always allocate default ch_maps
From: Kuninori Morimoto
Date: Sun Nov 29 2026 - 23:31:25 EST
Hi Srinivas
> The default ch_maps come from three file-scope static tables of twelve
> entries each, and links wider than twelve DAIs are rejected up front.
> The cap is arbitrary -- the tables encode "cpu = i" or "codec = i",
> information soc-core can synthesize at bind time for any link width.
>
> Replace the static tables with a devm allocation on card->dev sized
> to the link, and drop the MAX_DEFAULT_CH_MAP_SIZE check.
Hmm... do we need to alloc ch_maps for each links ?
Except N:M connections, the pattern is same.
We can share the same maps.
Current size of MAX_DEFAULT_CH_MAP_SIZE (= 12 current) is no meaning,
just a temporary placement that I have thought enough size.
If you need to have more size, please update it.
Thank you for your help !!
Best regards
---
Kuninori Morimoto