Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1163756rwr; Fri, 5 May 2023 09:59:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ZNJ+9cAiHSm038KqF830AIHq6ymknF+UmMvQZkP5PWy8i02RHzdq7aKbdTu71h2QDCxPq X-Received: by 2002:a05:6a00:10d3:b0:641:3ca2:1aec with SMTP id d19-20020a056a0010d300b006413ca21aecmr3032422pfu.27.1683305999398; Fri, 05 May 2023 09:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683305999; cv=none; d=google.com; s=arc-20160816; b=oG0mhjyPYFo7tXae22p9fw2d8VH7aTxJATyNB0sM3i28dekytUBFRva6V7yc9rogVk MycGMMNK9s3D7K+E+l1d9IclDJkoia7pLTQfL9EATj4/gCs6B6nyiMnQgu+bsPzmQVHj bSWx8IBRNLkNPHvCPeIxbpt/4o+rfFv5yDLuX5mKajjU67839NyG4u6X8ikO9rFyXWEQ vBMvjBiI+I0pyAMuhOk6E6mWh7siAo358ygAAZBhpl9LwHL77hyiqqrDwrtJ2DmKYlEz JoOJZ3VizJyXxZVgMVEAl+eADEa4TGsNAojYWRAzv8FC0HA41Br2ChJD89UnJSVIy3Sp VmUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=L3GpvKdXnUbv3/06jF20p2wjzRq6DzJPnthy2LMuYWA=; b=nFe3sEtIa9Jb1MCSow1Vfu3KUshYeBkt9UmFCL6MJYR5Dn65DHfiCQu91JndtD2EFa cTHRdIlFvsTyIiboAS1WGZB3yWhwbXNJL2rkgP7jQBiJcoqWWn8futWt611jVW5uD6vm F0LZxjuVDE/xQNv02oKvVauRQP8IpK8URMR2BwHXVxHHWxAOqaQERkAoGYWl6VtfkQTu sdM4jNbvIjbUsJGMkJK8JHgmV74kosj9bNpMbboH9e2JKNU5JrRX03b3Sl70aQSTYAwl val7N9ctLXkb+ybIfYigHfQMB8amMb0i5dTU9S06iRJXPtjGq1DxPNzXGEmYL3nmB3y1 WdlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4cFhQpe; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i132-20020a636d8a000000b00523eac95883si2430232pgc.320.2023.05.05.09.59.44; Fri, 05 May 2023 09:59:59 -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=@linaro.org header.s=google header.b=X4cFhQpe; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231754AbjEEQz3 (ORCPT + 99 others); Fri, 5 May 2023 12:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231222AbjEEQz2 (ORCPT ); Fri, 5 May 2023 12:55:28 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB19619427 for ; Fri, 5 May 2023 09:55:26 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-3f415a9015bso508715e9.2 for ; Fri, 05 May 2023 09:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683305725; x=1685897725; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=L3GpvKdXnUbv3/06jF20p2wjzRq6DzJPnthy2LMuYWA=; b=X4cFhQpexPgpiVzeKDoIVe1f5KH9FnPWl+bvlAJbfLZrhyLSpwgP/sU1IJ1i25x/YD C1vySuirB2jOIt0kNuzjHYK20WAhit8JcVgzBt4ZIjjjMDM++PnXb+5BClRWY608yImG hgCiP2UgDHpaN89G0zTTmnymOMZOuA9jap6sfndvqXHI5t7wwy0Fo9wXX3mpK7pvYeVk s5JwSSsK8R4APt/fcKnlnee51w5MRyQ4P6P7e5s9KD95q2VmV5GTvuUtlYAjK2jmc0Y1 jWaYn0HfhjOsxKFfE35gP9i2OZfGjW8stUxYp03FJc7EyS7Qfbz9/KU7LIAaeuBomF+/ QtmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683305725; x=1685897725; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=L3GpvKdXnUbv3/06jF20p2wjzRq6DzJPnthy2LMuYWA=; b=RFQpN5OrqWjJtZa9R5tqvBdg2jhmLwnIHuphHH7C34Pa/yTTmvq4vMzrkHEMHvPI6v Mgs9VZNYuPfz64u7NxbQ3KUI5lU40aUjVw7AyVnj91OeQ5Q0rQcBD/5VgeTvPYDF+ERG 4X0Pklf6Lsi1BSjFSK5YmVuzUbzW2tHCmCcdwHLTWFAWhl0oNVR6vpRMxnydwv5b1Ls0 5dR8EOcKuFCcQOPm0i6coIgcFTF+uUTyqPOEBcuTGr4LpjiOy8b+/sNVdqCea/90Xb64 dQj/IZrzrRg0lN4F/xbZZrwvuQzNAVMu+z/HxzJc10pwa/jYc6v63nSCxK1YzQbgjGyv BZIg== X-Gm-Message-State: AC+VfDxzrOoIIoXK/KnE4VuMu5illlqi+OA4rkCeM7BF4lJzVt+doc6N AvClmXNn9+dRwE6FcjNE+zLZ5A== X-Received: by 2002:adf:e9cc:0:b0:306:45c0:f070 with SMTP id l12-20020adfe9cc000000b0030645c0f070mr1675588wrn.39.1683305725414; Fri, 05 May 2023 09:55:25 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id x7-20020adfffc7000000b002c7066a6f77sm2923551wrs.31.2023.05.05.09.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 09:55:24 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, tiwai@suse.com Cc: perex@perex.cz, lgirdwood@gmail.com, ckeepax@opensource.cirrus.com, kuninori.morimoto.gx@renesas.com, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, Srinivas Kandagatla Subject: [PATCH 0/3] ASoC: hdmi-codec: add component name prefix to controls Date: Fri, 5 May 2023 17:55:11 +0100 Message-Id: <20230505165514.4666-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 While adding audio support to two instances of Display port on x13s, hdmi-codec failed to add controls as two codec instances were trying to add controls with same name. snd-sc8280xp sound: control 3:16:0:IEC958 Playback Mask:0 is already present snd-sc8280xp sound: control 3:16:0:Playback Channel Map:0 is already present hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_pcm_dai_new on i2s-hifi: -16 To fix this issue, I have added a new api snd_pcm_add_chmap_ctls_with_prefix() to allow to pass asoc component name prefix, which should provide a unique control names. We can also make snd_pcm_add_chmap_ctls() take prefix argument to do the same this. Srinivas Kandagatla (3): ALSA: pcm: add snd_pcm_add_chmap_ctls_with_prefix ASoC: hdmi-codec: use snd_pcm_add_chmap_ctls_with_prefix to add controls ASoC: hdmi-codec: use snd_soc_cnew to add controls include/sound/pcm.h | 7 +++++++ sound/core/pcm_lib.c | 30 ++++++++++++++++++++++++++++-- sound/soc/codecs/hdmi-codec.c | 10 ++++++---- 3 files changed, 41 insertions(+), 6 deletions(-) -- 2.21.0