1. 25 11月, 2015 1 次提交
  2. 19 11月, 2015 1 次提交
    • M
      ASoC: Change the PCM runtime array to a list · 1a497983
      Mengdong Lin 提交于
      Currently the number of DAI links is statically defined by the machine
      driver at build time using an array. This makes it difficult to shrink/
      grow the number of DAI links at runtime in order to reflect any changes
      in topology.
      
      We can change the DAI link array in the core to a list so that PCMs and
      FE DAI links can be added and deleted at runtime to reflect changes in
      use case and DSP topology. The machine driver can still register DAI links
      as an array.
      
      As the 1st step, this patch change the PCM runtime array to a list. A new
      PCM runtime is added to the list when a DAI link is bound successfully.
      
      Later patches will further implement the DAI link list.
      
      More:
      - define snd_soc_new/free_pcm_runtime() to create/free a runtime.
      - define soc_add_pcm_runtime() to add a runtime to the rtd list.
      - define soc_remove_pcm_runtimes() to clean up the runtime list.
      
      - traverse the rtd list to probe the link components and dais.
      
      - Add a field "num" to PCM runtime struct, used to specify the device
        number when creating the pcm device, and for a soc card to access
        its dai_props array.
      
      - The following 3rd party machine/platform drivers iterate the rtd list
        to check the runtimes:
        sound/soc/intel/atom/sst-mfld-platform-pcm.c
        sound/soc/intel/boards/cht_bsw_rt5645.c
        sound/soc/intel/boards/cht_bsw_rt5672.c
        sound/soc/intel/boards/cht_bsw_max98090_ti.c
      Signed-off-by: NMengdong Lin <mengdong.lin@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      1a497983
  3. 22 10月, 2015 3 次提交
  4. 07 10月, 2015 1 次提交
  5. 15 9月, 2015 2 次提交
    • K
      ASoC: rsnd: add common mod confirm method · f1df1229
      Kuninori Morimoto 提交于
      Renesas sound has SSI/SRC/DVC/MIX/ADG modules, and these have original
      register mapping. Thus this driver is using regmap field, and each module
      is using it based on each module ID.
      
      Sometimes, each module needs other module to controlling. but current each
      function is using just "mod" as parameter name. This is confusable.
      For example, if SSI0 and SRC2 are connected, and if SRC module function
      has bug of module access, and if it needs to control connected SSI,
      SRC function will access to SSI2 (It should access to SSI0, but it uses
      SRC's ID 2). This is easy to happen in current driver style.
      
      To avoid this kind of confusable trouble, this patch adds module confirm
      macro for debug purpose.
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      f1df1229
    • K
      ASoC: rsnd: Add Gen3 initial support · ac37a45b
      Kuninori Morimoto 提交于
      Renesas sound Gen3 is updated version of Gen2. We need to update
      driver for it, but basically it should works as Gen2 compatible.
      This is initial support for Gen3. Gen3 specific feature will be
      incrementally added in the future
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      ac37a45b
  6. 21 7月, 2015 1 次提交
  7. 18 7月, 2015 2 次提交
  8. 17 7月, 2015 9 次提交
  9. 16 6月, 2015 10 次提交
  10. 22 5月, 2015 1 次提交
    • K
      ASoC: rsnd: spin lock for interrupt handler · 02299d98
      Kuninori Morimoto 提交于
      Renesas R-Car driver interrupt handler was not locked before.
      But now, SSI/SRC interrupt handler calls restart function
      which should be called under spin lock.
      Below error might happen witout this patch.
      
      Unable to handle kernel NULL pointer dereference at virtual address 00000048
      pgd = edfac000
      [00000048] *pgd=6e0f0831, *pte=00000000, *ppte=00000000
      Internal error: Oops: 17 [#1] SMP ARM
      CPU: 0 PID: 2009 Comm: aplay Not tainted 4.1.0-rc2-dirty #4
      Hardware name: Generic R8A7790 (Flattened Device Tree)
      task: eeac9040 ti: eebe8000 task.ti: eebe8000
      PC is at rsnd_get_adinr+0x28/0x60
      LR is at rsnd_src_ssiu_start+0xdc/0x19c
      pc : [<c0409790>]    lr : [<c040c068>]    psr: a0000193
      sp : eebe9e58  ip : eebe9e68  fp : eebe9e64
      r10: c06ed9d0  r9 : ee919d10  r8 : 00000001
      r7 : 00000001  r6 : ee1cb090  r5 : 00000000  r4 : edcaa418
      r3 : 00000000  r2 : eea8ce00  r1 : 80000193  r0 : edcaa418
      ...
      Reported-by: NCao Minh Hiep <cm-hiep@jinso.co.jp>
      Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
      Tested-by: NKeita Kobayashi <keita.kobayashi.ym@renesas.com>
      Tested by: Cao Minh Hiep <cm-hiep@jinso.co.jp>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      02299d98
  11. 21 5月, 2015 1 次提交
  12. 12 5月, 2015 1 次提交
  13. 28 4月, 2015 3 次提交
  14. 01 4月, 2015 1 次提交
  15. 28 3月, 2015 2 次提交
  16. 23 3月, 2015 1 次提交