diff options
author | Fabio Estevam <fabio.estevam@nxp.com> | 2018-05-01 08:20:40 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-02 21:28:43 -0400 |
commit | 0eb6048f7a978f446367550974f3d1cb4b47262c (patch) | |
tree | 8aac1af842ac1aea61088e2bda0ddbb3c9fcb0c9 | |
parent | 783ec5e99ab9d8839957b15b5836e8bb795d74b6 (diff) |
ASoC: fsl_ssi: Switch to SPDX identifier
Adopt the SPDX license identifier headers to ease license compliance
management.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 57 | ||||
-rw-r--r-- | sound/soc/fsl/fsl_ssi.h | 6 | ||||
-rw-r--r-- | 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 1544166631e3..0a648229e643 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -1,34 +1,29 @@ | |||
1 | /* | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | * Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver | 2 | // |
3 | * | 3 | // Freescale SSI ALSA SoC Digital Audio Interface (DAI) driver |
4 | * Author: Timur Tabi <timur@freescale.com> | 4 | // |
5 | * | 5 | // Author: Timur Tabi <timur@freescale.com> |
6 | * Copyright 2007-2010 Freescale Semiconductor, Inc. | 6 | // |
7 | * | 7 | // Copyright 2007-2010 Freescale Semiconductor, Inc. |
8 | * This file is licensed under the terms of the GNU General Public License | 8 | // |
9 | * version 2. This program is licensed "as is" without any warranty of any | 9 | // Some notes why imx-pcm-fiq is used instead of DMA on some boards: |
10 | * kind, whether express or implied. | 10 | // |
11 | * | 11 | // The i.MX SSI core has some nasty limitations in AC97 mode. While most |
12 | * | 12 | // sane processor vendors have a FIFO per AC97 slot, the i.MX has only |
13 | * Some notes why imx-pcm-fiq is used instead of DMA on some boards: | 13 | // one FIFO which combines all valid receive slots. We cannot even select |
14 | * | 14 | // which slots we want to receive. The WM9712 with which this driver |
15 | * The i.MX SSI core has some nasty limitations in AC97 mode. While most | 15 | // was developed with always sends GPIO status data in slot 12 which |
16 | * sane processor vendors have a FIFO per AC97 slot, the i.MX has only | 16 | // we receive in our (PCM-) data stream. The only chance we have is to |
17 | * one FIFO which combines all valid receive slots. We cannot even select | 17 | // manually skip this data in the FIQ handler. With sampling rates different |
18 | * which slots we want to receive. The WM9712 with which this driver | 18 | // from 48000Hz not every frame has valid receive data, so the ratio |
19 | * was developed with always sends GPIO status data in slot 12 which | 19 | // between pcm data and GPIO status data changes. Our FIQ handler is not |
20 | * we receive in our (PCM-) data stream. The only chance we have is to | 20 | // able to handle this, hence this driver only works with 48000Hz sampling |
21 | * manually skip this data in the FIQ handler. With sampling rates different | 21 | // rate. |
22 | * from 48000Hz not every frame has valid receive data, so the ratio | 22 | // Reading and writing AC97 registers is another challenge. The core |
23 | * between pcm data and GPIO status data changes. Our FIQ handler is not | 23 | // provides us status bits when the read register is updated with *another* |
24 | * able to handle this, hence this driver only works with 48000Hz sampling | 24 | // value. When we read the same register two times (and the register still |
25 | * rate. | 25 | // contains the same value) these status bits are not set. We work |
26 | * Reading and writing AC97 registers is another challenge. The core | 26 | // around this by not polling these bits but only wait a fixed delay. |
27 | * provides us status bits when the read register is updated with *another* | ||
28 | * value. When we read the same register two times (and the register still | ||
29 | * contains the same value) these status bits are not set. We work | ||
30 | * around this by not polling these bits but only wait a fixed delay. | ||
31 | */ | ||
32 | 27 | ||
33 | #include <linux/init.h> | 28 | #include <linux/init.h> |
34 | #include <linux/io.h> | 29 | #include <linux/io.h> |
diff --git a/sound/soc/fsl/fsl_ssi.h b/sound/soc/fsl/fsl_ssi.h index 18f8dd5209d5..0bdda608d414 100644 --- a/sound/soc/fsl/fsl_ssi.h +++ b/sound/soc/fsl/fsl_ssi.h | |||
@@ -1,12 +1,10 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
1 | /* | 2 | /* |
2 | * fsl_ssi.h - ALSA SSI interface for the Freescale MPC8610 and i.MX SoC | 3 | * fsl_ssi.h - ALSA SSI interface for the Freescale MPC8610 and i.MX SoC |
3 | * | 4 | * |
4 | * Author: Timur Tabi <timur@freescale.com> | 5 | * Author: Timur Tabi <timur@freescale.com> |
5 | * | 6 | * |
6 | * Copyright 2007-2008 Freescale Semiconductor, Inc. This file is licensed | 7 | * Copyright 2007-2008 Freescale Semiconductor, Inc. |
7 | * under the terms of the GNU General Public License version 2. This | ||
8 | * program is licensed "as is" without any warranty of any kind, whether | ||
9 | * express or implied. | ||
10 | */ | 8 | */ |
11 | 9 | ||
12 | #ifndef _MPC8610_I2S_H | 10 | #ifndef _MPC8610_I2S_H |
diff --git a/sound/soc/fsl/fsl_ssi_dbg.c b/sound/soc/fsl/fsl_ssi_dbg.c index 7aac63e2c561..1bacfa24ba7f 100644 --- a/sound/soc/fsl/fsl_ssi_dbg.c +++ b/sound/soc/fsl/fsl_ssi_dbg.c | |||
@@ -1,14 +1,10 @@ | |||
1 | /* | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | * Freescale SSI ALSA SoC Digital Audio Interface (DAI) debugging functions | 2 | // |
3 | * | 3 | // Freescale SSI ALSA SoC Digital Audio Interface (DAI) debugging functions |
4 | * Copyright 2014 Markus Pargmann <mpa@pengutronix.de>, Pengutronix | 4 | // |
5 | * | 5 | // Copyright 2014 Markus Pargmann <mpa@pengutronix.de>, Pengutronix |
6 | * Splitted from fsl_ssi.c | 6 | // |
7 | * | 7 | // Split from fsl_ssi.c |
8 | * This file is licensed under the terms of the GNU General Public License | ||
9 | * version 2. This program is licensed "as is" without any warranty of any | ||
10 | * kind, whether express or implied. | ||
11 | */ | ||
12 | 8 | ||
13 | #include <linux/debugfs.h> | 9 | #include <linux/debugfs.h> |
14 | #include <linux/device.h> | 10 | #include <linux/device.h> |