Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3094242pxk; Mon, 7 Sep 2020 03:03:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqfCta9F3zK3dGe5b+iNOz41EUivcOuD6Th951MqVJgolIlXEb7aSmCWMDCQBpiQvFkYbh X-Received: by 2002:a05:6402:393:: with SMTP id o19mr5126803edv.34.1599473037442; Mon, 07 Sep 2020 03:03:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599473037; cv=none; d=google.com; s=arc-20160816; b=q4yfVq4SW6lFB/QTkHSecV9fmVzcRI0FPiMKhLf9h0cHwU6nG9VNVVhLaK1a2E2mOg bCPWPMhFyUtHCRDFqRGa90z9GH8jqsqedYyd6yZZDmwxbFNwfpqoNhs893pckFGezKyu rpaZ1WbLoPFcw196MSUjrRTMvDQi93mjR8nE3w4NP0tayRKPGCUdddoFKMV2ihRjn11Q uBtB+TE5rZw/jelpkjdo2OmGVPPNE6ubyrudj7QqJSQzilFBq1+0Frv4QWZW1bpd7NA9 uTITaTCaG0Z9J/+tu6jDAqbVxLzzxSz3GsfME2Kdf+/7EfMkFnoutOyK6QZH4IITj0cY l/3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OwGfQpVGF54uVjosrKrhCCbwHZtSuWTZHfGMaiTiGjc=; b=O7KDJhGAI9LLXjYc2zQjptCIhgdvUrU+klimQZdouw6WJ64QVi9Co0QpNcGF2wvXFR T/3dkf0nuXUltyzTQnWTBSagr1Zv8z4aU/wBV2YW829cq2CrDHiIKmm3zk43e6Udb+eJ G8+Tsazi/OPCq5TUYGM4Eu28UmeJ+JyVUuHtMBqomZ/HZHlVGk8CPZcHc9+NUrO8L/26 MBMoVdtobgS0grgw66m2SlWPkqxRVAZ0AunKS86X05CHv1wVkNesX6+mZ7v0mLbHJtwf PtUflxGt6gkdQVKDXQPVjPbrngEdsZpTnWoGNEy63XrzAg63HwZBagzY++3DGx75HoTb xOeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aAi56Nwx; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx14si9499098ejb.501.2020.09.07.03.03.35; Mon, 07 Sep 2020 03:03:57 -0700 (PDT) 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=@chromium.org header.s=google header.b=aAi56Nwx; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728243AbgIGKBz (ORCPT + 99 others); Mon, 7 Sep 2020 06:01:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728564AbgIGKAv (ORCPT ); Mon, 7 Sep 2020 06:00:51 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C17AFC061575 for ; Mon, 7 Sep 2020 03:00:50 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id o16so6503750pjr.2 for ; Mon, 07 Sep 2020 03:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=OwGfQpVGF54uVjosrKrhCCbwHZtSuWTZHfGMaiTiGjc=; b=aAi56NwxjMP6x134clqj6hj65G9vdhvN0YOOI/N4XtwcUGjzlTHqUiCmUmd9o/qU4a nAxru9ufHt5h54UqERZm37mEzSzoVUKIZ69aIHIL/eox5HKxEg2jS0kIrfxgj1dm0syb cYLi+osNdsuDDWoa5fRPqzEK3+/Dxe72YvFm4= 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=OwGfQpVGF54uVjosrKrhCCbwHZtSuWTZHfGMaiTiGjc=; b=nWnSMOy9jIx3cNas4Bq8nx1FtoIfQNMsV3QVG47VmkVKNiWVKORPY9VohzYaNYwKVc RU9rEmRHBsrr9O37B4BxubbcmZ/DeYNWwAn71SYdgNyQz5QTLpcdBaqYHP0PE05dSNNu y6K7wh6FFluHka+nFMP2rXNQYrOKHAXLkIo9TB2RL5bx2OGEM0RCgGoF643WWAMFmjP+ sgHyUrd+SwbLGgDW4i7l9JxySxq6t8bON/8193cg3BZjpgGaaNXXRfeI0kiGQubtmvJa OcUEKXwaEET/xapiUCynz4AFGMCSqaYJMm+xV2zHlp/bjgC6qAc0i4wPPAz3Bri8TK5T SPlg== X-Gm-Message-State: AOAM531gf0jE2E8QXF6EuPkXbBIqBInJIthBj8l3vpJTDSSq3CCLo/v/ NJLgcbyva74EQke3g+N2GwjOIlVmBxBUmbHb X-Received: by 2002:a17:90a:c917:: with SMTP id v23mr19532205pjt.97.1599472849475; Mon, 07 Sep 2020 03:00:49 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:de4a:3eff:fe7d:d39c]) by smtp.gmail.com with ESMTPSA id cf7sm6557786pjb.52.2020.09.07.03.00.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Sep 2020 03:00:48 -0700 (PDT) From: Cheng-Yi Chiang To: linux-kernel@vger.kernel.org Cc: Mark Brown , Taniya Das , Rohit kumar , Banajit Goswami , Patrick Lai , Andy Gross , Bjorn Andersson , Liam Girdwood , Rob Herring , Jaroslav Kysela , Takashi Iwai , Srini Kandagatla , Stephan Gerhold , Matthias Brugger , Heiko Stuebner , dianders@chromium.org, dgreid@chromium.org, tzungbi@chromium.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, Cheng-Yi Chiang Subject: [PATCH v7 0/3] Add documentation and machine driver for SC7180 sound card Date: Mon, 7 Sep 2020 18:00:36 +0800 Message-Id: <20200907100039.1731457-1-cychiang@chromium.org> X-Mailer: git-send-email 2.28.0.526.ge36021eeef-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Note: - The machine driver patch is made by the collaboration of Cheng-Yi Chiang Rohit kumar Ajit Pandey But Ajit has left codeaurora. - This patch series needs HDMI DAI name defined in sc7180-lpass.h. https://patchwork.kernel.org/patch/11745565/ Changes from v1 to v2: - Ducumentation: Addressed all suggestions from Doug. - Machine driver: - Fix comment style for license. - Sort includes. - Remove sc7180_snd_hw_params. - Remove sc7180_dai_init and use aux device instead for headset jack registration. - Statically define format for Primary MI2S. - Atomic is not a concern because there is mutex in card to make sure startup and shutdown happen sequentially. - Fix missing return -EINVAL in startup. - Use static sound card. - Use devm_kzalloc to avoid kfree. Changes from v2 to v3: - Ducumentation: Addressed suggestions from Srini. - Machine driver: - Reuse qcom_snd_parse_of to parse properties. - Remove playback-only and capture-only. - Misc fixes to address comments. Changes from v3 to v4: - Ducumentation: Addressed suggestions from Rob. - Remove definition of dai. - Use 'sound-dai: true' for sound-dai schema. - Add reg property to pass 'make dt_binding_check' check although reg is not used in the driver. - Machine driver: - Add Reviewed-by: Tzung-Bi Shih Changes from v4 to v5: - Documentation: Addressed suggestions from Rob. - Add definition for "#address-cells" and "#size-cells". - Add additionalProperties: false - Add required properties. Changes from v5 to v6: - Documentation: Addressed suggestions from Rob. - Drop contains in compatible strings. - Only allow dai-link@[0-9] - Remove reg ref since it has a type definition already. Changes from v6 to v7 - Documentation: - Add headset-jack and hdmi-jack to specify the codec responsible for jack detection. - HDMI codec driver: - Use component set_jack ops instead of exporting hdmi_codec_set_jack_detect. - Machine driver: - Removed aux device following Stephan's suggestion. - Use headset-jack and hdmi-jack to specify the codec responsible for jack detection. - Add support for HDMI(actually DP) playback. Ajit Pandey (1): ASoC: qcom: sc7180: Add machine driver for sound card registration Cheng-Yi Chiang (2): ASoC: hdmi-codec: Use set_jack ops to set jack ASoC: qcom: dt-bindings: Add sc7180 machine bindings .../bindings/sound/qcom,sc7180.yaml | 143 +++++++++ include/sound/hdmi-codec.h | 3 - sound/soc/codecs/hdmi-codec.c | 12 +- sound/soc/mediatek/mt8173/mt8173-rt5650.c | 5 +- .../mediatek/mt8183/mt8183-da7219-max98357.c | 5 +- .../mt8183/mt8183-mt6358-ts3a227-max98357.c | 5 +- sound/soc/qcom/Kconfig | 12 + sound/soc/qcom/Makefile | 2 + sound/soc/qcom/sc7180.c | 288 ++++++++++++++++++ sound/soc/rockchip/rockchip_max98090.c | 3 +- 10 files changed, 456 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/qcom,sc7180.yaml create mode 100644 sound/soc/qcom/sc7180.c -- 2.28.0.526.ge36021eeef-goog