1. 09 Dec, 2012 37 commits
  2. 07 Dec, 2012 3 commits
    • Padmavathi Venna's avatar
      ASoC: Samsung: Do not register samsung audio dma device as pdev · a08485d8
      Padmavathi Venna authored
      Previously, the ASoC 'platform' (PCM/DMA) object was instantiated via a
      platform_device. This didn't represent the hardware well, since there
      was no separate hardware associated with this platform_device; it was a
      virtual device with sole purpose to call snd_soc_register_platform().
      
      This change removes the platform_device completely. Each Samsung DAI now
      registers the ASoC 'platform' itself. Machine drivers are adjusted for
      the new 'platform' name.
      Signed-off-by: default avatarPadmavathi Venna <padma.v@samsung.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      a08485d8
    • Daniel Mack's avatar
      ASoC: McASP: implement a way to force BCLK/LRCLK ratios · 1b3bc060
      Daniel Mack authored
      Depending on the Codec, the the BCLK/LRCLK ratio might not be freely
      chosen by the CPU DAI.
      
      For example, some Codec might want to be supplied with 32-bit samples
      for both its channels regardless of the actual audio word size the CPU
      sends. In such cases, the rest of the bits on the data lines must be
      padded with zeros:
      
                _______________________________
      LRCLK    /                               \
            --'                                 `---------- .....
      
      BCLK  ||||||||||||||||||||||||||||||||||||||||||||||| .....
      
      DATA  ____||||||||||||||||_________________|||||||||| .....
      
                |<--  data  -->|<--   pads  --> |
      
      This patch adds a new clock divider to configure the BCLK/LRCLK ratio.
      If the machine code uses that divider, the driver uses the specified
      value, instead of deriving that information from the audio word size.
      
      Otherwise, the original behaviour is retained.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      1b3bc060
    • Daniel Mack's avatar
      ASoC: McASP: calculate values for channel size · ba764b3d
      Daniel Mack authored
      Change davinci_config_channel_size() to derive the values for XSSZ and
      XROT in DAVINCI_MCASP_[RT]XFMT_REG from the configured word length
      rather than hard-coding them in a switch/case block.
      
      Also, by directly passing the word length to
      davinci_config_channel_size(), we can get rid of the
      DAVINCI_AUDIO_WORD_* enum.
      Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      ba764b3d