1. 28 8月, 2014 4 次提交
  2. 20 8月, 2014 1 次提交
  3. 19 8月, 2014 1 次提交
  4. 18 8月, 2014 2 次提交
    • S
      ASoC: fsl: fsl-asoc-card: Select SND_SOC_IMX_AUDMUX · 499898d6
      Shengjiu Wang 提交于
      Building kernel with SND_SOC_IMX_AUDMUX=n leads to the following error:
      
         sound/built-in.o: In function `fsl_asoc_card_probe':
      >> fsl-asoc-card.c:(.text+0x1467b5): undefined reference to `imx_audmux_v2_configure_port'
      >> fsl-asoc-card.c:(.text+0x1467d0): undefined reference to `imx_audmux_v2_configure_port'
      >> fsl-asoc-card.c:(.text+0x1467ed): undefined reference to `imx_audmux_v2_configure_port'
      >> fsl-asoc-card.c:(.text+0x146807): undefined reference to `imx_audmux_v2_configure_port'
      
      Update Kconfig to select SND_SOC_IMX_AUDMUX when SND_SOC_FSL_ASOC_CARD=y.
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NShengjiu Wang <shengjiu.wang@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      499898d6
    • S
      ASoC: fsl-asoc-card: Fix build warning for maybe-uninitialized · 5f37671e
      Shengjiu Wang 提交于
      When build fsl-asoc-card as module, there is following error:
      
      sound/soc/fsl/fsl-asoc-card.c: In function 'fsl_asoc_card_probe':
      >> sound/soc/fsl/fsl-asoc-card.c:547:13: warning: 'asrc_np' may be used uninitialized in this function [-Wmaybe-uninitialized]
           of_node_put(asrc_np);
                      ^
      
      vim +/asrc_np +547 sound/soc/fsl/fsl-asoc-card.c
      
         531                  if (width == 24)
         532                          priv->asrc_format = SNDRV_PCM_FORMAT_S24_LE;
         533                  else
         534                          priv->asrc_format = SNDRV_PCM_FORMAT_S16_LE;
         535          }
         536
         537          /* Finish card registering */
         538          platform_set_drvdata(pdev, priv);
         539          snd_soc_card_set_drvdata(&priv->card, priv);
         540
         541          ret = devm_snd_soc_register_card(&pdev->dev, &priv->card);
         542          if (ret)
         543                  dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret);
         544
         545  fail:
         546          of_node_put(codec_np);
       > 547          of_node_put(asrc_np);
         548          of_node_put(cpu_np);
         549
         550          return ret;
         551  }
         552
         553  static const struct of_device_id fsl_asoc_card_dt_ids[] = {
         554          { .compatible = "fsl,imx-audio-cs42888", },
         555          { .compatible = "fsl,imx-audio-sgtl5000", },
      
      Add 'asrc_fail' branch for error jump after asrc_np initialized.
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NShengjiu Wang <shengjiu.wang@freescale.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      5f37671e
  5. 17 8月, 2014 4 次提交
    • S
      ASoC: fsl: add imx-es8328 machine driver · 7e7292db
      Sean Cross 提交于
      This adds an initial machine driver for the ES8328 audio codec on Freescale
      boards.  The driver supports headphones and an audio regulator for an onboard
      speaker amp.
      Signed-off-by: NSean Cross <xobs@kosagi.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      7e7292db
    • S
      ASoC: add es8328 codec driver · 567e4f98
      Sean Cross 提交于
      Add a codec driver for the Everest ES8328.  It supports two separate audio
      outputs and two separate audio inputs.
      Signed-off-by: NSean Cross <xobs@kosagi.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      567e4f98
    • S
      ASoC: fsl_esai: refine esai for TDM support · de0d712a
      Shengjiu Wang 提交于
      Original driver didn't store the number of slots, just fix the slot number
      to 2, use this default number to calculate bclk and pins for TX/RX.
      In this patch, add one parameter for slots, and update the calculation of
      bclk and pins of TX/RX. Then driver will be compatible with slots > 2 in
      TDM mode.
      Signed-off-by: NShengjiu Wang <shengjiu.wang@freescale.com>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      de0d712a
    • N
      ASoC: fsl: Add Freescale Generic ASoC Sound Card with ASRC support · 708b4351
      Nicolin Chen 提交于
      The Freescale Generic ASoC Sound Card is a general ASoC DAI Link driver that
      can be used, ideally, for all Freescale CPU DAI drivers and external CODECs.
      
      The idea of this generic sound card is a bit like ASoC Simple Card. However,
      for Freescale SoCs (especially those released in recent years), most of them
      have ASRC (Documentation/devicetree/bindings/sound/fsl,asrc.txt) inside. And
      this is a specific feature that might be painstakingly controlled and merged
      into the Simple Card driver.
      
      So having this driver will allow all Freescale SoC users to benefit from the
      simplification to support a new card and the capability of wide sample rates
      support through ASRC.
      
      The driver is initially designed for sound card using I2S or PCM DAI formats.
      However, it's also possible to merge those non-I2S/PCM type sound cards, such
      as S/PDIF audio and HDMI audio, into this card as long as the merge will not
      break the original function and as long as there is something redundant that
      can be abstracted along with I2S type sound cards.
      
      As an initial version, it only supports three cards that I can test:
      imx-audio-cs42888, a new card that links ESAI with CS42888 CODEC
      imx-audio-sgtl5000, just like the old imx-sgtl5000.c driver
      imx-audio-wm8962, just like the old imx-wm8962.c driver
      
      The driver is also compatible with the old Device Tree bindings of WM8962 and
      SGTL5000. So we may consider to remove those two drivers after this driver is
      totally enabled. (It needs to be added into defconfig)
      Signed-off-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      708b4351
  6. 14 8月, 2014 1 次提交
  7. 04 8月, 2014 5 次提交
  8. 02 8月, 2014 9 次提交
  9. 01 8月, 2014 13 次提交