1. 07 7月, 2017 1 次提交
  2. 21 6月, 2017 1 次提交
  3. 25 4月, 2017 1 次提交
  4. 22 4月, 2017 1 次提交
  5. 12 4月, 2017 1 次提交
  6. 11 4月, 2017 2 次提交
  7. 29 3月, 2017 2 次提交
  8. 15 3月, 2017 1 次提交
  9. 08 3月, 2017 2 次提交
  10. 28 2月, 2017 1 次提交
  11. 14 2月, 2017 1 次提交
  12. 07 2月, 2017 1 次提交
    • A
      ASoC: fix ES8328_I2C/SPI dependencies · 245c5c7b
      Arnd Bergmann 提交于
      The two front-ends to the codec can now be selected individually, but fail to
      build when the bus support is missing:
      
      sound/built-in.o: In function `es8328_spi_probe':
      es8328-spi.c:(.text+0x125854): undefined reference to `__devm_regmap_init_spi'
      sound/built-in.o: In function `es8328_spi_driver_init':
      es8328-spi.c:(.init.text+0x3589): undefined reference to `__spi_register_driver'
      
      Related to this, the added dependency on SND_SOC_ES8328 breaks:
      
      warning: (SND_SOC_ALL_CODECS) selects SND_SOC_ES8328_I2C which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC && SND_SOC_ES8328 && I2C)
      
      This adds the respective Kconfig dependencies and changes SND_SOC_ES8328 to a hidden
      symbol that is selected implicitly by the two more specific options, as we do for
      some other codecs. We have to remove the 'depends on' for SND_SOC_IMX_ES8328 in the
      same step to avoid a recursive dependency.
      
      Fixes: aa00f2c8 ("ASoC: Allow to select ES8328_I2C and ES8328_SPI directly")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      245c5c7b
  13. 04 2月, 2017 1 次提交
  14. 11 1月, 2017 1 次提交
  15. 05 1月, 2017 1 次提交
    • C
      ASoC: fsl_ssi: set fifo watermark to more reliable value · 4ee437fb
      Caleb Crome 提交于
      The fsl_ssi fifo watermark is by default set to 2 free spaces (i.e.
      activate DMA on FIFO when only 2 spaces are left.)  This means the
      DMA must service the fifo within 2 audio samples, which is just not
      enough time  for many use cases with high data rate.  In many
      configurations the audio channel slips (causing l/r swap in stereo
      configurations, or channel slipping in multi-channel configurations).
      
      This patch gives more breathing room and allows the SSI to operate
      reliably by changing the fifio refill watermark to 8.
      
      There is no change in behavior for older chips (with an 8-deep fifo).
      Only the newer chips with a 15-deep fifo get the new behavior. I
      suspect a new fifo depth setting could be optimized on the older
      chips too, but I have not tested.
      Signed-off-by: NCaleb Crome <caleb@crome.org>
      Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      4ee437fb
  16. 09 11月, 2016 1 次提交
  17. 05 11月, 2016 1 次提交
  18. 25 10月, 2016 1 次提交
    • J
      ASoC: constify snd_soc_ops structures · ddba7fa4
      Julia Lawall 提交于
      Check for snd_soc_ops structures that are only stored in the ops field of a
      snd_soc_dai_link structure.  This field is declared const, so snd_soc_ops
      structures that have this property can be declared as const also.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct snd_soc_ops i@p = { ... };
      
      @ok1@
      identifier r.i;
      struct snd_soc_dai_link e;
      position p;
      @@
      e.ops = &i@p;
      
      @ok2@
      identifier r.i, e;
      position p;
      @@
      struct snd_soc_dai_link e[] = { ..., { .ops = &i@p, }, ..., };
      
      @bad@
      position p != {r.p,ok1.p,ok2.p};
      identifier r.i;
      struct snd_soc_ops e;
      @@
      e@i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      static
      +const
       struct snd_soc_ops i = { ... };
      // </smpl>
      
      The effect on the layout of the .o files is shown by the following output of
      the size command, first before then after the transformation:
      
        text    data     bss     dec     hex filename
         8748    1024       0    9772    262c sound/soc/fsl/fsl-asoc-card.o
         8812     952       0    9764    2624 sound/soc/fsl/fsl-asoc-card.o
      
         text    data     bss     dec     hex filename
         4165     264       8    4437    1155 sound/soc/fsl/imx-wm8962.o
         4229     200       8    4437    1155 sound/soc/fsl/imx-wm8962.o
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      ddba7fa4
  19. 30 9月, 2016 1 次提交
  20. 21 9月, 2016 5 次提交
    • M
      ASoC: fsl_ssi: Remove .num_reg_defaults_raw from regmap_config · 7de2763d
      Marek Vasut 提交于
      This driver provides no .reg_defaults_raw in regmap_config, so
      the .num_reg_defaults_raw is useless, and, in fact harmful. It
      triggers kernel crash in regmap_init which tries to access the
      register defaults.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      7de2763d
    • M
      ASoC: fsl_ssi: use flat regmap cache · bfcf928d
      Marek Vasut 提交于
      Same as commit ce492b3b
      Subject: drm/fsl-dcu: use flat regmap cache
      
      Using flat regmap cache instead of RB-tree to avoid the following
      lockdep warning on driver load:
      WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2871 lockdep_trace_alloc+0x104/0x128
      DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
      
      The RB-tree regmap cache needs to allocate new space on first
      writes. However, allocations in an atomic context (e.g. when a
      spinlock is held) are not allowed. The function regmap_write
      calls map->lock, which acquires a spinlock in the fast_io case.
      Since the driver uses MMIO, the regmap bus of type regmap_mmio
      is being used which has fast_io set to true.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bfcf928d
    • M
      ASoC: fsl_spdif: use flat regmap cache · 35ddb157
      Marek Vasut 提交于
      Same as commit ce492b3b
      Subject: drm/fsl-dcu: use flat regmap cache
      
      Using flat regmap cache instead of RB-tree to avoid the following
      lockdep warning on driver load:
      WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2871 lockdep_trace_alloc+0x104/0x128
      DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
      
      The RB-tree regmap cache needs to allocate new space on first
      writes. However, allocations in an atomic context (e.g. when a
      spinlock is held) are not allowed. The function regmap_write
      calls map->lock, which acquires a spinlock in the fast_io case.
      Since the driver uses MMIO, the regmap bus of type regmap_mmio
      is being used which has fast_io set to true.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      35ddb157
    • M
      ASoC: fsl_esai: use flat regmap cache · 0effb865
      Marek Vasut 提交于
      Same as commit ce492b3b
      Subject: drm/fsl-dcu: use flat regmap cache
      
      Using flat regmap cache instead of RB-tree to avoid the following
      lockdep warning on driver load:
      WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2871 lockdep_trace_alloc+0x104/0x128
      DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
      
      The RB-tree regmap cache needs to allocate new space on first
      writes. However, allocations in an atomic context (e.g. when a
      spinlock is held) are not allowed. The function regmap_write
      calls map->lock, which acquires a spinlock in the fast_io case.
      Since the driver uses MMIO, the regmap bus of type regmap_mmio
      is being used which has fast_io set to true.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      0effb865
    • M
      ASoC: fsl_asrc: use flat regmap cache · b4138868
      Marek Vasut 提交于
      Same as commit ce492b3b
      Subject: drm/fsl-dcu: use flat regmap cache
      
      Using flat regmap cache instead of RB-tree to avoid the following
      lockdep warning on driver load:
      WARNING: CPU: 0 PID: 1 at kernel/locking/lockdep.c:2871 lockdep_trace_alloc+0x104/0x128
      DEBUG_LOCKS_WARN_ON(irqs_disabled_flags(flags))
      
      The RB-tree regmap cache needs to allocate new space on first
      writes. However, allocations in an atomic context (e.g. when a
      spinlock is held) are not allowed. The function regmap_write
      calls map->lock, which acquires a spinlock in the fast_io case.
      Since the driver uses MMIO, the regmap bus of type regmap_mmio
      is being used which has fast_io set to true.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Acked-by: NNicolin Chen <nicoleotsuka@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      b4138868
  21. 13 9月, 2016 1 次提交
    • J
      ASoC: constify snd_pcm_ops structures · 115c7254
      Julia Lawall 提交于
      Check for snd_pcm_ops structures that are only stored in the ops field of a
      snd_soc_platform_driver structure or passed as the third argument to
      snd_pcm_set_ops.  The corresponding field or parameter is declared const,
      so snd_pcm_ops structures that have this property can be declared as const
      also.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct snd_pcm_ops i@p = { ... };
      
      @ok1@
      identifier r.i;
      struct snd_soc_platform_driver e;
      position p;
      @@
      e.ops = &i@p;
      
      @ok2@
      identifier r.i;
      expression e1, e2;
      position p;
      @@
      snd_pcm_set_ops(e1, e2, &i@p)
      
      @bad@
      position p != {r.p,ok1.p,ok2.p};
      identifier r.i;
      struct snd_pcm_ops e;
      @@
      e@i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      static
      +const
       struct snd_pcm_ops i = { ... };
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      115c7254
  22. 03 9月, 2016 1 次提交
  23. 19 8月, 2016 3 次提交
  24. 17 8月, 2016 1 次提交
  25. 30 6月, 2016 1 次提交
    • A
      ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode · 4f14f5c1
      Alexander Shiyan 提交于
      The i.MX51 datasheet says:
      Chapter 56.1.2.4 I2S Mode
      ...
      When I2S modes are entered (I2S master (01) or I2S slave (10)),
      the following settings are recommended:
      ...
      - TX Frame Rate should be 2 i.e. (STCCR[12:8] = 1)
      - RX Frame Rate should be 2 i.e. (SRCCR[12:8] = 1)
      
      Chapter 56.3.3.12 SSI Transmit and Receive Clock Control Registers (STCCR & SRCCR)
      ...
      Bits 12-8 DC4-DC0
      Frame Rate Divider Control. These bits are used to control the divide ratio
      for the programmable frame rate dividers. The divide ratio works on the word
      clock. In Normal mode, this ratio determines the word transfer rate.
      In Network mode, this ratio sets the number of words per frame. The divide
      ratio ranges from 1 to 32 in Normal mode and from 2 to 32 in Network mode.
      In Normal mode, a divide ratio of 1 (DC=00000) provides continuous periodic
      data word transfer. A bit-length frame sync must be used in this case.
      
      Function fsl_ssi_hw_params() setup Normal mode for MONO output,
      so with DC=0, SSI enters to continuous periodic data word transfer.
      To fix this, setup DC for any I2S mode.
      Patch has tested on custom board based on Digi CCMX-51 module (i.MX51).
      Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      4f14f5c1
  26. 28 6月, 2016 1 次提交
  27. 03 6月, 2016 1 次提交
  28. 13 5月, 2016 4 次提交