From patchwork Tue May 1 12:20:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10373715 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 44A28601C7 for ; Tue, 1 May 2018 12:21:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3230628BAB for ; Tue, 1 May 2018 12:21:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2637528BEA; Tue, 1 May 2018 12:21:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08A5028BAB for ; Tue, 1 May 2018 12:21:15 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5BDB62676AC; Tue, 1 May 2018 14:21:13 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 54DB22676AC; Tue, 1 May 2018 14:21:11 +0200 (CEST) Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by alsa0.perex.cz (Postfix) with ESMTP id B6DA226735E for ; Tue, 1 May 2018 14:21:07 +0200 (CEST) Received: by mail-qt0-f196.google.com with SMTP id j42-v6so14318713qtj.12 for ; Tue, 01 May 2018 05:21:07 -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; bh=oyGztZDDnBHBST6c4azpwZleQrO82RIeVa9TJBQJdao=; b=n4IlA1OWX+MHa38NVbO1U1urfbOecQ/neZgbTwZvtLixrEbwKBKdp6sHXHWez8C+tv UwYgGNBp+o/vSCmjqO1g3rN5yqXCgmr5S2WSQR/gDwWQkf7KeXexTmwV2WlAcSxGg+sg kFk2yjnMSopZH/ebKW466hHrX9+D3zqpJ6EtQr8DqJiGFH36b9utKwtjn0iEpWQR3EuW A8ryJM0uymjTwGhr9A3qW/6FoZx+LHoBXW7crVpkZc5NPifqSG3f/5scTBwORib9Vtb4 yaTXdoBiWm29lUUkS6hLEkv6xtKIUllUk6/NEd6qNrOo1SS7xCOYP3mTaDTOLEThlqZE ij6A== 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; bh=oyGztZDDnBHBST6c4azpwZleQrO82RIeVa9TJBQJdao=; b=a+UtlewETXxZI3Qxv6J73650tYwSfm4NiPWfJQkDw3C9fQ09Dp+EFBka7htAUBzQN2 drY6hkpMaxhvHTcp5yXVIbDNuEGVK4GTvoYbusFGk+efMh0Mg//B6ZgIgfGOlVcnCldi wTbKawMIVx/mrVLncOAsY/Zs0A8GNRqPI6enOIU2uYrDl+h1qw4dLfnhdndz+Xpgx+hs 0kxGJfsxglpMm/9eYq5vLmU846S4OCTroAAxd+zr4qYmmEa1M7BSwmz2Vf6tbH6X6DMM XGbZpPT4qJX9iS+kn0iMJNqpp2/9JkWSTzctbVvK4qNTjXGyQDh7w+Y8v19SXkCkRu0D Q+JQ== X-Gm-Message-State: ALQs6tDbPRWlqCi6qPkGO8CPYhz72bb6pOs5KxrYa/X9BZq4H17J8dPL ga+kVmHchx7xG+Fj+SOJf/Y= X-Google-Smtp-Source: AB8JxZpcj05WzavseLmTXGySo9h6jEJuIB4c67xYJLepySNHlOmFVz60bxaofZukMhlB9E8OHKd8Og== X-Received: by 2002:ac8:1492:: with SMTP id l18-v6mr14101626qtj.346.1525177266079; Tue, 01 May 2018 05:21:06 -0700 (PDT) Received: from localhost.localdomain ([2804:14d:90ae:4c9c:e817:c332:b05e:4173]) by smtp.gmail.com with ESMTPSA id g47-v6sm8330674qtk.87.2018.05.01.05.21.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 May 2018 05:21:05 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Date: Tue, 1 May 2018 09:20:40 -0300 Message-Id: <1525177243-31009-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: nicoleotsuka@gmail.com, Fabio Estevam , alsa-devel@alsa-project.org, timur@tabi.org Subject: [alsa-devel] [PATCH v2 1/4] ASoC: fsl_ssi: Switch to SPDX identifier X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Adopt the SPDX license identifier headers to ease license compliance management. Signed-off-by: Fabio Estevam --- Changes since v1: - Retain the copyright statements in fsl_ssi.h (Timur) sound/soc/fsl/fsl_ssi.c | 57 +++++++++++++++++++++------------------------ sound/soc/fsl/fsl_ssi.h | 6 ++--- sound/soc/fsl/fsl_ssi_dbg.c | 18 ++++++-------- 3 files changed, 35 insertions(+), 46 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 1544166..0a64822 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -1,34 +1,29 @@ -/* - * Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver - * - * Author: Timur Tabi - * - * Copyright 2007-2010 Freescale Semiconductor, Inc. - * - * This file is licensed under the terms of the GNU General Public License - * version 2. This program is licensed "as is" without any warranty of any - * kind, whether express or implied. - * - * - * Some notes why imx-pcm-fiq is used instead of DMA on some boards: - * - * 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 +// +// Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver +// +// Author: Timur Tabi +// +// Copyright 2007-2010 Freescale Semiconductor, Inc. +// +// Some notes why imx-pcm-fiq is used instead of DMA on some boards: +// +// 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/fsl_ssi.h b/sound/soc/fsl/fsl_ssi.h index 18f8dd5..0bdda60 100644 --- a/sound/soc/fsl/fsl_ssi.h +++ b/sound/soc/fsl/fsl_ssi.h @@ -1,12 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * fsl_ssi.h - ALSA SSI interface for the Freescale MPC8610 and i.MX SoC * * Author: Timur Tabi * - * Copyright 2007-2008 Freescale Semiconductor, Inc. This file is licensed - * under the terms of the GNU General Public License version 2. This - * program is licensed "as is" without any warranty of any kind, whether - * express or implied. + * Copyright 2007-2008 Freescale Semiconductor, Inc. */ #ifndef _MPC8610_I2S_H diff --git a/sound/soc/fsl/fsl_ssi_dbg.c b/sound/soc/fsl/fsl_ssi_dbg.c index 7aac63e..1bacfa2 100644 --- a/sound/soc/fsl/fsl_ssi_dbg.c +++ b/sound/soc/fsl/fsl_ssi_dbg.c @@ -1,14 +1,10 @@ -/* - * Freescale SSI ALSA SoC Digital Audio Interface (DAI) debugging functions - * - * Copyright 2014 Markus Pargmann , Pengutronix - * - * Splitted from fsl_ssi.c - * - * This file is licensed under the terms of the GNU General Public License - * version 2. This program is licensed "as is" without any warranty of any - * kind, whether express or implied. - */ +// SPDX-License-Identifier: GPL-2.0 +// +// Freescale SSI ALSA SoC Digital Audio Interface (DAI) debugging functions +// +// Copyright 2014 Markus Pargmann , Pengutronix +// +// Split from fsl_ssi.c #include #include