1. 12 May, 2022 3 commits
    • Hui Tang's avatar
      ASoC: tlv320adc3xxx: Fix build error for implicit function declaration · 19c5bda7
      Hui Tang authored
      sound/soc/codecs/tlv320adc3xxx.c: In function ‘adc3xxx_i2c_probe’:
      sound/soc/codecs/tlv320adc3xxx.c:1359:21: error: implicit declaration of function ‘devm_gpiod_get’; did you mean ‘devm_gpio_free’? [-Werror=implicit-function-declaration]
        adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
                           ^~~~~~~~~~~~~~
                           devm_gpio_free
        CC [M]  drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgt215.o
        LD [M]  sound/soc/codecs/snd-soc-ak4671.o
        LD [M]  sound/soc/codecs/snd-soc-arizona.o
        LD [M]  sound/soc/codecs/snd-soc-cros-ec-codec.o
        LD [M]  sound/soc/codecs/snd-soc-ak4641.o
        LD [M]  sound/soc/codecs/snd-soc-alc5632.o
      sound/soc/codecs/tlv320adc3xxx.c:1359:50: error: ‘GPIOD_OUT_LOW’ undeclared (first use in this function); did you mean ‘GPIOF_INIT_LOW’?
        adc3xxx->rst_pin = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
                                                        ^~~~~~~~~~~~~
                                                        GPIOF_INIT_LOW
      sound/soc/codecs/tlv320adc3xxx.c:1359:50: note: each undeclared identifier is reported only once for each function it appears in
        LD [M]  sound/soc/codecs/snd-soc-cs35l32.o
      sound/soc/codecs/tlv320adc3xxx.c:1408:2: error: implicit declaration of function ‘gpiod_set_value_cansleep’; did you mean ‘gpio_set_value_cansleep’? [-Werror=implicit-function-declaration]
        gpiod_set_value_cansleep(adc3xxx->rst_pin, 1);
        ^~~~~~~~~~~~~~~~~~~~~~~~
        gpio_set_value_cansleep
        LD [M]  sound/soc/codecs/snd-soc-cs35l41-lib.o
        LD [M]  sound/soc/codecs/snd-soc-cs35l36.o
        LD [M]  sound/soc/codecs/snd-soc-cs35l34.o
        LD [M]  sound/soc/codecs/snd-soc-cs35l41.o
        CC [M]  drivers/gpu/drm/nouveau/nvkm/engine/disp/sormcp89.o
      cc1: all warnings being treated as errors
      
      Fixes: e9a3b57e ("ASoC: codec: tlv320adc3xxx: New codec driver")
      Signed-off-by: default avatarHui Tang <tanghui20@huawei.com>
      Link: https://lore.kernel.org/r/20220512074640.75550-3-tanghui20@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      19c5bda7
    • Mark Brown's avatar
      ASoC: ops: Check bounds for second channel in snd_soc_put_volsw_sx() · 97eea946
      Mark Brown authored
      The bounds checks in snd_soc_put_volsw_sx() are only being applied to the
      first channel, meaning it is possible to write out of bounds values to the
      second channel in stereo controls. Add appropriate checks.
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Link: https://lore.kernel.org/r/20220511134137.169575-2-broonie@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      97eea946
    • Mark Brown's avatar
      ASoC: ops: Fix bounds check for _sx controls · 698813ba
      Mark Brown authored
      For _sx controls the semantics of the max field is not the usual one, max
      is the number of steps rather than the maximum value. This means that our
      check in snd_soc_put_volsw_sx() needs to just check against the maximum
      value.
      
      Fixes: 4f1e50d6 ("ASoC: ops: Reject out of bounds values in snd_soc_put_volsw_sx()")
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Link: https://lore.kernel.org/r/20220511134137.169575-1-broonie@kernel.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
      698813ba
  2. 11 May, 2022 2 commits
  3. 03 May, 2022 4 commits
  4. 28 Apr, 2022 2 commits
  5. 27 Apr, 2022 1 commit
  6. 26 Apr, 2022 1 commit
  7. 25 Apr, 2022 4 commits
  8. 22 Apr, 2022 1 commit
  9. 21 Apr, 2022 6 commits
  10. 20 Apr, 2022 2 commits
  11. 19 Apr, 2022 1 commit
  12. 12 Apr, 2022 1 commit
  13. 08 Apr, 2022 2 commits
  14. 07 Apr, 2022 10 commits