Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp399136pxb; Tue, 3 Nov 2020 02:33:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlfN9VmhxpAwH8LaPOKjnqnLVOnxg1QqU4Qs+rUl2C9tTkhhjpP3te/bDSexyhF/wEUTl7 X-Received: by 2002:a17:906:1a11:: with SMTP id i17mr18960657ejf.381.1604399584656; Tue, 03 Nov 2020 02:33:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604399584; cv=none; d=google.com; s=arc-20160816; b=IIh3BuYJ8RlQYtcupyJBYhXTVMhbWuOkWkKkdZqqJ26+y0HXBVXULSwm+mSClVHXVD b+gm01hjF2/ck26I6rZmkdBubfDTPPImkBlO6o1pPqf30R0zovWW+pxVPGe1ROJrQsg4 TH+0dVrjoMtacetjK3KLSdftxvPKs9aISikjweCWEjO1kRuBhyVy4/snjWWems1+sb+3 uM02uqN/26Oh8xlje1JXOfHKWUEMCgop9pNd4WUHXCsCn0w6smqpZMtBIi6WszBu2hPN hOASv+RGu17CqIc4KDXZHGswEQbZw1KK0G/csWa2bfbdAibc9SA6wze9AP3pSE+3CYfb Cffg== 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=RwCtdM6b4YnLjvtF8V5rJbVv42DObRc22ofZtbywkoY=; b=IkIOcctkbSOakK72/JYkuv4P4mFLH56rJzmpk0+VNY/MwIF08SmHnNAXp1KeA0Kdb2 PmniSCuSBJNSDPTSZpA/o0W6bUXS8WeMPRcoPw7z/D6YHopqXkn6mDpmeK2ui1um2tBE 1oJCib2i5BK/L9UWy4p5At9LmK1AB4/R2h3QkqMo+KhfrLCxljQoSUMjBpCsoIcWNSH/ SDGcd6z8340GQWKU3fFe0M9HN5fnhjNTe7bm0y3/vdPOsUzPP8gxHWQajzP7TbJmHK95 EBxN851dbKdi37tvIlyzfJpMtZtEWduTRCKuc2ceyj2GKRz/hn8qzTklM9RJ9H9cOt/X qWYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UQZvAR/U"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qt2si12522082ejb.653.2020.11.03.02.32.41; Tue, 03 Nov 2020 02:33:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="UQZvAR/U"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728056AbgKCKbT (ORCPT + 99 others); Tue, 3 Nov 2020 05:31:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbgKCKbS (ORCPT ); Tue, 3 Nov 2020 05:31:18 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B7E5C0613D1; Tue, 3 Nov 2020 02:31:17 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id t14so13360674pgg.1; Tue, 03 Nov 2020 02:31:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RwCtdM6b4YnLjvtF8V5rJbVv42DObRc22ofZtbywkoY=; b=UQZvAR/UeA2aq5TkvBMNg5oIDgOrWLrClw42qxh46HFMKXlIpXT3ncoh/MumsJYKvU FgzwtrDYJlyU2fOZjkh/DlO4gUFtIZlHDt76cAdycCpF4q4QiZCUC0uT3K0ENeQan4wZ 3lIazIqT09oR/tjrddyUtqirSs5lvwJ8u8pEqP/hv27dtjZFgACeWpdVSxFNDt6eUYNc aBrwYjHWCIsof63x9EU9Q89UIwGGyFCfAejGYIPJQS/XDbniwLgozK0s9NUZjUtaVQx/ cUsdbrpsBJoey+4Z+wrz6bDNNU1B049jWI7C/7MML6J8Wn3yo/vY/P0UyA3EgaAW5Y+4 3P/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=RwCtdM6b4YnLjvtF8V5rJbVv42DObRc22ofZtbywkoY=; b=Dbx/S5VRMljciTw3ejmv7n8+T9OinRRm/ccyHi6O2BmjOY/vF78eBAhzP0+rV3hgTp c/DKnnSxgv0BVhrMTB4/75GIkCMsrgSzO5YGckWGNVSoHyh2wPeuUmejZOkfue1zD5EX O5tK2TnBwVzEubcI1DvXH3YmlKig5PLYWLKD5IUBETCAoeP+1TmcbHzkAR2j95jSoTE3 +DIbbc+ixYx+7Y8Cw/YkPqTH5Q4olIW7UGWPpNFDfDnW8uJa+tqxFk3DrNfZZOQ3e4vl TxUw6rkZw9BRap4jGp/rr6b4XcF7ExW63lBn4fIyUquG3OEnT+t9yGR4ft0nEu7twT2i /yzQ== X-Gm-Message-State: AOAM5311LOCnt6++mGsiIfywf9mv3tN9s+IruX4hXzq5Zoui3L1JAouz 8GPstyucaZusrGc+u7SIh2XrDw7nSYEuKw== X-Received: by 2002:a17:90a:7e0a:: with SMTP id i10mr3144330pjl.89.1604399476622; Tue, 03 Nov 2020 02:31:16 -0800 (PST) Received: from localhost (114-34-18-97.HINET-IP.hinet.net. [114.34.18.97]) by smtp.gmail.com with ESMTPSA id 6sm9777051pfh.112.2020.11.03.02.31.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 02:31:16 -0800 (PST) From: Ajye Huang X-Google-Original-From: Ajye Huang To: linux-kernel@vger.kernel.org Cc: Mark Brown , Rohit kumar , Banajit Goswami , Patrick Lai , Srinivasa Rao Mandadapu , srinivas.kandagatla@linaro.org, Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , cychiang@chromium.org, tzungbi@chromium.org, dianders@chromium.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Ajye Huang Subject: [PATCH v5 0/2] Modify documentation and machine driver for SC7180 sound card Date: Tue, 3 Nov 2020 18:30:49 +0800 Message-Id: <20201103103051.34553-1-ajye_huang@compal.corp-partner.google.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Note: - The patch is made by the collaboration of Ajye Huang Cheng-Yi Chiang v5: - Machine driver: - Fix a format string warning (Reported-by: kernel test robot ). detailed info at https://lore.kernel.org/patchwork/patch/1331087/ v4: - Machine driver: Addressed suggestions from Tzung-Bi. - Remove redundant judgments in dmic_set() and dmic_get(). - Remove 1 level indent of judgment of IS_ERR(data->dmic_sel). v3: - Machine driver: Addressed suggestions from Tzung-Bi. - move variables "dmic_switch" and "dmic_sel" into struct sc7180_snd_data. - Remove redundant judgments in dmic_set(). v2: - Documentation: Modify the dimc-gpios property description and examples. - Machine driver: - Remove "qcom,sc7180-sndcard-rt5682-m98357-2mic" compatible - See gpio property and use anadditional control. Thanks for the review! Ajye Huang (2): ASoC: google: dt-bindings: modify machine bindings for two MICs case ASoC: qcom: sc7180: Modify machine driver for 2mic .../bindings/sound/google,sc7180-trogdor.yaml | 58 ++++++++++++++++++ sound/soc/qcom/sc7180.c | 61 +++++++++++++++++++ 2 files changed, 119 insertions(+) -- 2.25.1