1. 28 Jun, 2021 5 commits
  2. 24 Jun, 2021 1 commit
  3. 23 Jun, 2021 10 commits
  4. 22 Jun, 2021 16 commits
  5. 21 Jun, 2021 8 commits
    • Mark Brown's avatar
      Merge series "ASoC: fsl: Use devm_platform_get_and_ioremap_resource()" from... · 439779ff
      Mark Brown authored
      Merge series "ASoC: fsl: Use devm_platform_get_and_ioremap_resource()" from Yang Yingliang <yangyingliang@huawei.com>:
      
      patch #1 ~ #8:
        Use devm_platform_get_and_ioremap_resource()
      
      patch #9
        check return value of platform_get_resource_byname()
      
      v2:
        change error message in patch #9
      
      Yang Yingliang (9):
        ASoC: fsl_asrc: Use devm_platform_get_and_ioremap_resource()
        ASoC: fsl_aud2htx: Use devm_platform_get_and_ioremap_resource()
        ASoC: fsl_easrc: Use devm_platform_get_and_ioremap_resource()
        ASoC: fsl_esai: Use devm_platform_get_and_ioremap_resource()
        ASoC: fsl_micfil: Use devm_platform_get_and_ioremap_resource()
        ASoC: fsl_sai: Use devm_platform_get_and_ioremap_resource()
        ASoC: fsl_spdif: Use devm_platform_get_and_ioremap_resource()
        ASoC: fsl_ssi: Use devm_platform_get_and_ioremap_resource()
        ASoC: fsl_xcvr: check return value after calling
          platform_get_resource_byname()
      
       sound/soc/fsl/fsl_asrc.c    | 3 +--
       sound/soc/fsl/fsl_aud2htx.c | 3 +--
       sound/soc/fsl/fsl_easrc.c   | 3 +--
       sound/soc/fsl/fsl_esai.c    | 3 +--
       sound/soc/fsl/fsl_micfil.c  | 3 +--
       sound/soc/fsl/fsl_sai.c     | 3 +--
       sound/soc/fsl/fsl_spdif.c   | 3 +--
       sound/soc/fsl/fsl_ssi.c     | 3 +--
       sound/soc/fsl/fsl_xcvr.c    | 4 ++++
       9 files changed, 12 insertions(+), 16 deletions(-)
      
      --
      2.25.1
      439779ff
    • Mark Brown's avatar
      Merge series "ASoC: tidyup snd_soc_of_parse_daifmt()" from Kuninori Morimoto... · d7085db6
      Mark Brown authored
      Merge series "ASoC: tidyup snd_soc_of_parse_daifmt()" from Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>:
      
      Hi Mark
      
      These are v3 of parsing for daifmt.
      
      I want to add new audio-graph-card2 sound card driver,
      and this is last part of necessary soc-core cleanup for it.
      
      Current some drivers are using DT, and then,
      snd_soc_of_parse_daifmt() parses daifmt, but bitclock/frame provider
      parsing part is one of headache, because we are assuming below both cases.
      
      A)	node {
      		bitclock-master;
      		frame-master;
      		...
      	};
      
      B)	link {
      		bitclock-master = <&xxx>;
      		frame-master = <&xxx>;
      		...
      	};
      
      The original was style A), and style B) was added later.
      
      snd_soc_of_parse_daifmt() parses A) style as original style,
      and user need to update to B) style for clock_provider part if needed.
      
      To handle it more flexibile, this patch-set adds new functions
      which separates snd_soc_of_parse_daifmt() helper function.
      
      	snd_soc_daifmt_parse_format()			: format part
      	snd_soc_daifmt_parse_clock_provider_as_flag()	: clock part for style A)
      	snd_soc_daifmt_parse_clock_provider_as_phandl()	: clock part for style B)
      	snd_soc_daifmt_parse_clock_provider_as_bitmap()	: clock part use with _from_bitmap
      
      v1 -> v2
      	- tidyup parse_clock_provider functions to _as_flag/phandle/bitmap()
      	- don't exchange code style on each drivers.
      
      v2 -> v3
      	- use daifmt as much as possible (don't use daiclk) on each driver.
      
      Link: https://lore.kernel.org/r/875yypdxlm.wl-kuninori.morimoto.gx@renesas.com
      Link: https://lore.kernel.org/r/87czsvdc4o.wl-kuninori.morimoto.gx@renesas.com
      
      Kuninori Morimoto (8):
        ASoC: soc-core: add snd_soc_daifmt_clock_provider_from_bitmap()
        ASoC: soc-core: add snd_soc_daifmt_clock_provider_fliped()
        ASoC: soc-core: add snd_soc_daifmt_parse_format/clock_provider()
        ASoC: atmel: switch to use snd_soc_daifmt_parse_format/clock_provider()
        ASoC: fsl: switch to use snd_soc_daifmt_parse_format/clock_provider()
        ASoC: meson: switch to use snd_soc_daifmt_parse_format/clock_provider()
        ASoC: simple-card-utils: switch to use snd_soc_daifmt_parse_format/clock_provider()
        ASoC: soc-core: remove snd_soc_of_parse_daifmt()
      
       include/sound/soc.h                   |  21 ++++-
       sound/soc/atmel/mikroe-proto.c        |   9 ++-
       sound/soc/fsl/fsl-asoc-card.c         |   7 +-
       sound/soc/generic/simple-card-utils.c |  16 ++--
       sound/soc/meson/meson-card-utils.c    |   6 +-
       sound/soc/soc-core.c                  | 109 +++++++++++++++++---------
       6 files changed, 106 insertions(+), 62 deletions(-)
      
      --
      2.25.1
      d7085db6
    • Mark Brown's avatar
      Merge series "ASoC: sunxi: Use devm_platform_get_and_ioremap_resource()" from... · ef7eb57d
      Mark Brown authored
      Merge series "ASoC: sunxi: Use devm_platform_get_and_ioremap_resource()" from Yang Yingliang <yangyingliang@huawei.com>:
      
      Use devm_platform_get_and_ioremap_resource() to simplify
      code.
      
      Yang Yingliang (3):
        ASoC: sunxi: sun4i-codec: Use devm_platform_get_and_ioremap_resource()
        ASoC: sun4i-i2s: Use devm_platform_get_and_ioremap_resource()
        ASoC: sunxi: sun4i-spdif: Use devm_platform_get_and_ioremap_resource()
      
       sound/soc/sunxi/sun4i-codec.c | 3 +--
       sound/soc/sunxi/sun4i-i2s.c   | 3 +--
       sound/soc/sunxi/sun4i-spdif.c | 3 +--
       3 files changed, 3 insertions(+), 6 deletions(-)
      
      --
      2.25.1
      ef7eb57d
    • Mark Brown's avatar
      Merge series "ASoC: samsung: Use devm_platform_get_and_ioremap_resource()"... · b4fd4ea7
      Mark Brown authored
      Merge series "ASoC: samsung: Use devm_platform_get_and_ioremap_resource()" from Yang Yingliang <yangyingliang@huawei.com>:
      
      Use devm_platform_get_and_ioremap_resource() to simplify
      code.
      
      Yang Yingliang (4):
        ASoC: samsung: i2s: Use devm_platform_get_and_ioremap_resource()
        ASoC: samsung: pcm: Use devm_platform_get_and_ioremap_resource()
        ASoC: samsung: s3c2412-i2s: Use
          devm_platform_get_and_ioremap_resource()
        ASoC: samsung: s3c24xx-i2s: Use
          devm_platform_get_and_ioremap_resource()
      
       sound/soc/samsung/i2s.c         | 3 +--
       sound/soc/samsung/pcm.c         | 3 +--
       sound/soc/samsung/s3c2412-i2s.c | 3 +--
       sound/soc/samsung/s3c24xx-i2s.c | 3 +--
       4 files changed, 4 insertions(+), 8 deletions(-)
      
      --
      2.25.1
      b4fd4ea7
    • Shengjiu Wang's avatar
      ASoC: fsl_xcvr: disable all interrupts when suspend happens · ea837090
      Shengjiu Wang authored
      There is an unhandled interrupt after suspend, which cause endless
      interrupt when system resume, so system may hang.
      
      Disable all interrupts in runtime suspend callback to avoid above
      issue.
      
      Fixes: 28564486 ("ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver")
      Signed-off-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
      Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
      Link: https://lore.kernel.org/r/1624019913-3380-1-git-send-email-shengjiu.wang@nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      ea837090
    • Dan Carpenter's avatar
      ASoC: tegra: Fix a NULL vs IS_ERR() check · 3aed3ddf
      Dan Carpenter authored
      The tegra_machine_parse_phandle() function doesn't return NULL, it returns
      error pointers.
      
      Fixes: cc8f70f5 ("ASoC: tegra: Unify ASoC machine drivers")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarDmitry Osipenko <digetx@gmail.com>
      Link: https://lore.kernel.org/r/YMyjOKFsPe9SietU@mwandaSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      3aed3ddf
    • Yang Yingliang's avatar
      77b7bae7
    • Yang Yingliang's avatar
      e6bb5181