Re: [PATCH v2 2/8] ASoC: codecs: wcd937x: add wcd937x codec driver

Konrad Dybcio
2024-04-17T20:41:03Z

On 16.04.2024 8:35 AM, Prasad Kumpatla wrote:
> This patch adds basic SoundWire codec driver to support for
> WCD937X TX and RX devices.
>
> WCD937x has Multi Button Headset Control hardware to support Headset
> insertion, type detection, 8 headset buttons detection, Over Current
> detection and Impedence measurements.
> This patch adds support for this using wcd-mbhc apis.
> ---
> sound/soc/codecs/wcd937x.c | 1583 ++++++++++++++++++++++++++++++++++++
> sound/soc/codecs/wcd937x.h | 617 ++++++++++++++
> 2 files changed, 2200 insertions(+)
> create mode 100644 sound/soc/codecs/wcd937x.c
> create mode 100644 sound/soc/codecs/wcd937x.h
>
> diff --git a/sound/soc/codecs/wcd937x.c b/sound/soc/codecs/wcd937x.c
> new file mode 100644
> index 000000000000..d29cb56630c7
> --- /dev/null
> +++ b/sound/soc/codecs/wcd937x.c
> @@ -0,0 +1,1583 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> +// Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights reserved.

Well this is pretty disappointing

This is clearly built upon my commit [1] (which itself is built upon QC
downstream, for which it retains the QuIC copyright), which can be seen
e.g. in the funny bitwise ORing in wcd937x_set_micbias_data or the
precise comments/function ordering..

Please at least include the Linaro copyright.

Konrad

[1] https://git.codelinaro.org/konrad.dybcio/linux/-/commit/a62f9c6fc53d4249e9de57898821e5ca4d2e7ca2