1. 25 3月, 2019 8 次提交
  2. 21 3月, 2019 5 次提交
  3. 19 3月, 2019 12 次提交
  4. 18 3月, 2019 5 次提交
  5. 13 3月, 2019 4 次提交
  6. 12 3月, 2019 2 次提交
    • J
      ASoC: nau8824: fix the issue of the widget with prefix name · 844a4a36
      John Hsu 提交于
      The driver has two issues when machine add prefix name for codec.
      (1)The stream name of DAI can't find the AIF widgets.
      (2)The drivr can enable/disalbe the MICBIAS and SAR widgets.
      
      The patch will fix these issues caused by prefixed name added.
      Signed-off-by: NJohn Hsu <KCHSU0@nuvoton.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      844a4a36
    • R
      ASoC:hdac_hda:use correct format to setup hda codec · 03d0aa4d
      Rander Wang 提交于
      The current implementation of the hdac_hda codec results in zero-valued
      samples on capture and noise with headset playback when SOF is used on
      platforms with an on-board HDaudio codec. This is root-caused to SOF
      using be_hw_params_fixup, and the prepare() call using invalid runtime
      fields to determine the format.
      
      This patch moves the format handling to the hw_params() callback, as
      done already for hdac_hdmi, to make sure the fixed-up information is
      taken into account but keeps the codec initialization in prepare() as
      the stream_tag is only available at that time. Moving everything in the
      prepare() callback is possible but the code is less elegant so this
      two-step solution was chosen.
      
      The solution was tested with the SST driver with no regressions, and all
      the issues with SOF playback and capture are solved.
      Signed-off-by: NRander Wang <rander.wang@linux.intel.com>
      Acked-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      03d0aa4d
  7. 04 3月, 2019 3 次提交
    • R
      ASoC: hdmi-codec: avoid limiting params->msbits in hw_params() · bbf62563
      Russell King 提交于
      Limiting the value of the passed in params->msbits in the hw_params()
      callback is redundant on three counts:
      
      1. We already specify in the DAI driver that we can only handle up to
         24 bits.  This means msbits will be limited to 24 via the ALSA
         constraints imposed by the ASoC core, unless we have multiple codecs
         that can handle more bits.
      
      2. Nothing in our hw_params() implementation uses this value.
      
      3. The copy of the params that we are passed by the ASoC core never
         reads back the msbits value.
      
      Consequently, this code is unnecessary and does nothing useful.  Remove
      it.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Reviewed-by: NJyri Sarha <jsarha@ti.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bbf62563
    • G
      ASoC: ab8500: Mark expected switch fall-through · 102cefc8
      Gustavo A. R. Silva 提交于
      In preparation to enabling -Wimplicit-fallthrough, mark switch
      cases where we are expecting to fall through.
      
      This patch fixes the following warning:
      
      In file included from sound/soc/codecs/ab8500-codec.c:24:
      sound/soc/codecs/ab8500-codec.c: In function ‘ab8500_codec_set_dai_fmt’:
      ./include/linux/device.h:1485:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
        _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/soc/codecs/ab8500-codec.c:2129:3: note: in expansion of macro ‘dev_err’
         dev_err(dai->component->dev,
         ^~~~~~~
      sound/soc/codecs/ab8500-codec.c:2132:2: note: here
        default:
        ^~~~~~~
      
      Warning level 3 was used: -Wimplicit-fallthrough=3
      
      This patch is part of the ongoing efforts to enable
      -Wimplicit-fallthrough.
      Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      102cefc8
    • R
      ASoC: hdmi-codec: fix S/PDIF DAI · 2e95f984
      Russell King 提交于
      When using the S/PDIF DAI, there is no requirement to call
      snd_soc_dai_set_fmt() as there is no DAI format definition that defines
      S/PDIF.  In any case, S/PDIF does not have separate clocks, this is
      embedded into the data stream.
      
      Consequently, when attempting to use TDA998x in S/PDIF mode, the attempt
      to configure TDA998x via the hw_params callback fails as the
      hdmi_codec_daifmt is left initialised to zero.
      
      Since the S/PDIF DAI will only be used by S/PDIF, prepare the
      hdmi_codec_daifmt structure for this format.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      Reviewed-by: NJyri Sarha <jsarha@ti.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      2e95f984
  8. 28 2月, 2019 1 次提交
    • P
      ASoC: tlv320aic3x: fix reset gpio reference counting · 82ad7591
      Philipp Puschmann 提交于
      This patch fixes a bug that prevents freeing the reset gpio on unloading
      the module.
      
      aic3x_i2c_probe is called when loading the module and it calls list_add
      with a probably uninitialized list entry aic3x->list (next = prev = NULL)).
      So even if list_del is called it does nothing and in the end the gpio_reset
      is not freed. Then a repeated module probing fails silently because
      gpio_request fails.
      
      When moving INIT_LIST_HEAD to aic3x_i2c_probe we also have to move
      list_del to aic3x_i2c_remove because aic3x_remove may be called
      multiple times without aic3x_i2c_remove being called which leads to
      a NULL pointer dereference.
      Signed-off-by: NPhilipp Puschmann <philipp.puschmann@emlix.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      82ad7591