Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2953231ioo; Sun, 29 May 2022 08:15:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgHEZ1vmBogh7y7NG4i6i+oExScSWg0nZxx/bjC/EX6Zork72Otd1gUed2aEO+2nV8hWel X-Received: by 2002:a05:6402:424b:b0:42b:3871:75fa with SMTP id g11-20020a056402424b00b0042b387175famr43308038edb.92.1653837358759; Sun, 29 May 2022 08:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653837358; cv=none; d=google.com; s=arc-20160816; b=hp+z8o8ovPslkb9tGo26k+XtIHoD+l8Y57MFidddNhwDFxQIZ7F8yClpVRZICoSz/g tL7Bedy9fse/FBubmqrYLmtTJs/EBrJLO1TdOxaH+dbs92Hxy5QzxzXW2/7zXCZ+qhmi XAcSXub68EfbyPhCyDIC/jk1EsSCAgdeDkfwzTMAT9fIEwJOg2JuAXtgvtYobNGGaQGD 2t5LcE0NraIceK1voHtJkH4ih5VIXIZOlrvPo88ZG0VJshcmoe3nJonch6F7nZIAmHkd y57xXdWJY3Gy/jZ+WwppcOThRd82s1TR5HFuVojvMDaCz+lA9wmEZXxq5ZfGWrmc8l7k 9g2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=TVvfrb426JQRLdfpmF2aegH10RqSqA1HLV5cXGROE2A=; b=Q4Gj3mILoNHI3Vz7pax3Bfzwbc80zviayBh98exf/I5scvL1VZWBZGsCYMaXp1q79Y CV2ZGQ8GEuLdhBQzh41YvlF7IIVEtL2pclIWZRjdmu8xPGSnWlBJwCtLbWBsERBz63OE 1t8xYRsD1iz2VPU9AFob/u3PAfIrIHFvh3/nZ+Y4/FTAcKhn65FnI53mfrH2VhpQdeVU TC14gPfLZPgNnvegSaooOvoi+rgSzcrn5W82wCvfdX28um1rIDW67JdDS9yIDaCHTE3R m8QE27q9UQh6w4KBlV4hgEO4HhFbNKGzRYCFT6rMOvK8ezL1d+Ctez+vyx8C3S420qvs Qc/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=IXtUxGuk; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a17090652c100b006f000860e56si5001531ejn.93.2022.05.29.08.15.20; Sun, 29 May 2022 08:15:58 -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=@quicinc.com header.s=qcdkim header.b=IXtUxGuk; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229759AbiE2Iui (ORCPT + 99 others); Sun, 29 May 2022 04:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbiE2Iuf (ORCPT ); Sun, 29 May 2022 04:50:35 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7E0F814A0 for ; Sun, 29 May 2022 01:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653814234; x=1685350234; h=from:to:cc:subject:date:message-id; bh=TVvfrb426JQRLdfpmF2aegH10RqSqA1HLV5cXGROE2A=; b=IXtUxGuk3EMg2Libs0EgQg96qj+o1eCUIJ+huMVq1w1lxSUtzeqTXzLu e4UL7by6XTTrpwZ1HQbEUIXo7uBlA4MK0YrBE+yT7CT/Zf6zX2S6DvlcI dBH3/GBDCR6utLbCnJm+ktqEpgpT2VkrkQJbYNBKvVbNUD/kfq7Dro+C+ Q=; Received: from ironmsg08-lv.qualcomm.com ([10.47.202.152]) by alexa-out.qualcomm.com with ESMTP; 29 May 2022 01:50:34 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg08-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 29 May 2022 01:50:33 -0700 X-QCInternal: smtphost Received: from hu-rbankapu-blr.qualcomm.com (HELO hu-ub18template-blr.qualcomm.com) ([10.131.39.233]) by ironmsg02-blr.qualcomm.com with ESMTP; 29 May 2022 14:20:22 +0530 Received: by hu-ub18template-blr.qualcomm.com (Postfix, from userid 4079802) id 40055800995; Sun, 29 May 2022 14:20:21 +0530 (+0530) From: Raghu Bankapur To: Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Raghu Bankapur , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: Krishna Jha Subject: [PATCH V0 0/1] asoc: msm: use hashtable to check kcontrol Date: Sun, 29 May 2022 14:20:08 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 use hashtabe instead of linear list to check kcontrol before adding them for improving early audio KPI. With this changes we see 600ms improvement in start of audio Raghu Bankapur (1): asoc: msm: use hashtable to check kcontrol include/sound/control.h | 4 ++ include/sound/core.h | 12 +++++- sound/core/control.c | 92 +++++++++++++++++++++++++++++++++-------- sound/core/init.c | 3 ++ sound/soc/Kconfig | 9 ++++ 5 files changed, 101 insertions(+), 19 deletions(-) -- 2.17.1