An error occurred fetching the project authors.
  1. 03 Sep, 2020 1 commit
  2. 07 Jul, 2020 1 commit
  3. 18 Feb, 2020 1 commit
  4. 03 Jan, 2020 1 commit
  5. 21 Oct, 2019 1 commit
  6. 23 Jul, 2019 4 commits
  7. 30 May, 2019 1 commit
  8. 06 Feb, 2019 1 commit
  9. 03 Jan, 2019 1 commit
    • Dan Carpenter's avatar
      ALSA: compress: prevent potential divide by zero bugs · 678e2b44
      Dan Carpenter authored
      The problem is seen in the q6asm_dai_compr_set_params() function:
      
      	ret = q6asm_map_memory_regions(dir, prtd->audio_client, prtd->phys,
      				       (prtd->pcm_size / prtd->periods),
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      				       prtd->periods);
      
      In this code prtd->pcm_size is the buffer_size and prtd->periods comes
      from params->buffer.fragments.  If we allow the number of fragments to
      be zero then it results in a divide by zero bug.  One possible fix would
      be to use prtd->pcm_count directly instead of using the division to
      re-calculate it.  But I decided that it doesn't really make sense to
      allow zero fragments.
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      678e2b44
  10. 14 Dec, 2018 1 commit
  11. 03 Aug, 2018 1 commit
    • Takashi Iwai's avatar
      ALSA: compress: Remove empty init and exit · a6403299
      Takashi Iwai authored
      For a sake of code simplification, remove the init and the exit
      entries that do nothing.
      
      Notes for readers: actually it's OK to remove *both* init and exit,
      but not OK to remove the exit entry.  By removing only the exit while
      keeping init, the module becomes permanently loaded; i.e. you cannot
      unload it any longer!
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      a6403299
  12. 28 May, 2018 1 commit
  13. 11 Feb, 2018 1 commit
    • Linus Torvalds's avatar
      vfs: do bulk POLL* -> EPOLL* replacement · a9a08845
      Linus Torvalds authored
      This is the mindless scripted replacement of kernel use of POLL*
      variables as described by Al, done by this script:
      
          for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do
              L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'`
              for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done
          done
      
      with de-mangling cleanups yet to come.
      
      NOTE! On almost all architectures, the EPOLL* constants have the same
      values as the POLL* constants do.  But they keyword here is "almost".
      For various bad reasons they aren't the same, and epoll() doesn't
      actually work quite correctly in some cases due to this on Sparc et al.
      
      The next patch from Al will sort out the final differences, and we
      should be all done.
      Scripted-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a9a08845
  14. 27 Nov, 2017 1 commit
  15. 18 Sep, 2017 1 commit
  16. 16 Sep, 2016 1 commit
  17. 22 Aug, 2016 1 commit
  18. 13 Jun, 2016 1 commit
    • Charles Keepax's avatar
      ALSA: compress: Add function to indicate the stream has gone bad · a4f2d87c
      Charles Keepax authored
      Currently, the avail IOCTL doesn't pass any error status, which
      means typically on error it simply shows no data available. This
      can lead to situations where user-space is waiting indefinitely
      for data that will never come as the DSP has suffered an
      unrecoverable error.
      
      Add snd_compr_stop_error which end drivers can call to indicate
      the stream has suffered an unrecoverable error and stop it. The
      avail and poll IOCTLs are then updated to report if the stream is
      in an error state to user-space. Allowing the error to propagate
      out. Processing of the actual snd_compr_stop needs to be deferred
      to a worker thread as the end driver may detect the errors during
      an existing operation callback.
      Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
      Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      a4f2d87c
  19. 09 May, 2016 4 commits
  20. 04 Mar, 2016 4 commits
  21. 25 Jan, 2016 1 commit
    • Takashi Iwai's avatar
      ALSA: compress: Disable GET_CODEC_CAPS ioctl for some architectures · 462b3f16
      Takashi Iwai authored
      Some architectures like PowerPC can handle the maximum struct size in
      an ioctl only up to 13 bits, and struct snd_compr_codec_caps used by
      SNDRV_COMPRESS_GET_CODEC_CAPS ioctl overflows this limit.  This
      problem was revealed recently by a powerpc change, as it's now treated
      as a fatal build error.
      
      This patch is a stop-gap for that: for architectures with less than 14
      bit ioctl struct size, get rid of the handling of the relevant ioctl.
      We should provide an alternative equivalent ioctl code later, but for
      now just paper over it.  Luckily, the compress API hasn't been used on
      such architectures, so the impact must be effectively zero.
      Reviewed-by: default avatarMark Brown <broonie@kernel.org>
      Acked-by: default avatarSudip Mukherjee <sudipm.mukherjee@gmail.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      462b3f16
  22. 07 Dec, 2015 1 commit
  23. 30 Nov, 2015 2 commits
  24. 02 Feb, 2015 2 commits
  25. 16 Jul, 2014 1 commit
  26. 19 Mar, 2014 1 commit
  27. 05 Jan, 2014 1 commit
  28. 12 Nov, 2013 1 commit
  29. 07 Nov, 2013 1 commit
    • Vinod Koul's avatar
      ALSA: compress: fix drain calls blocking other compress functions (v6) · f44f2a54
      Vinod Koul authored
      The drain and drain_notify callback were blocked by low level driver
      until the draining was complete. Due to this being invoked with big
      fat mutex held, others ops like reading timestamp, calling pause, drop
      were blocked.
      
      So to fix this we add a new snd_compr_drain_notify() API. This would
      be required to be invoked by low level driver when drain or partial
      drain has been completed by the DSP. Thus we make the drain and
      partial_drain callback as non blocking and driver returns immediately
      after notifying DSP.  The waiting is done while releasing the lock so
      that other ops can go ahead.
      
      [ The commit 917f4b5c was wrongly applied from the preliminary
        patch.  This commit corrects to the final version.
        Sorry for inconvenience!  -- tiwai ]
      Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
      CC: stable@vger.kernel.org
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      f44f2a54