Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751871AbdCCRcM (ORCPT ); Fri, 3 Mar 2017 12:32:12 -0500 Received: from mail-dm3nam03on0112.outbound.protection.outlook.com ([104.47.41.112]:18496 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751593AbdCCRcJ (ORCPT ); Fri, 3 Mar 2017 12:32:09 -0500 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=maximintegrated.com; From: Ryan Lee To: , , , , , , , , , , , , , , , , , , , , CC: Subject: [PATCH 00/10] ALSA SoC MAX98927 driver - revision Date: Fri, 3 Mar 2017 23:52:38 +0900 Message-ID: <1488552768-14901-1-git-send-email-ryans.lee@maximintegrated.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [222.234.201.146] X-ClientProxiedBy: KL1PR02CA0031.apcprd02.prod.outlook.com (10.165.15.41) To CY4PR11MB1367.namprd11.prod.outlook.com (10.173.16.149) X-MS-Office365-Filtering-Correlation-Id: 6d5412fe-e167-4052-f8a8-08d462450d29 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(48565401081);SRVR:CY4PR11MB1367; X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;3:QRqebPauUudtSAPaq4LY74MJjcO0Zk1iSNpRQXujRHkujP6PagbrCCE25Ni7I9isZs5C8MmqpqFnrFcp5MQJXLXhx3+cyk+N+XR1RtHMXR5ddMoyT7eIRxozdaK4Y64M0DcL+prio1+Yy+cFlvkaZNR9NS8QbzyML63hbXUXTTB2hMtpfs4s/91c6pburW4xELkwiGYqMJntXCq60KpuiHxYF38ei0Vu41kW88QsX1PuNvtoYSDUnKwS6kKeMkdD3iD8T+uUU8t76dTV1u+TAeUdCJbadgMteK9USWdvuao=;25:Fsi6zM2lw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KbnN/k1Z40nz28xHvLFo7vgZe9CFaatKT6V6mqIcSqwlfB/k94uUR0SOeTUcdTOQ/fcd9AurVjb4chvqxA/4Kef+MZSB6CSUg0qhA55WRy8Z179VaFYgt+UL3LYZ2+sCSTJGeWSqv3MoBsEeo9dYIHTN4nNMQ/oNX5+9KEsSSA1pSa4XlMx8L1JkYN4Yw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123558025)(20161123562025)(6072148);SRVR:CY4PR11MB1367;BCL:0;PCL:0;RULEID:;SRVR:CY4PR11MB1367; X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;4:6/9R80IxFnPzeM1gwhhsSkxT0Vt/D7/V8WmJAsHnwkzKPFSBBkLBOrd11XASzOqvOsNlGqryzqmP9+tgVUxELXXf6xbGyLZPrm1B55EazODPQJHjn6piOyuaXVstXyiPSCN+TqB4r1Gj87ADCamMANxmqdNP/lQ1KyN3rI6hGdf5uijWEV3GaJfSkQxVmFIyO2C56c1HknFnml1qJtz2HL/YXopTnPEmqG1CAwmzxFdpk9aY042gxZ7D5EStm/9KjyaTtdqMouaJViYRRvDC8IYwmjlHlc2pCQmErDJRMu0OAhAmrFMnL89bc3EqYiKs9zLqEuy5bZnwGLTsTK1IAFhl35G6NDZEnqlo0DAUI66D7r4YuTROLcDhVIgzmo5tAadPCkDS1RoFcutBCp1ZQevl59XpvhDSHcRvutwBorUMNLrUzImvh3BO04z594Kql34lLuqsVDeHJxEKLyrUxZ51JSmhCB8adkYPkNKQVqPPK24dU27yjom3LREzEUH7xIkKNhWFqBgZTSYsa5QvFAUzLC3WxHY/WskmIPGuCa75nrj+80ozLOMsMFreBflTDPfdlzd45Qm1E83nkhtmezGKb3U4W5EZ/5YCNqvZPPa96i33MId5eDUAyIjrlaa2 X-Forefront-PRVS: 0235CBE7D0 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(39850400002)(39410400002)(39840400002)(39450400003)(39860400002)(33646002)(86362001)(50986999)(5003940100001)(7416002)(25786008)(2201001)(50226002)(189998001)(6512007)(2906002)(6486002)(6506006)(6666003)(53936002)(42186005)(53416004)(3846002)(305945005)(66066001)(6116002)(48376002)(50466002)(92566002)(8676002)(7736002)(47776003)(36756003)(5660300001)(4326008)(38730400002)(81166006)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR11MB1367;H:ryan-Lenovo-IdeaPad-Z510.maxim-ic.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY4PR11MB1367;23:hfSYwhQCGcP/D/53SzKSSEiWOire5Kjq7O3Umm6ua?= =?us-ascii?Q?gU4RTVcLIoJIaPoalR0op/ifP/rkh3pmvIfql5Izhf5RI1H/MlM45f08Ba8x?= =?us-ascii?Q?zI1TbIGnqe0jbmGlgDCqnFNbs14CrWTUwFRQNyfXXVhAuFEqDAUAF9M2VzMv?= =?us-ascii?Q?MVgZjNbWeSBJFWZVqIKJtY/lnF2Urm8UJqkOAjPz5vyQujjnJ4STURRPyRO6?= =?us-ascii?Q?sgsRWiZcae+b1S5kdzIjR3dTvZkSkMkXDZq0AJWtQTCKXD4ZmUacCHG4uz3U?= =?us-ascii?Q?+wCy2txZGGQujNNZvMegWXALm+/YTi6d8r4zGR/Nqt7CAuTJBXnvTqEW/shT?= =?us-ascii?Q?R/hAUF/pjAx5sTNOrwjQ919Veqb4iQaqFnSq3djVE8NXGy7IxIACIm5pj7/Y?= =?us-ascii?Q?bsbfGdk2VrIcF6lTx90jVmMn679x23jMHe7EXyRQXVZfrJkNjlZdC4gSqyRh?= =?us-ascii?Q?kUWh4/OpHSsDmRF4UAzfybF6X70ydGHDSkDIAYQYmZGGeaqUcTZfxkBrE77l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QBnijBJcARnSL/Lu3+aGsumUddy0wi/UfPGY8ibsAT6Y0uUkpU2gBoOZg1WQa8Ga0h8gY=;5:Ino+k6isjJvMZk8vcW5w8c0PXxasaHwcxfzSaxauApCiC9qWStoPk7BSH3iCOr2Y92OsWTtso5pfuOCxQg8WBxY3nj8ks2gqzWiVwKT1jdtKEPf4qcKQ4NMQFHpO0lvxr3uyiWKpTcMpcco9Hou9fVDcG97K3h/E0+vNB3aSJio=;24:xplV7DjSMgGQ4I/TEcvNj/QSmZJKDs9HmQ9sdgkU5FhB80LWYjWEAy9NgX7up1HGQp4Ng5y6UbNeAszr5hrW5ByQhuoL59hdyzBuToDIxDI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR11MB1367;7:ABfbDXiMF7jFXRichIQft6nYRZm1+tU1FH8pqmYRCCckkqN2Fsp54HTNbgKkKz1koqi1KgHEnBcMt/WfVRjNRqqVKvy5q3mI8VLFBO/zxlzldqvGawcYjNVr/qfB/znp6/PP9tVR6D3v0gzbiBibfK+25ifXwc2ZVcCoyq2ZRVum3Eyt6ofn+AN1ZFcmXTryhmQpKs+Y/kBVVp1D9SOK4pPV6qRcOJhhi/57aTQvbdXd71Fe858I+RkRDSYr1sGsvUKAP78w2nGfE+MY5TXzkwy/Vd6U3+DDuxn5LABXGIfSI4jdNNNgbreAwoPBJAvOeSVbUpZVVImyMQweeb0dag== X-OriginatorOrg: maximintegrated.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 14:53:21.4898 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1367 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1706 Lines: 36 The initial driver had many textual and structural problems. I have added next patches to modify existing problems. There was concern about the design of keeping separate regmaps for each instance of the amplifier explicitly instead of instantiating two instances of a single, simpler driver. This was major change of this release. Coding style problem like indentation also have been fixed. Ryan Lee (10): ALSA SoC MAX98927 driver - Initial release Updated max98927_reg table with physical defaults. Replaced max98927.h for better legibility Removed the secondary device initialization from the primary device initialization. Removed manual register configuration from devicetree Modified indentation Replaced pr_err by dev_err. Modified debug message Added mask variable to apply it in one round after the switch Modified initialization code of VI sensing Added DAI Sel Mux and minor updates Added ACPI support. Changed snd_kcontrol_chip to snd_soc_kcontrol_codec Added vendor prefix. Added range information .../devicetree/bindings/sound/max98927.txt | 39 + sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/max98927.c | 1039 ++++++++++++++++++++ sound/soc/codecs/max98927.h | 267 +++++ 5 files changed, 1352 insertions(+) create mode 100755 Documentation/devicetree/bindings/sound/max98927.txt mode change 100644 => 100755 sound/soc/codecs/Kconfig mode change 100644 => 100755 sound/soc/codecs/Makefile create mode 100755 sound/soc/codecs/max98927.c create mode 100755 sound/soc/codecs/max98927.h -- 2.7.4