License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 14:07:57 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2008-01-11 17:15:26 +00:00
|
|
|
# MPC8610 HPCD Machine Support
|
2009-01-19 17:57:46 +00:00
|
|
|
snd-soc-mpc8610-hpcd-objs := mpc8610_hpcd.o
|
|
|
|
obj-$(CONFIG_SND_SOC_MPC8610_HPCD) += snd-soc-mpc8610-hpcd.o
|
2008-01-11 17:15:26 +00:00
|
|
|
|
2010-08-19 22:11:40 +00:00
|
|
|
# P1022 DS Machine Support
|
|
|
|
snd-soc-p1022-ds-objs := p1022_ds.o
|
|
|
|
obj-$(CONFIG_SND_SOC_P1022_DS) += snd-soc-p1022-ds.o
|
|
|
|
|
2012-10-12 19:09:18 +00:00
|
|
|
# P1022 RDK Machine Support
|
|
|
|
snd-soc-p1022-rdk-objs := p1022_rdk.o
|
|
|
|
obj-$(CONFIG_SND_SOC_P1022_RDK) += snd-soc-p1022-rdk.o
|
|
|
|
|
2013-12-17 03:24:38 +00:00
|
|
|
# Freescale SSI/DMA/SAI/SPDIF Support
|
2019-01-22 11:14:26 +00:00
|
|
|
snd-soc-fsl-audmix-objs := fsl_audmix.o
|
ASoC: fsl: Add Freescale Generic ASoC Sound Card with ASRC support
The Freescale Generic ASoC Sound Card is a general ASoC DAI Link driver that
can be used, ideally, for all Freescale CPU DAI drivers and external CODECs.
The idea of this generic sound card is a bit like ASoC Simple Card. However,
for Freescale SoCs (especially those released in recent years), most of them
have ASRC (Documentation/devicetree/bindings/sound/fsl,asrc.txt) inside. And
this is a specific feature that might be painstakingly controlled and merged
into the Simple Card driver.
So having this driver will allow all Freescale SoC users to benefit from the
simplification to support a new card and the capability of wide sample rates
support through ASRC.
The driver is initially designed for sound card using I2S or PCM DAI formats.
However, it's also possible to merge those non-I2S/PCM type sound cards, such
as S/PDIF audio and HDMI audio, into this card as long as the merge will not
break the original function and as long as there is something redundant that
can be abstracted along with I2S type sound cards.
As an initial version, it only supports three cards that I can test:
imx-audio-cs42888, a new card that links ESAI with CS42888 CODEC
imx-audio-sgtl5000, just like the old imx-sgtl5000.c driver
imx-audio-wm8962, just like the old imx-wm8962.c driver
The driver is also compatible with the old Device Tree bindings of WM8962 and
SGTL5000. So we may consider to remove those two drivers after this driver is
totally enabled. (It needs to be added into defconfig)
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2014-07-30 11:27:38 +00:00
|
|
|
snd-soc-fsl-asoc-card-objs := fsl-asoc-card.o
|
2014-07-29 10:08:53 +00:00
|
|
|
snd-soc-fsl-asrc-objs := fsl_asrc.o fsl_asrc_dma.o
|
2013-12-17 03:24:38 +00:00
|
|
|
snd-soc-fsl-sai-objs := fsl_sai.o
|
2014-04-28 10:54:43 +00:00
|
|
|
snd-soc-fsl-ssi-y := fsl_ssi.o
|
|
|
|
snd-soc-fsl-ssi-$(CONFIG_DEBUG_FS) += fsl_ssi_dbg.o
|
2013-08-21 03:13:16 +00:00
|
|
|
snd-soc-fsl-spdif-objs := fsl_spdif.o
|
2014-01-10 09:54:06 +00:00
|
|
|
snd-soc-fsl-esai-objs := fsl_esai.o
|
2019-01-04 09:17:38 +00:00
|
|
|
snd-soc-fsl-micfil-objs := fsl_micfil.o
|
2012-03-16 08:56:40 +00:00
|
|
|
snd-soc-fsl-utils-objs := fsl_utils.o
|
2009-01-19 17:57:46 +00:00
|
|
|
snd-soc-fsl-dma-objs := fsl_dma.o
|
2019-09-13 09:42:14 +00:00
|
|
|
snd-soc-fsl-mqs-objs := fsl_mqs.o
|
2020-04-16 12:25:37 +00:00
|
|
|
snd-soc-fsl-easrc-objs := fsl_easrc.o
|
2020-10-13 12:17:32 +00:00
|
|
|
snd-soc-fsl-xcvr-objs := fsl_xcvr.o
|
2020-11-02 01:52:27 +00:00
|
|
|
snd-soc-fsl-aud2htx-objs := fsl_aud2htx.o
|
2021-03-12 02:38:41 +00:00
|
|
|
snd-soc-fsl-rpmsg-objs := fsl_rpmsg.o
|
2023-02-17 14:56:44 +00:00
|
|
|
snd-soc-fsl-qmc-audio-objs := fsl_qmc_audio.o
|
2019-01-22 11:14:26 +00:00
|
|
|
|
|
|
|
obj-$(CONFIG_SND_SOC_FSL_AUDMIX) += snd-soc-fsl-audmix.o
|
ASoC: fsl: Add Freescale Generic ASoC Sound Card with ASRC support
The Freescale Generic ASoC Sound Card is a general ASoC DAI Link driver that
can be used, ideally, for all Freescale CPU DAI drivers and external CODECs.
The idea of this generic sound card is a bit like ASoC Simple Card. However,
for Freescale SoCs (especially those released in recent years), most of them
have ASRC (Documentation/devicetree/bindings/sound/fsl,asrc.txt) inside. And
this is a specific feature that might be painstakingly controlled and merged
into the Simple Card driver.
So having this driver will allow all Freescale SoC users to benefit from the
simplification to support a new card and the capability of wide sample rates
support through ASRC.
The driver is initially designed for sound card using I2S or PCM DAI formats.
However, it's also possible to merge those non-I2S/PCM type sound cards, such
as S/PDIF audio and HDMI audio, into this card as long as the merge will not
break the original function and as long as there is something redundant that
can be abstracted along with I2S type sound cards.
As an initial version, it only supports three cards that I can test:
imx-audio-cs42888, a new card that links ESAI with CS42888 CODEC
imx-audio-sgtl5000, just like the old imx-sgtl5000.c driver
imx-audio-wm8962, just like the old imx-wm8962.c driver
The driver is also compatible with the old Device Tree bindings of WM8962 and
SGTL5000. So we may consider to remove those two drivers after this driver is
totally enabled. (It needs to be added into defconfig)
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2014-07-30 11:27:38 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_ASOC_CARD) += snd-soc-fsl-asoc-card.o
|
2014-07-29 10:08:53 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_ASRC) += snd-soc-fsl-asrc.o
|
2013-12-17 03:24:38 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_SAI) += snd-soc-fsl-sai.o
|
2012-03-16 08:56:37 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_SSI) += snd-soc-fsl-ssi.o
|
2013-08-21 03:13:16 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_SPDIF) += snd-soc-fsl-spdif.o
|
2014-01-10 09:54:06 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_ESAI) += snd-soc-fsl-esai.o
|
2019-01-04 09:17:38 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_MICFIL) += snd-soc-fsl-micfil.o
|
2012-03-16 08:56:40 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_UTILS) += snd-soc-fsl-utils.o
|
2019-09-13 09:42:14 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_MQS) += snd-soc-fsl-mqs.o
|
2020-04-16 12:25:37 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_EASRC) += snd-soc-fsl-easrc.o
|
2012-03-16 08:56:37 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_POWERPC_DMA) += snd-soc-fsl-dma.o
|
2020-10-13 12:17:32 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_XCVR) += snd-soc-fsl-xcvr.o
|
2020-11-02 01:52:27 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_AUD2HTX) += snd-soc-fsl-aud2htx.o
|
2021-03-12 02:38:41 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_FSL_RPMSG) += snd-soc-fsl-rpmsg.o
|
2023-02-17 14:56:44 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_POWERPC_QMC_AUDIO) += snd-soc-fsl-qmc-audio.o
|
2008-01-11 17:15:26 +00:00
|
|
|
|
2009-05-23 23:12:59 +00:00
|
|
|
# MPC5200 Platform Support
|
|
|
|
obj-$(CONFIG_SND_MPC52xx_DMA) += mpc5200_dma.o
|
2008-07-29 10:42:30 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_MPC5200_I2S) += mpc5200_psc_i2s.o
|
2009-05-26 12:34:10 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_MPC5200_AC97) += mpc5200_psc_ac97.o
|
2008-07-29 10:42:30 +00:00
|
|
|
|
2009-05-26 12:34:12 +00:00
|
|
|
# MPC5200 Machine Support
|
|
|
|
obj-$(CONFIG_SND_MPC52xx_SOC_PCM030) += pcm030-audio-fabric.o
|
2009-05-26 12:34:14 +00:00
|
|
|
obj-$(CONFIG_SND_MPC52xx_SOC_EFIKA) += efika-audio-fabric.o
|
2009-05-26 12:34:12 +00:00
|
|
|
|
2012-03-16 08:56:38 +00:00
|
|
|
# i.MX Platform Support
|
|
|
|
snd-soc-imx-audmux-objs := imx-audmux.o
|
|
|
|
obj-$(CONFIG_SND_SOC_IMX_AUDMUX) += snd-soc-imx-audmux.o
|
|
|
|
|
2013-04-25 03:18:50 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_PCM_FIQ) += imx-pcm-fiq.o
|
|
|
|
obj-$(CONFIG_SND_SOC_IMX_PCM_DMA) += imx-pcm-dma.o
|
2021-03-12 02:38:43 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_AUDIO_RPMSG) += imx-audio-rpmsg.o
|
ASoC: imx-pcm-rpmsg: Add platform driver for audio base on rpmsg
Platform driver based on rpmsg is the interface for sending and
receiving rpmsg to and from M core. It will tell the Cortex-M core
sound format/rate/channel, where is the data buffer, where is
the period size, when to start, when to stop and when suspend
or resume happen, each this behavior there is defined rpmsg
command.
Especially we designed the low power audio case, that is to
allocate a large buffer and fill the data, then Cortex-A core can go
to sleep mode, Cortex-M core continue to play the sound, when the
buffer is consumed, Cortex-M core will trigger the Cortex-A core to
wake up.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1615516725-4975-6-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-03-12 02:38:44 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_PCM_RPMSG) += imx-pcm-rpmsg.o
|
2012-03-16 08:56:38 +00:00
|
|
|
|
|
|
|
# i.MX Machine Support
|
|
|
|
snd-soc-eukrea-tlv320-objs := eukrea-tlv320.o
|
2014-07-31 02:43:37 +00:00
|
|
|
snd-soc-imx-es8328-objs := imx-es8328.o
|
2012-03-16 08:56:44 +00:00
|
|
|
snd-soc-imx-sgtl5000-objs := imx-sgtl5000.o
|
2013-08-30 09:39:00 +00:00
|
|
|
snd-soc-imx-spdif-objs := imx-spdif.o
|
2019-01-22 11:14:30 +00:00
|
|
|
snd-soc-imx-audmix-objs := imx-audmix.o
|
2020-12-06 10:41:59 +00:00
|
|
|
snd-soc-imx-hdmi-objs := imx-hdmi.o
|
2021-03-12 02:38:45 +00:00
|
|
|
snd-soc-imx-rpmsg-objs := imx-rpmsg.o
|
2021-05-17 10:31:28 +00:00
|
|
|
snd-soc-imx-card-objs := imx-card.o
|
2012-03-16 08:56:38 +00:00
|
|
|
|
|
|
|
obj-$(CONFIG_SND_SOC_EUKREA_TLV320) += snd-soc-eukrea-tlv320.o
|
2014-07-31 02:43:37 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_ES8328) += snd-soc-imx-es8328.o
|
2012-03-16 08:56:44 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_SGTL5000) += snd-soc-imx-sgtl5000.o
|
2013-08-28 04:04:46 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_SPDIF) += snd-soc-imx-spdif.o
|
2019-01-22 11:14:30 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_AUDMIX) += snd-soc-imx-audmix.o
|
2020-12-06 10:41:59 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_HDMI) += snd-soc-imx-hdmi.o
|
2021-03-12 02:38:45 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_RPMSG) += snd-soc-imx-rpmsg.o
|
2021-05-17 10:31:28 +00:00
|
|
|
obj-$(CONFIG_SND_SOC_IMX_CARD) += snd-soc-imx-card.o
|