1. 30 Jul, 2020 1 commit
  2. 29 Jul, 2020 3 commits
  3. 28 Jul, 2020 9 commits
  4. 27 Jul, 2020 5 commits
  5. 24 Jul, 2020 12 commits
  6. 23 Jul, 2020 10 commits
    • Mark Brown's avatar
      Merge series "ASoC: add asoc_substream_to_rtd() macro" from Kuninori Morimoto... · d1e2a97b
      Mark Brown authored
      Merge series "ASoC: add asoc_substream_to_rtd() macro" from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:
      
      Hi Mark
      
      Many ASoC drivers are getting rtd from substream by
      
      	rtd = substream->private_data
      
      OTOH, we have snd_pcm_substream_chip() macro for it.
      
      	#define snd_pcm_substream_chip(substream) ((substream)->private_data)
      
      But, both are not understandable for reader.
      This patch adds new asoc_substream_to_rtd() which is easy to understand.
      
      These are not important, but for readable code.
      
      Kuninori Morimoto (29):
        ASoC: soc-xxx: add asoc_substream_to_rtd()
        ASoC: ux500: use asoc_substream_to_rtd()
        ASoC: ti: use asoc_substream_to_rtd()
        ASoC: tegra: use asoc_substream_to_rtd()
        ASoC: sunxi: use asoc_substream_to_rtd()
        ASoC: stm: use asoc_substream_to_rtd()
        ASoC: sof: use asoc_substream_to_rtd()
        ASoC: sh: use asoc_substream_to_rtd()
        ASoC: samsung: use asoc_substream_to_rtd()
        ASoC: pxa: use asoc_substream_to_rtd()
        ASoC: cirrus: use asoc_substream_to_rtd()
        ASoC: rockchip: use asoc_substream_to_rtd()
        ASoC: amd: use asoc_substream_to_rtd()
        ASoC: fsl: use asoc_substream_to_rtd()
        ASoC: mediatek: use asoc_substream_to_rtd()
        ASoC: atmel: use asoc_substream_to_rtd()
        ASoC: qcom: use asoc_substream_to_rtd()
        ASoC: dwc: use asoc_substream_to_rtd()
        ASoC: intel: use asoc_substream_to_rtd()
        ASoC: meson: use asoc_substream_to_rtd()
        ASoC: au1x: use asoc_substream_to_rtd()
        ASoC: bcm: use asoc_substream_to_rtd()
        ASoC: codecs: use asoc_substream_to_rtd()
        ASoC: generic: use asoc_substream_to_rtd()
        ASoC: sprd: use asoc_substream_to_rtd()
        ASoC: kirkwood: use asoc_substream_to_rtd()
        ASoC: xtensa: use asoc_substream_to_rtd()
        ASoC: mxs: use asoc_substream_to_rtd()
        ASoC: uniphier: use asoc_substream_to_rtd()
      
       include/sound/soc.h                           |  2 +
       sound/soc/amd/acp-da7219-max98357a.c          | 12 ++--
       sound/soc/amd/acp-pcm-dma.c                   |  2 +-
       sound/soc/amd/acp-rt5645.c                    |  2 +-
       sound/soc/amd/acp3x-rt5682-max9836.c          |  8 +--
       sound/soc/amd/raven/acp3x-i2s.c               |  2 +-
       sound/soc/amd/raven/acp3x-pcm-dma.c           |  6 +-
       sound/soc/atmel/atmel-classd.c                |  8 +--
       sound/soc/atmel/atmel-pcm-dma.c               |  4 +-
       sound/soc/atmel/atmel-pcm-pdc.c               |  2 +-
       sound/soc/atmel/atmel-pdmic.c                 | 10 +--
       sound/soc/atmel/atmel_wm8904.c                |  2 +-
       sound/soc/au1x/db1200.c                       |  2 +-
       sound/soc/au1x/dbdma2.c                       |  2 +-
       sound/soc/au1x/dma.c                          |  2 +-
       sound/soc/bcm/bcm63xx-pcm-whistler.c          | 12 ++--
       sound/soc/bcm/cygnus-pcm.c                    | 16 ++---
       sound/soc/cirrus/edb93xx.c                    |  2 +-
       sound/soc/cirrus/snappercl15.c                |  2 +-
       sound/soc/codecs/rt5677-spi.c                 |  4 +-
       sound/soc/dwc/dwc-pcm.c                       |  2 +-
       sound/soc/fsl/eukrea-tlv320.c                 |  2 +-
       sound/soc/fsl/fsl-asoc-card.c                 |  2 +-
       sound/soc/fsl/fsl_asrc_dma.c                  |  4 +-
       sound/soc/fsl/fsl_dma.c                       |  2 +-
       sound/soc/fsl/fsl_spdif.c                     | 10 +--
       sound/soc/fsl/fsl_ssi.c                       |  8 +--
       sound/soc/fsl/imx-audmix.c                    |  6 +-
       sound/soc/fsl/imx-mc13783.c                   |  2 +-
       sound/soc/fsl/mpc5200_dma.c                   |  8 +--
       sound/soc/fsl/mpc5200_psc_i2s.c               |  2 +-
       sound/soc/fsl/mpc8610_hpcd.c                  |  2 +-
       sound/soc/fsl/mx27vis-aic32x4.c               |  2 +-
       sound/soc/fsl/p1022_ds.c                      |  2 +-
       sound/soc/fsl/p1022_rdk.c                     |  2 +-
       sound/soc/fsl/wm1133-ev1.c                    |  2 +-
       sound/soc/generic/simple-card-utils.c         |  6 +-
       sound/soc/intel/atom/sst-mfld-platform-pcm.c  |  6 +-
       sound/soc/intel/baytrail/sst-baytrail-pcm.c   | 16 ++---
       sound/soc/intel/boards/bdw-rt5650.c           |  2 +-
       sound/soc/intel/boards/bdw-rt5677.c           |  4 +-
       sound/soc/intel/boards/broadwell.c            |  2 +-
       sound/soc/intel/boards/bxt_rt298.c            |  2 +-
       sound/soc/intel/boards/byt-rt5640.c           |  2 +-
       sound/soc/intel/boards/bytcht_da7213.c        |  4 +-
       sound/soc/intel/boards/bytcr_rt5640.c         |  2 +-
       sound/soc/intel/boards/bytcr_rt5651.c         |  2 +-
       sound/soc/intel/boards/cht_bsw_max98090_ti.c  |  2 +-
       sound/soc/intel/boards/cht_bsw_nau8824.c      |  2 +-
       sound/soc/intel/boards/cht_bsw_rt5645.c       |  2 +-
       sound/soc/intel/boards/cht_bsw_rt5672.c       |  2 +-
       sound/soc/intel/boards/cml_rt1011_rt5682.c    |  4 +-
       sound/soc/intel/boards/ehl_rt5660.c           |  2 +-
       sound/soc/intel/boards/glk_rt5682_max98357a.c |  2 +-
       sound/soc/intel/boards/haswell.c              |  2 +-
       sound/soc/intel/boards/kbl_da7219_max98927.c  |  8 +--
       sound/soc/intel/boards/kbl_rt5660.c           |  2 +-
       sound/soc/intel/boards/kbl_rt5663_max98927.c  |  4 +-
       .../intel/boards/kbl_rt5663_rt5514_max98927.c |  4 +-
       .../soc/intel/boards/skl_nau88l25_max98357a.c |  2 +-
       sound/soc/intel/boards/skl_nau88l25_ssm4567.c |  2 +-
       sound/soc/intel/boards/skl_rt286.c            |  2 +-
       sound/soc/intel/boards/sof_da7219_max98373.c  |  2 +-
       sound/soc/intel/boards/sof_maxim_common.c     |  4 +-
       sound/soc/intel/boards/sof_pcm512x.c          |  4 +-
       sound/soc/intel/boards/sof_rt5682.c           |  4 +-
       sound/soc/intel/boards/sof_sdw_rt1308.c       |  2 +-
       sound/soc/intel/boards/sof_wm8804.c           |  2 +-
       sound/soc/intel/haswell/sst-haswell-pcm.c     | 12 ++--
       sound/soc/intel/keembay/kmb_platform.c        |  2 +-
       sound/soc/intel/skylake/skl-pcm.c             |  8 +--
       sound/soc/kirkwood/armada-370-db.c            |  2 +-
       sound/soc/mediatek/common/mtk-afe-fe-dai.c    | 12 ++--
       .../mediatek/common/mtk-afe-platform-driver.c |  2 +-
       sound/soc/mediatek/mt2701/mt2701-afe-pcm.c    |  2 +-
       sound/soc/mediatek/mt2701/mt2701-cs42448.c    |  2 +-
       sound/soc/mediatek/mt2701/mt2701-wm8960.c     |  2 +-
       sound/soc/mediatek/mt6797/mt6797-afe-pcm.c    |  4 +-
       sound/soc/mediatek/mt8173/mt8173-afe-pcm.c    |  2 +-
       sound/soc/mediatek/mt8173/mt8173-max98090.c   |  2 +-
       .../mediatek/mt8173/mt8173-rt5650-rt5514.c    |  2 +-
       .../mediatek/mt8173/mt8173-rt5650-rt5676.c    |  2 +-
       sound/soc/mediatek/mt8173/mt8173-rt5650.c     |  2 +-
       sound/soc/mediatek/mt8183/mt8183-afe-pcm.c    |  4 +-
       .../mediatek/mt8183/mt8183-da7219-max98357.c  |  8 +--
       .../mt8183/mt8183-mt6358-ts3a227-max98357.c   | 12 ++--
       sound/soc/meson/axg-card.c                    |  2 +-
       sound/soc/meson/gx-card.c                     |  2 +-
       sound/soc/meson/meson-card-utils.c            |  2 +-
       sound/soc/meson/meson-codec-glue.c            |  2 +-
       sound/soc/mxs/mxs-sgtl5000.c                  |  2 +-
       sound/soc/pxa/brownstone.c                    |  2 +-
       sound/soc/pxa/corgi.c                         |  4 +-
       sound/soc/pxa/hx4700.c                        |  2 +-
       sound/soc/pxa/imote2.c                        |  2 +-
       sound/soc/pxa/magician.c                      |  6 +-
       sound/soc/pxa/mmp-pcm.c                       |  2 +-
       sound/soc/pxa/poodle.c                        |  4 +-
       sound/soc/pxa/pxa2xx-i2s.c                    |  2 +-
       sound/soc/pxa/spitz.c                         |  4 +-
       sound/soc/pxa/tosa.c                          |  2 +-
       sound/soc/pxa/z2.c                            |  2 +-
       sound/soc/pxa/zylonite.c                      |  2 +-
       sound/soc/qcom/apq8096.c                      |  2 +-
       sound/soc/qcom/lpass-platform.c               | 14 ++---
       sound/soc/qcom/qdsp6/q6asm-dai.c              |  6 +-
       sound/soc/qcom/qdsp6/q6routing.c              |  2 +-
       sound/soc/qcom/sdm845.c                       | 14 ++---
       sound/soc/qcom/storm.c                        |  2 +-
       sound/soc/rockchip/rk3288_hdmi_analog.c       |  2 +-
       sound/soc/rockchip/rk3399_gru_sound.c         |  8 +--
       sound/soc/rockchip/rockchip_i2s.c             |  2 +-
       sound/soc/rockchip/rockchip_max98090.c        |  2 +-
       sound/soc/rockchip/rockchip_rt5645.c          |  2 +-
       sound/soc/samsung/aries_wm8994.c              |  4 +-
       sound/soc/samsung/arndale.c                   |  4 +-
       sound/soc/samsung/h1940_uda1380.c             |  2 +-
       sound/soc/samsung/i2s.c                       |  2 +-
       sound/soc/samsung/jive_wm8750.c               |  2 +-
       sound/soc/samsung/littlemill.c                |  2 +-
       sound/soc/samsung/neo1973_wm8753.c            |  8 +--
       sound/soc/samsung/odroid.c                    |  6 +-
       sound/soc/samsung/pcm.c                       |  4 +-
       sound/soc/samsung/rx1950_uda1380.c            |  2 +-
       sound/soc/samsung/s3c-i2s-v2.c                |  2 +-
       sound/soc/samsung/s3c24xx_simtec.c            |  2 +-
       sound/soc/samsung/s3c24xx_uda134x.c           |  6 +-
       sound/soc/samsung/smartq_wm8987.c             |  2 +-
       sound/soc/samsung/smdk_spdif.c                |  2 +-
       sound/soc/samsung/smdk_wm8580.c               |  2 +-
       sound/soc/samsung/smdk_wm8994.c               |  2 +-
       sound/soc/samsung/smdk_wm8994pcm.c            |  2 +-
       sound/soc/samsung/snow.c                      |  2 +-
       sound/soc/samsung/spdif.c                     |  6 +-
       sound/soc/samsung/tm2_wm5110.c                |  8 +--
       sound/soc/sh/dma-sh7760.c                     | 12 ++--
       sound/soc/sh/fsi.c                            |  2 +-
       sound/soc/sh/migor.c                          |  4 +-
       sound/soc/sh/rcar/core.c                      |  4 +-
       sound/soc/soc-component.c                     | 20 +++---
       sound/soc/soc-dai.c                           |  8 +--
       sound/soc/soc-dapm.c                          |  6 +-
       sound/soc/soc-generic-dmaengine-pcm.c         |  4 +-
       sound/soc/soc-link.c                          | 12 ++--
       sound/soc/soc-pcm.c                           | 62 +++++++++----------
       sound/soc/soc-utils.c                         |  2 +-
       sound/soc/sof/intel/hda-dai.c                 | 10 +--
       sound/soc/sof/intel/hda-dsp.c                 |  2 +-
       sound/soc/sof/intel/hda-pcm.c                 |  2 +-
       sound/soc/sof/pcm.c                           | 18 +++---
       sound/soc/sprd/sprd-pcm-dma.c                 |  2 +-
       sound/soc/stm/stm32_adfsdm.c                  | 12 ++--
       sound/soc/stm/stm32_sai_sub.c                 |  2 +-
       sound/soc/sunxi/sun4i-codec.c                 | 12 ++--
       sound/soc/sunxi/sun4i-spdif.c                 |  2 +-
       sound/soc/tegra/tegra_alc5632.c               |  2 +-
       sound/soc/tegra/tegra_max98090.c              |  2 +-
       sound/soc/tegra/tegra_rt5640.c                |  2 +-
       sound/soc/tegra/tegra_rt5677.c                |  2 +-
       sound/soc/tegra/tegra_sgtl5000.c              |  2 +-
       sound/soc/tegra/tegra_wm8753.c                |  2 +-
       sound/soc/tegra/tegra_wm8903.c                |  2 +-
       sound/soc/tegra/trimslice.c                   |  2 +-
       sound/soc/ti/davinci-evm.c                    |  6 +-
       sound/soc/ti/davinci-vcif.c                   |  4 +-
       sound/soc/ti/j721e-evm.c                      |  6 +-
       sound/soc/ti/n810.c                           |  4 +-
       sound/soc/ti/omap-abe-twl6040.c               |  4 +-
       sound/soc/ti/omap-mcbsp.c                     |  4 +-
       sound/soc/ti/omap-twl4030.c                   |  2 +-
       sound/soc/ti/omap3pandora.c                   |  2 +-
       sound/soc/ti/osk5912.c                        |  2 +-
       sound/soc/ti/rx51.c                           |  4 +-
       sound/soc/uniphier/aio-dma.c                  |  6 +-
       sound/soc/ux500/mop500_ab8500.c               |  8 +--
       sound/soc/ux500/ux500_pcm.c                   |  2 +-
       sound/soc/xtensa/xtfpga-i2s.c                 |  2 +-
       177 files changed, 397 insertions(+), 395 deletions(-)
      
      --
      2.25.1
      d1e2a97b
    • Katsuhiro Suzuki's avatar
      ASoC: convert ROHM BD28623 amplifier binding to yaml · 7349885d
      Katsuhiro Suzuki authored
      This patch converts ROHM BD28623UMV class D speaker amplifier binding
      to DT schema.
      Signed-off-by: default avatarKatsuhiro Suzuki <katsuhiro@katsuster.net>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20200722174215.988974-1-katsuhiro@katsuster.netSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      7349885d
    • Shengjiu Wang's avatar
      ASoC: bindings: fsl-asoc-card: Support properties for configuring dai fmt · ca168352
      Shengjiu Wang authored
      In order to support configuring dai fmt through DT, add some properties.
      These properiese are same as the properties in simple card.
      Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
      Acked-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
      Link: https://lore.kernel.org/r/1595302910-19688-2-git-send-email-shengjiu.wang@nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      ca168352
    • Shengjiu Wang's avatar
      ASoC: fsl-asoc-card: Support configuring dai fmt from DT · 08b54b5e
      Shengjiu Wang authored
      Support same propeties as simple card for configuring fmt
      from DT.
      In order to make this change compatible with old DT, these
      properties are optional.
      Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
      Acked-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
      Link: https://lore.kernel.org/r/1595302910-19688-1-git-send-email-shengjiu.wang@nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      08b54b5e
    • Shengjiu Wang's avatar
      ASoC: fsl_esai: add IRQF_SHARED for devm_request_irq · c8361757
      Shengjiu Wang authored
      ESAI interfaces may share same interrupt line with EDMA on
      some platforms (e.g. i.MX8QXP, i.MX8QM).
      Add IRQF_SHARED flag to allow sharing the irq among several
      devices
      Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
      Signed-off-by: default avatarViorel Suman <viorel.suman@nxp.com>
      Acked-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
      Link: https://lore.kernel.org/r/1595476808-28927-1-git-send-email-shengjiu.wang@nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      c8361757
    • Sameer Pujar's avatar
      ASoC: tegra: Fix build error due to 64-by-32 division · f9ec176c
      Sameer Pujar authored
      Build errors are seen on 32-bit platforms because of a plain 64-by-32
      division. For example, following build erros were reported.
      
      "ERROR: modpost: "__udivdi3" [sound/soc/tegra/snd-soc-tegra210-dmic.ko]
       undefined!"
      "ERROR: modpost: "__divdi3" [sound/soc/tegra/snd-soc-tegra210-dmic.ko]
       undefined!"
      
      This can be fixed by using div_u64() helper from 'math64.h' header.
      
      Fixes: 8c8ff982 ("ASoC: tegra: Add Tegra210 based DMIC driver")
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarSameer Pujar <spujar@nvidia.com>
      Link: https://lore.kernel.org/r/1595492011-2411-1-git-send-email-spujar@nvidia.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      f9ec176c
    • Randy Dunlap's avatar
      ASoC: ti: fix SND_SOC_J721E_EVM warnings & errors · 83249952
      Randy Dunlap authored
      SND_SOC_J721E_EVM should not select SND_SOC_PCM3168A_I2C when I2C
      is not enabled. That causes build errors, so make this driver's
      symbol depend on I2C.
      
      WARNING: unmet direct dependencies detected for SND_SOC_PCM3168A_I2C
        Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && I2C [=n]
        Selected by [m]:
        - SND_SOC_J721E_EVM [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && (DMA_OMAP [=y] || TI_EDMA [=m] || TI_K3_UDMA [=n] || COMPILE_TEST [=y]) && (ARCH_K3_J721E_SOC [=n] || COMPILE_TEST [=y])
      
      ../sound/soc/codecs/pcm3168a-i2c.c:59:1: warning: data definition has no type or storage class
       module_i2c_driver(pcm3168a_i2c_driver);
       ^~~~~~~~~~~~~~~~~
      ../sound/soc/codecs/pcm3168a-i2c.c:59:1: error: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Werror=implicit-int]
      ../sound/soc/codecs/pcm3168a-i2c.c:59:1: warning: parameter names (without types) in function declaration
      ../sound/soc/codecs/pcm3168a-i2c.c:49:26: warning: ‘pcm3168a_i2c_driver’ defined but not used [-Wunused-variable]
       static struct i2c_driver pcm3168a_i2c_driver = {
                                ^~~~~~~~~~~~~~~~~~~
      cc1: some warnings being treated as errors
      
      Fixes: 6748d055 ("ASoC: ti: Add custom machine driver for j721e EVM (CPB and IVI)")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Acked-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Peter Ujfalusi <peter.ujfalusi@ti.com>
      Cc: Mark Brown <broonie@kernel.org>
      Link: https://lore.kernel.org/r/e74c690c-c7f8-fd42-e461-4f33571df4ef@infradead.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      83249952
    • Alexander A. Klimov's avatar
      ASoC: omap: Replace HTTP links with HTTPS ones · 3323a148
      Alexander A. Klimov authored
      Rationale:
      Reduces attack surface on kernel devs opening the links for MITM
      as HTTPS traffic is much harder to manipulate.
      
      Deterministic algorithm:
      For each file:
        If not .svg:
          For each line:
            If doesn't contain `\bxmlns\b`:
              For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
      	  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
                  If both the HTTP and HTTPS versions
                  return 200 OK and serve the same content:
                    Replace HTTP with HTTPS.
      Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
      Link: https://lore.kernel.org/r/20200718112403.13709-1-grandmaster@al2klimov.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      3323a148
    • James Schulman's avatar
      ASoC: wm_adsp: Support new metadata block ID's · 779bedff
      James Schulman authored
      Coefficient files now support additional metadata blocks, these
      contain machine parsable text strings describing the parameters
      contained in the coefficient file.
      Signed-off-by: default avatarJames Schulman <james.schulman@cirrus.com>
      Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
      Link: https://lore.kernel.org/r/20200723110321.16382-1-ckeepax@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      779bedff
    • Alexander A. Klimov's avatar
      ASoC: fsl: Replace HTTP links with HTTPS ones · 1ce8f643
      Alexander A. Klimov authored
      Rationale:
      Reduces attack surface on kernel devs opening the links for MITM
      as HTTPS traffic is much harder to manipulate.
      
      Deterministic algorithm:
      For each file:
        If not .svg:
          For each line:
            If doesn't contain `\bxmlns\b`:
              For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
      	  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
                  If both the HTTP and HTTPS versions
                  return 200 OK and serve the same content:
                    Replace HTTP with HTTPS.
      Signed-off-by: default avatarAlexander A. Klimov <grandmaster@al2klimov.de>
      Link: https://lore.kernel.org/r/20200718111209.11760-1-grandmaster@al2klimov.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      1ce8f643