Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1984909pxk; Mon, 14 Sep 2020 01:18:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPitEqlzl5E7sKdHXccIdfqt5SUjyw7k4SOhpKQAInkHN3LcSxdS6jXeRXOR/5EW3d7pgx X-Received: by 2002:a17:907:72cc:: with SMTP id du12mr13138595ejc.150.1600071528516; Mon, 14 Sep 2020 01:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600071528; cv=none; d=google.com; s=arc-20160816; b=G9a1E58AVkRagB7MjoxNSpbZjCY5Qfo0dmmm/PwMexs8dP6kKdzQEjIp+wmna9KQIR avli2YlYu/GLqczX/NFOk/xTolHOFBPgnFS2bTDRBP9N+xKQNAqkZtwVKnQv4/8SLRdc dG8OOzpMPHzVKD1KTG3jfrKad/60HqrBaNHp0d4M2fosZ4h3E34Dk9ffqnqQpl+LCGPv N6NDrWdeosg4H6jobRiz1mPDtBVI3JThG2gdw18Hlya5b9fsgb0P6LEngmz5JcJipSFu ac8UB2phK8UmE9V1lrEIO5Xdfl+/TmOoD8Za8NcUMiX9U6gN/5iJt3axakD69gKiobV7 05Vg== 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=3ox4aNsfcgsY0RPX5lognE3py6DN8GEMGKvGSpSvhHM=; b=CC5UBjV8zTiqHl5dQusStG1lcbGruQFyju2w34Ic3G7hQgBzkXzEJHa8PVCwUob3EM Ncpzufb5Yl8GmamB5OMq5wUZ7hzK2gOJ5Rb2ox9HnjIBxaT/RG9O3lGFr98FfiY9JnWH iXWY6mlxvTRoiQoV6MnVJCuuiFSwmOVkOHW6fEcevPzqCpvzbKSCZ7fyohkU+XIYzQ09 HDAwA2x2obOWUfiOoUY6fXdAOLXd0AMq8I8z3HTe8ENJ3IjHRz05huE9lNuX1jsyMGmD AXXRx/Q7Tho9tF/p4Wdugxl2snCUdj2GNNm+uRo1D4NOdnZKXGHLGteECtVwi5TX//8R nGBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SUDEULP4; 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 oy13si6397737ejb.481.2020.09.14.01.18.25; Mon, 14 Sep 2020 01:18:48 -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=SUDEULP4; 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 S1726177AbgINIRF (ORCPT + 99 others); Mon, 14 Sep 2020 04:17:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726194AbgINIGj (ORCPT ); Mon, 14 Sep 2020 04:06:39 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3C30C06178A for ; Mon, 14 Sep 2020 01:06:27 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id u3so4935798pjr.3 for ; Mon, 14 Sep 2020 01:06:27 -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=3ox4aNsfcgsY0RPX5lognE3py6DN8GEMGKvGSpSvhHM=; b=SUDEULP4c/8tVHVk7xVbOPiooBoKPwQaZtEi0R6EjvskfHBD+R4GPSOXG962UXjQdn hjEMWNOjCkbELEQDt7lAdtBKEDCKdfaZ/nE6LqBXKxUFgaACGT1SL+AfqiRWV8dTMPOI 8IsvGl5Q4uG7ePFhBrYOXAQZi6rmMGR8iKa5s= 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=3ox4aNsfcgsY0RPX5lognE3py6DN8GEMGKvGSpSvhHM=; b=Kzd/FBxCWHZpKBeOBzPOwiYuBncAxnSkFBf9UE2MqNVQQMWc/lCOhJ4ZGyeiYQeZFb mCCuvwLztdrqKxrOY0I9mdjACo2HC6mUI/xCluRy5zL/PSyNzDNmHZ800Hg115Qf2MJ0 b5waAx3KtRBaneRXI/1EXSI3uxYfeq3uCim7L2ng2B1rEzI0v0MS9ysxXhEGZfP9/+EF G0UsEsqrX5fEpibWhuTbaf0Y8CMa3XZeIP7Y8PJ2g4oeptmup1xkThn2B6hzdch3g4p/ uZny1WoF1Mef1uJdP6OBnUnninkUwAJp6LuvfGKSWDB02JFmOfohrDqAhf/Sx6dp4NO3 aUgQ== X-Gm-Message-State: AOAM532qzeqVq6rUbevWFo57U9aSIqKwwgHjpUL53EFqaQrCmUPqEt4h x5B5xikhlyMpwL6jGyhzr7qn9kHnmMfjRViZ X-Received: by 2002:a17:90a:49c8:: with SMTP id l8mr12375320pjm.24.1600070786866; Mon, 14 Sep 2020 01:06:26 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:de4a:3eff:fe7d:d39c]) by smtp.gmail.com with ESMTPSA id b10sm3811152pgm.64.2020.09.14.01.06.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Sep 2020 01:06:25 -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 , Srinivasa Rao , 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 v11 0/3] Add documentation and machine driver for SC7180 sound card Date: Mon, 14 Sep 2020 16:06:16 +0800 Message-Id: <20200914080619.4178587-1-cychiang@chromium.org> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-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 SC7180_LPASS_DP defined in sc7180-lpass.h. It will be posted in the newer patchset of 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. Changes from v7 to v8 - Documentation: - Remove headset-jack and hdmi-jack. - Machine driver: - Let machine driver decide whether there is a jack on the DAI. Changes from v8 to v9 - hdmi-codec driver: - Fixed the naming. - Machine driver: - Fixed unused fields. - Moved snd_soc_card_set_drvdata - Keep the naming of HDMI as dai name until v5 of lpass-hdmi patches. Changes from v9 to v10 - Documentation: - Let compatible string be more specific for board configuration to allow for future changes. - Machine driver: - Fixed unused include and macro. - Add temporary macro SC7180_LPASS_DP for future change in sc7180-lpass.h. - Let sound card be dynamically allocated. - Change compatible string accordingly. Changes from v10 to v11 - Machine driver: - Use temporary macro LPASS_DP_RX for future change in sc7180-lpass.h. 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 | 130 +++++++++ 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 | 266 ++++++++++++++++++ sound/soc/rockchip/rockchip_max98090.c | 3 +- 10 files changed, 421 insertions(+), 22 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/qcom,sc7180.yaml create mode 100644 sound/soc/qcom/sc7180.c -- 2.28.0.618.gf4bc123cb7-goog