Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp32826pxa; Wed, 26 Aug 2020 04:07:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA0rH2sq64k/hnjEP8Vp6aW+QaVHn3UyCvyXsmvieTwcK+Kov3iHTSQdegWDDMmVKhSEM/ X-Received: by 2002:a50:ee96:: with SMTP id f22mr13759849edr.243.1598440028815; Wed, 26 Aug 2020 04:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598440028; cv=none; d=google.com; s=arc-20160816; b=FhN2yTLaYWPkmB1V3ShV0NSNSG85DXLvxwhyZBFp96EHHCU0rICsU7CA55EJLsWGuu CGpBD/oTCtgARaXAQkPot3EFGSVS+dzd2j1UARdX0Gq18rOB05CYdXbXlXXlupfEK9ZJ eTsuWnmEkHGC/yQnxAZr5PnSPg01EJh3f2EsDTMoisr+/15bwDd6xa+W10qNaflkSJ17 rpv34ktyPdJ4J5rsBogUB/nGSYzA9e/+1M/XbavYjpgIA8Qo/o0S4y+VMz8Mht+yVoRc yX4yVpesrDZ2jDEzduJYfRm07yp8sOe7yxMG2sNUpxpaXkeJELNfQUEIlWiXV0e5uqyg 4vzw== 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=mqlq1PfT56HOoFMV6L94hJv96dlmh01C5Xs6bahtBkI=; b=hIsGdPR/5H/j32O5xRlIzl1Igrp6oOvQud7KHbEP0QYLV1hjLAYC0mvhHQvpY+QbKz klHsetz9NmaDwpkCroJdht+QHeyGDYtuC/y9agAQrdnxEFdMRVo6dsMyxZwaahiUAbAL NJcHzV8p8tRvJTYRywBEKOIgDwZV1K3g+/I0H+Dq0t9hWr+F9X8sxp5wqLoM+vMwXV+h a6PPHJIqcEyG71Lsd6a9gl9upAwa3Q0b2i3nP49f6Kv62z5uQo32BtVZpbQ2OKT/Utjd KpV5B6FWVzxOBT6hgc+GgvRqRykzkc9bzpRiYJIyMNKypXSSNkNEP0CHK53qVQnRiDtM Vfyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UeOWj1bL; 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 j12si1368928ejc.479.2020.08.26.04.06.42; Wed, 26 Aug 2020 04:07:08 -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=UeOWj1bL; 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 S1728721AbgHZLFI (ORCPT + 99 others); Wed, 26 Aug 2020 07:05:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728679AbgHZLFD (ORCPT ); Wed, 26 Aug 2020 07:05:03 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA97EC0613ED for ; Wed, 26 Aug 2020 04:05:02 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id v16so724055plo.1 for ; Wed, 26 Aug 2020 04:05:02 -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=mqlq1PfT56HOoFMV6L94hJv96dlmh01C5Xs6bahtBkI=; b=UeOWj1bLiRwpjx0xxo7VgpqGSSWO0JgJ1jDlPJnXdrM6c/bGEfxHVRjO52822EdGos hMjeRcRFC8MnALlN0EL5KFiJ7OeDjlvlw/2zKk58tdxtxb/emtza+ibHAB+OxblK09Lb CEPrqLjTKx3bpE5zD7EXrW2cyycWVsGx+84oc= 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=mqlq1PfT56HOoFMV6L94hJv96dlmh01C5Xs6bahtBkI=; b=fUBbJG4V/UgGKLnEoBAG7ovzwg0gDbfkZj6IS+Yl6+bpg+iwVOzHLyWCX9xYt+8ImJ Tb4hqX+KDeZGVmYci7N0Z4/aB0oHoGjWsEt/M5jF7t5RL3WbU39cFnuQD1V/Vf6lOi9v OzeaOpYCi3HFfzqgupp8ku2hM8GIRkuIVkMdg/2nwonMx/t6RYv5uGxNtqHTkEp5d5lZ kb8LmzKsI8dAQSwJZ75pXa0dmXs2AT8cKmy0RH1oM9rouelP7nwwwwK/Ig0vcwpRoAYD 3iitOJ4Ao1/WBW/UEti87ajhbBA9SS73TMySCL+sUx3vQuPRAkmmpWB4iZaE6FPMnoun K2cg== X-Gm-Message-State: AOAM531hY5BbctjGZFgAxD1TMtsjqqGyRm9c1C8Y+dxhkbmCvX5YrxnD UWPNryDTtd0TCjl7ukIwbDrZiSlI78Oby61b X-Received: by 2002:a17:902:9309:: with SMTP id bc9mr11228131plb.51.1598439901835; Wed, 26 Aug 2020 04:05:01 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:de4a:3eff:fe7d:d39c]) by smtp.gmail.com with ESMTPSA id x5sm1888539pgf.65.2020.08.26.04.04.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Aug 2020 04:05:00 -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 , 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, Cheng-Yi Chiang Subject: [PATCH v6 0/2] Add documentation and machine driver for SC7180 sound card Date: Wed, 26 Aug 2020 19:04:52 +0800 Message-Id: <20200826110454.1811352-1-cychiang@chromium.org> X-Mailer: git-send-email 2.28.0.297.g1956fa8f8d-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. 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. Ajit Pandey (1): ASoC: qcom: sc7180: Add machine driver for sound card registration Cheng-Yi Chiang (1): ASoC: qcom: dt-bindings: Add sc7180 machine bindings .../bindings/sound/qcom,sc7180.yaml | 124 +++++++++ sound/soc/qcom/Kconfig | 12 + sound/soc/qcom/Makefile | 2 + sound/soc/qcom/sc7180.c | 244 ++++++++++++++++++ 4 files changed, 382 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,sc7180.yaml create mode 100644 sound/soc/qcom/sc7180.c -- 2.28.0.297.g1956fa8f8d-goog