1. 05 Nov, 2021 7 commits
  2. 04 Nov, 2021 1 commit
  3. 02 Nov, 2021 1 commit
  4. 29 Oct, 2021 26 commits
  5. 28 Oct, 2021 2 commits
    • Nathan Chancellor's avatar
      ASoC: qdsp6: audioreach: Fix clang -Wimplicit-fallthrough · c6c203bc
      Nathan Chancellor authored
      Clang warns:
      
      sound/soc/qcom/qdsp6/topology.c:465:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
                      default:
                      ^
      sound/soc/qcom/qdsp6/topology.c:465:3: note: insert 'break;' to avoid fall-through
                      default:
                      ^
                      break;
      1 warning generated.
      
      Clang is a little more pedantic than GCC, which permits implicit
      fallthroughs to cases that contain just break or return. Clang's version
      is more in line with the kernel's own stance in deprecated.rst, which
      states that all switch/case blocks must end in either break,
      fallthrough, continue, goto, or return. Add the missing break to fix
      the warning.
      
      Link: https://github.com/ClangBuiltLinux/linux/issues/1495Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
      Link: https://lore.kernel.org/r/20211027190823.4057382-1-nathan@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      c6c203bc
    • Julian Braha's avatar
      ASoC: fix unmet dependencies on GPIOLIB for SND_SOC_DMIC · 5c7dee44
      Julian Braha authored
      When SND_SOC_AMD_RENOIR_MACH or SND_SOC_AMD_RV_RT5682_MACH
      are selected, and GPIOLIB is not selected, Kbuild gives
      the following warnings, respectively:
      
      WARNING: unmet direct dependencies detected for SND_SOC_DMIC
        Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && GPIOLIB [=n]
        Selected by [y]:
        - SND_SOC_AMD_RENOIR_MACH [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_SOC_AMD_RENOIR [=y]
      
      and
      
      WARNING: unmet direct dependencies detected for SND_SOC_MAX98357A
        Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && GPIOLIB [=n]
        Selected by [y]:
        - SND_SOC_AMD_RV_RT5682_MACH [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && SND_SOC_AMD_ACP3x [=y] && I2C [=y] && CROS_EC [=y]
      
      This is because SND_SOC_DMIC and SND_SOC_MAX98357A are
      selected by SND_SOC_AMD_RV_RT5682_MACH and SND_SOC_AMD_RENOIR_MACH,
      respectively. However, neither of the selectors depend on or select GPIOLIB,
      despite their selectees depending on GPIOLIB.
      
      These unmet dependency bugs were detected by Kismet,
      a static analysis tool for Kconfig. Please advise if this
      is not the appropriate solution.
      Signed-off-by: default avatarJulian Braha <julianbraha@gmail.com>
      Link: https://lore.kernel.org/r/20211027184835.112916-1-julianbraha@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      5c7dee44
  6. 27 Oct, 2021 3 commits
    • Arnd Bergmann's avatar
      ASoC: amd: acp: fix Kconfig dependencies · 1dcc81d9
      Arnd Bergmann authored
      The CONFIG_SND_SOC_AMD_MACH_COMMON has some dependencies that
      are not checked by the symbols that select it:
      
      WARNING: unmet direct dependencies detected for SND_SOC_AMD_MACH_COMMON
        Depends on [n]: SOUND [=y] && !UML && SND [=m] && SND_SOC [=m] && X86 && PCI [=y] && I2C [=n]
        Selected by [m]:
        - SND_SOC_AMD_LEGACY_MACH [=m] && SOUND [=y] && !UML && SND [=m] && SND_SOC [=m]
        - SND_SOC_AMD_SOF_MACH [=m] && SOUND [=y] && !UML && SND [=m] && SND_SOC [=m]
      
      WARNING: unmet direct dependencies detected for SND_SOC_AMD_MACH_COMMON
        Depends on [n]: SOUND [=m] && !UML && SND [=m] && SND_SOC [=m] && X86 && PCI [=n] && I2C [=m]
        Selected by [m]:
        - SND_SOC_AMD_LEGACY_MACH [=m] && SOUND [=m] && !UML && SND [=m] && SND_SOC [=m]
      
      Make this more consistent by adding the same checks everywhere.
      
      Fixes: 9d8a7be8 ("ASoC: amd: acp: Add legacy sound card support for Chrome audio")
      Fixes: 9f84940f ("ASoC: amd: acp: Add SOF audio support on Chrome board")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Link: https://lore.kernel.org/r/20211027082359.52248-1-arnd@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      1dcc81d9
    • Mark Brown's avatar
      Merge series "Make genaral and simple for new sof machine driver" from David... · 4bff6192
      Mark Brown authored
      Merge series "Make genaral and simple for new sof machine driver" from David Lin <CTLIN0@nuvoton.com>:
      
      The series of features will make general and simple for new sof machine driver.
      
      David Lin (2):
        ASoC: nau8825: add set_jack coponment support
        ASoC: nau8825: add clock management for power saving
      
       sound/soc/codecs/nau8825.c | 48 ++++++++++++++++++++++++++++++++++++--
       1 file changed, 46 insertions(+), 2 deletions(-)
      4bff6192
    • Mark Brown's avatar
      Merge series "ASoC: minor cleanup of warnings" from Pierre-Louis Bossart... · 192cf41f
      Mark Brown authored
      Merge series "ASoC: minor cleanup of warnings" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>:
      
      Sparse, make W=1 and cppcheck all report minor warnings.
      
      The only functional change is in patch7 where the error code is now
      returned to the caller.
      
      Pierre-Louis Bossart (8):
        ASoC: topology: handle endianness warning
        ASoC: rt5682s: use 'static' qualifier
        ASoC: nau8821: fix kernel-doc
        ASoC: nau8821: clarify out-of-bounds check
        ASoC: mediatek: remove unnecessary initialization
        ASoC: mediatek: mt8195: rename shadowed array
        ASoC: mediatek: mt8195: fix return value
        ASoC: rockchip: i2s_tdm: improve return value handling
      
       sound/soc/codecs/nau8821.c                  | 6 ++++--
       sound/soc/codecs/rt5682s.c                  | 6 +++---
       sound/soc/mediatek/common/mtk-afe-fe-dai.c  | 2 +-
       sound/soc/mediatek/mt8195/mt8195-afe-pcm.c  | 4 ++--
       sound/soc/mediatek/mt8195/mt8195-dai-etdm.c | 2 +-
       sound/soc/rockchip/rockchip_i2s_tdm.c       | 2 +-
       sound/soc/soc-topology.c                    | 2 +-
       7 files changed, 13 insertions(+), 11 deletions(-)
      
      --
      2.25.1
      192cf41f