1. 18 5月, 2015 1 次提交
    • T
      ALSA: info: Fix leaks of child entries at snd_info_free_entry() · 90a409aa
      Takashi Iwai 提交于
      snd_info_free_entry() releases the all children nodes as well, but due
      to the wrong timing of releasing the link, the children nodes may be
      disconnected but left unreleased.  This patch fixes it by moving the
      link free at the right position.  Also it eases list_for_each_entry()
      without _safe option in snd_info_disconnect() because it no longer
      frees the children nodes there.
      
      Fixes: c560a679 ('ALSA: core: Remove child proc file elements recursively')
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      90a409aa
  2. 30 4月, 2015 2 次提交
  3. 28 4月, 2015 5 次提交
  4. 24 4月, 2015 6 次提交
  5. 23 4月, 2015 2 次提交
    • T
      ALSA: core: Fix possible memory leaks at error path in info.c · 886364f6
      Takashi Iwai 提交于
      Currently, snd_info_init() just returns an error without releasing the
      previously assigned resources at error path.  The assigned proc and
      info entries have to be released properly.  This patch covers it.
      
      While we are at it, refactor the code a bit, too.
      Acked-by: NJaroslav Kysela <perex@perex.cz>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      886364f6
    • T
      ALSA: core: Use seq_file for text proc file reads · 4adb7bcb
      Takashi Iwai 提交于
      seq_file is _the_ standard interface for simple text proc files.
      Though, we still need to support the binary proc files and the text
      file write, and also we need to manage the device disconnection
      gracefully.  Thus this patch just replaces the text file read code
      with seq_file while keeping the rest intact.
      
      snd_iprintf() helper function is now a macro to expand itself to
      seq_printf() to be compatible with the existing code.  The seq_file
      object is stored to the unused entry->rbuffer->buffer pointer.
      
      When the output size is expected to be large (greater than PAGE_SIZE),
      the driver should set entry->size field beforehand.  Then the given
      size will be preallocated and the multiple show calls can be avoided.
      Acked-by: NJaroslav Kysela <perex@perex.cz>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4adb7bcb
  6. 13 4月, 2015 1 次提交
  7. 12 4月, 2015 2 次提交
    • T
      ALSA: control: Fix a typo of SNDRV_CTL_ELEM_ACCESS_TLV_* with SNDRV_CTL_TLV_OP_* · c30cf8cb
      Takashi Iwai 提交于
      The commit [39d11867: ALSA: ctl: evaluate macro instead of
      numerical value] replaced the numbers with constants, but one place
      was replaced wrongly with a different type.  Fixed now.
      
      Fixes: 39d11867 ('ALSA: ctl: evaluate macro instead of numerical value')
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      c30cf8cb
    • A
      pcm: another weird API abuse · 1c65d986
      Al Viro 提交于
      readv() and writev() should _not_ ignore all but the first ->iov_len,
      among other things.  Really weird abuse of those syscalls - it
      expects a vector element per channel, with identical lengths (it
      actually assumes them to be identical - no checking is done).
      readv() and writev() are really bad match for that.  Unfortunately,
      userland API is userland API and we can't do anything about them.
      
      Converted to ->read_iter/->write_iter.  Please, _please_ don't do
      anything of that kind when designing new interfaces.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      1c65d986
  8. 11 4月, 2015 4 次提交
  9. 10 4月, 2015 1 次提交
  10. 26 3月, 2015 1 次提交
  11. 13 3月, 2015 1 次提交
  12. 12 3月, 2015 1 次提交
  13. 11 3月, 2015 1 次提交
  14. 10 3月, 2015 5 次提交
  15. 04 3月, 2015 1 次提交
  16. 03 3月, 2015 1 次提交
  17. 23 2月, 2015 1 次提交
  18. 21 2月, 2015 4 次提交