From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB338C4360F for ; Fri, 5 Apr 2019 11:52:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 66D6C2186A for ; Fri, 5 Apr 2019 11:52:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OHsv1Pi4"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="p+ttkZ2i" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 66D6C2186A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=npjV+QhRFP4vOtjB2ENeUQkFEBXKMubJBqw4JaZgdTA=; b=OHsv1Pi48vyS8mAUVpYyKM9xi6 c8L8OUEU56O9nIwzyFAMnOvm5kkCWl8rOueoehsuGRgEmM4/9Dq0JcvnN98fICTUef/N3Peg/iOpS N0Sh0KzZtDDJ/bf9bQps5XIkmfeP1Cuq0fI85CnRyDIM/LsoUlDs3+ElhwXu0jteh1yp9QzCpEQzh 1Wk3BYN9nEJO8tc3tzrnGY/ZB7qTus67DLx/cwweZjdgXgIOvQdHVPO05bDmgylStchSuYI3/oB4O LCOjvJ5hkeXdBSZkwiSOfSe7+UCyR9tFWPNUSONSFP7+8X/Vi1ijncM2ODiwsm191txkDIdoGAdhO 94jVIjIw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCNOW-0006ju-Ke; Fri, 05 Apr 2019 11:52:28 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCNNC-0004up-47 for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2019 11:51:27 +0000 Received: by mail-wm1-x343.google.com with SMTP id 4so6340500wmf.1 for ; Fri, 05 Apr 2019 04:51:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=fGwHro2dMoRJktZIztlEg/HLmc2ioAxEn6YwGJJIAe4=; b=p+ttkZ2iTmUqeyAG8wRxS3F2vwmPs92k6+h4dDHEJgKv+5/nSMJTwlRqgLrcvQ7nip kez0X+xlBiiY2bfj4USqavJQBm7a0QMiFmqyBKhwzpE9u3qeTAM8FedVsq1uLDj6Foe3 W03EBqSrIv4bWPs/OMrWdNTLbowNjIlLjpkLV0J+WsN4jUjrmKMmk7/21zVf+pP83B5V hZVQlFvJj36zkFe8NBkfVcYwl60ZewFpjUL8Ue3ff/Oy7QLS/N+C5SRWpui5b1E+LZob 9nVVuEW+x8dWnqhK4VT+aZcidtj2D1KLwDsPwbJ16iRlexh6kesEt7P+btLNQcpK+mcX CYcQ== 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:in-reply-to :references; bh=fGwHro2dMoRJktZIztlEg/HLmc2ioAxEn6YwGJJIAe4=; b=X1d2avBOBRO73q2EW6wsY2kAUuRU/kgQ+qstaj0sQIGGe0+aVdU1UqINjPG2x3c7Sa rCSGV+7mWAeGMBxyUrIhxxBTuPhFG8aOddq2FFkQbjJrnS6dcWxYLEDRI3KcMX57OV+6 hCm7quxKvo86DXwVO637eOzW+wkr1MFiUI4CFx/A1oC+cYlauz5UKoRK0v8vXafbpWeH QnmCgjFjOlPjOGRNhlEpH4nB9+vuCuhy4b5/Ew1NfBnfzb3aztGdlnc5RFualkFwnhAO YJ8zKrbc+YJXw6RnjO8LdLNovo3Nwqi0J/UuGQJRUmGDJlNbIPAB9Jvr0eHr85ppjrPd 0xUg== X-Gm-Message-State: APjAAAVX++CbH7flr6sJ+UYKykwhg3pvHigPxV6qQWi3CLs6bJUb9lVe gNWbqexv9sU5wS4nnImckWY= X-Google-Smtp-Source: APXvYqwTxQoV8/3pyKFUCoyJyb4EkBUy1Ykw1fAOP2b69z1oMyiShjZDTglykHyUZBnKxSX0YkMpDA== X-Received: by 2002:a1c:4105:: with SMTP id o5mr7202571wma.35.1554465064815; Fri, 05 Apr 2019 04:51:04 -0700 (PDT) Received: from localhost.localdomain ([178.138.34.252]) by smtp.gmail.com with ESMTPSA id s203sm2881479wmf.14.2019.04.05.04.51.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Apr 2019 04:51:04 -0700 (PDT) From: Andra Danciu To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/20] ASoC: imx-ssi: Switch to SPDX identifier Date: Fri, 5 Apr 2019 14:50:00 +0300 Message-Id: <20190405115010.28838-11-andradanciu1997@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190405115010.28838-1-andradanciu1997@gmail.com> References: <20190405115010.28838-1-andradanciu1997@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190405_045106_606497_0CBB23FC X-CRM114-Status: GOOD ( 16.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andra Danciu , daniel.baluta@nxp.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Andra Danciu --- sound/soc/fsl/imx-ssi.c | 57 ++++++++++++++++++++++--------------------------- sound/soc/fsl/imx-ssi.h | 6 +----- 2 files changed, 26 insertions(+), 37 deletions(-) diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c index 06790615e04e..9038b61317be 100644 --- a/sound/soc/fsl/imx-ssi.c +++ b/sound/soc/fsl/imx-ssi.c @@ -1,35 +1,28 @@ -/* - * imx-ssi.c -- ALSA Soc Audio Layer - * - * Copyright 2009 Sascha Hauer - * - * This code is based on code copyrighted by Freescale, - * Liam Girdwood, Javier Martin and probably others. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * - * The i.MX SSI core has some nasty limitations in AC97 mode. While most - * sane processor vendors have a FIFO per AC97 slot, the i.MX has only - * one FIFO which combines all valid receive slots. We cannot even select - * which slots we want to receive. The WM9712 with which this driver - * was developed with always sends GPIO status data in slot 12 which - * we receive in our (PCM-) data stream. The only chance we have is to - * manually skip this data in the FIQ handler. With sampling rates different - * from 48000Hz not every frame has valid receive data, so the ratio - * between pcm data and GPIO status data changes. Our FIQ handler is not - * able to handle this, hence this driver only works with 48000Hz sampling - * rate. - * Reading and writing AC97 registers is another challenge. The core - * provides us status bits when the read register is updated with *another* - * value. When we read the same register two times (and the register still - * contains the same value) these status bits are not set. We work - * around this by not polling these bits but only wait a fixed delay. - * - */ +// SPDX-License-Identifier: GPL-2.0+ +// +// imx-ssi.c -- ALSA Soc Audio Layer +// +// Copyright 2009 Sascha Hauer +// +// This code is based on code copyrighted by Freescale, +// Liam Girdwood, Javier Martin and probably others. +// +// The i.MX SSI core has some nasty limitations in AC97 mode. While most +// sane processor vendors have a FIFO per AC97 slot, the i.MX has only +// one FIFO which combines all valid receive slots. We cannot even select +// which slots we want to receive. The WM9712 with which this driver +// was developed with always sends GPIO status data in slot 12 which +// we receive in our (PCM-) data stream. The only chance we have is to +// manually skip this data in the FIQ handler. With sampling rates different +// from 48000Hz not every frame has valid receive data, so the ratio +// between pcm data and GPIO status data changes. Our FIQ handler is not +// able to handle this, hence this driver only works with 48000Hz sampling +// rate. +// Reading and writing AC97 registers is another challenge. The core +// provides us status bits when the read register is updated with *another* +// value. When we read the same register two times (and the register still +// contains the same value) these status bits are not set. We work +// around this by not polling these bits but only wait a fixed delay. #include #include diff --git a/sound/soc/fsl/imx-ssi.h b/sound/soc/fsl/imx-ssi.h index be6562365b6a..19cd0937e740 100644 --- a/sound/soc/fsl/imx-ssi.h +++ b/sound/soc/fsl/imx-ssi.h @@ -1,8 +1,4 @@ -/* - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ +/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _IMX_SSI_H #define _IMX_SSI_H -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel