1. 13 4月, 2015 1 次提交
    • K
      ASoC: Intel: fix array_size.cocci warnings · a5e5e12b
      kbuild test robot 提交于
      sound/soc/intel/haswell/sst-haswell-ipc.c:646:28-29: WARNING: Use ARRAY_SIZE
      
       Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
      
      Semantic patch information:
       This makes an effort to find cases where ARRAY_SIZE can be used such as
       where there is a division of sizeof the array by the sizeof its first
       element or by any indexed element or the element type. It replaces the
       division of the two sizeofs by ARRAY_SIZE.
      
      Generated by: scripts/coccinelle/misc/array_size.cocci
      
      CC: Jie Yang <yang.jie@intel.com>
      Signed-off-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a5e5e12b
  2. 11 4月, 2015 1 次提交
  3. 07 4月, 2015 1 次提交
  4. 19 3月, 2015 1 次提交
  5. 13 3月, 2015 3 次提交
  6. 11 3月, 2015 3 次提交
  7. 07 3月, 2015 1 次提交
  8. 11 2月, 2015 1 次提交
  9. 08 2月, 2015 1 次提交
    • R
      ASoC: intel: sst-haswell-ipc: Remove unused functions · 5985837e
      Rickard Strandqvist 提交于
      Removes some functions that are not used anywhere:
      sst_hsw_stream_unmute() sst_hsw_stream_mute() msg_set_stage_type()
      sst_hsw_dx_get_state() sst_hsw_stream_set_write_position()
      sst_hsw_stream_get_vol_reg() sst_hsw_stream_get_peak_reg()
      sst_hsw_stream_get_pointer_reg() sst_hsw_stream_get_read_reg()
      sst_hsw_stream_get_mixer_id() sst_hsw_stream_get_hw_id()
      sst_hsw_mixer_set_volume_curve() sst_hsw_mixer_unmute()
      sst_hsw_mixer_mute() sst_hsw_stream_set_volume_curve()
      
      This was partially found by using a static code analysis program called cppcheck.
      Signed-off-by: NRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      5985837e
  10. 28 1月, 2015 2 次提交
  11. 15 1月, 2015 1 次提交
  12. 08 1月, 2015 1 次提交
  13. 25 11月, 2014 1 次提交
  14. 30 10月, 2014 3 次提交
  15. 29 10月, 2014 1 次提交
    • L
      ASoC: Intel: Make ADSP memory block allocation more generic · e9600bc1
      Liam Girdwood 提交于
      Current block allocation is tied to block type and requestor type. Make the
      allocation more generic by removing the struct module parameter and adding
      a generic block allocator structure. Also pass in the list that the blocks
      have to be added too in order to remove dependence on block requestor type.
      
      ASoC: Intel: update scratch allocator to use generic block allocator
      
      Update the scratch allocator to use the generic block allocator and calculate
      total scratch buffer size.
      
      ASoC: Intel: Add call to calculate offsets internally within the DSP.
      
      A call to calculate internal DSP memory addresses used to allocate persistent
      and scartch buffers.
      
      ASoC: Intel: Add runtime module support.
      
      Add support for runtime module objects that can be created for every FW
      module that is parsed from the FW file. This gives a 1:N mapping between
      the FW module from file and the runtime instantiations of that module.
      
      We also need to make sure we remove every module and runtime module when
      we unload the FW.
      
      ASoC: Intel: Add DMA firmware loading support
      
      Add support for DMA to load firmware modules to the DSP memory blocks.
      Two DMA engines are supported, DesignWare and Intel MID.
      
      ASoC: Intel: Add runtime module lookup API call
      
      Add an API to allow quick lookup of runtime modules based on ID.
      
      ASoC: Intel: Provide streams with dynamic module information
      
      Remove the hard coded module paramaters and provide each module with
      dynamically generated buffer information for scratch and persistent
      buffers.
      Signed-off-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      e9600bc1
  16. 20 10月, 2014 2 次提交
  17. 02 8月, 2014 3 次提交
  18. 30 7月, 2014 2 次提交
  19. 17 7月, 2014 1 次提交
  20. 01 6月, 2014 2 次提交
  21. 26 5月, 2014 1 次提交
  22. 03 5月, 2014 1 次提交
  23. 24 4月, 2014 1 次提交
  24. 23 4月, 2014 1 次提交
  25. 19 4月, 2014 2 次提交
  26. 15 4月, 2014 1 次提交
  27. 07 3月, 2014 1 次提交
    • L
      ASoC: Intel: Check Haswell IPC process_reply/notification return value. · f69f41e1
      Liam Girdwood 提交于
      Check the return value for error when processing replies and notifications.
      
      The patch 22981243: "ASoC: Intel: Add Haswell/Broadwell IPC" from
      > Feb 20, 2014, leads to the following imaginary static checker warning:
      >
      > 	sound/soc/intel/sst-haswell-ipc.c:898 hsw_irq_thread()
      > 	warn: this is always true.
      >
      > sound/soc/intel/sst-haswell-ipc.c
      >    895                  /* Handle Immediate reply from DSP Core */
      >    896                  handled = hsw_process_reply(hsw, ipcx);
      >                                   ^^^^^^^^^^^^^^^^^
      > Returns 1 on success/error and -EIO on error.
      >
      >    897
      >    898                  if (handled) {
      >    899                          /* clear DONE bit - tell DSP we have completed */
      >    900                          sst_dsp_shim_update_bits_unlocked(sst, SST_IPCX,
      >    901                                  SST_IPCX_DONE, 0);
      >    902
      >    903                          /* unmask Done interrupt */
      >    904                          sst_dsp_shim_update_bits_unlocked(sst, SST_IMRX,
      >    905                                  SST_IMRX_DONE, 0);
      >    906                  }
      >
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
      Signed-off-by: NMark Brown <broonie@linaro.org>
      f69f41e1