diff mbox

topology: ABI: Increase SND_SOC_TPLG_NUM_TEXTS to 32

Message ID 1532082427-4912-2-git-send-email-puneethx.prabhu@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Puneeth Prabhu July 20, 2018, 10:27 a.m. UTC
Topology supports upto 32 configs for a path whereas
alsatplg can parse a maximum of 16 configs of a path
from the topology conf file.
So, increase SND_SOC_TPLG_NUM_TEXTS to 32 to support
parsing upto 32 configs of a path.

Signed-off-by: Puneeth Prabhu <puneethx.prabhu@intel.com>
Signed-off-by: Pardha Saradhi K <pardha.saradhi.kesapragada@intel.com>
---
 include/sound/asoc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown July 20, 2018, 12:39 p.m. UTC | #1
On Fri, Jul 20, 2018 at 03:57:07PM +0530, Puneeth Prabhu wrote:

> index bb8aec7..eb61483 100644
> --- a/include/sound/asoc.h
> +++ b/include/sound/asoc.h
> @@ -84,7 +84,7 @@
>  #define SND_SOC_TPLG_MAGIC		0x41536F43 /* ASoC */
>  
>  /* string sizes */
> -#define SND_SOC_TPLG_NUM_TEXTS		16
> +#define SND_SOC_TPLG_NUM_TEXTS		32
>  
>  /* ABI version */
>  #define SND_SOC_TPLG_ABI_VERSION	0x5	/* current version */

Hrm, we should be getting rid of the duplication here - include the UAPI
header in sound/asoc.h rather than duplicating definitions between the
two.  Otherwise someone might modify something in sound/asoc.h and not
realize that the UAPI is affected.
diff mbox

Patch

diff --git a/include/sound/asoc.h b/include/sound/asoc.h
index bb8aec7..eb61483 100644
--- a/include/sound/asoc.h
+++ b/include/sound/asoc.h
@@ -84,7 +84,7 @@ 
 #define SND_SOC_TPLG_MAGIC		0x41536F43 /* ASoC */
 
 /* string sizes */
-#define SND_SOC_TPLG_NUM_TEXTS		16
+#define SND_SOC_TPLG_NUM_TEXTS		32
 
 /* ABI version */
 #define SND_SOC_TPLG_ABI_VERSION	0x5	/* current version */