1. 28 5月, 2015 2 次提交
  2. 22 5月, 2015 2 次提交
  3. 21 5月, 2015 1 次提交
  4. 18 5月, 2015 4 次提交
  5. 30 4月, 2015 2 次提交
  6. 28 4月, 2015 5 次提交
  7. 24 4月, 2015 6 次提交
  8. 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
  9. 13 4月, 2015 1 次提交
  10. 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
  11. 11 4月, 2015 4 次提交
  12. 10 4月, 2015 1 次提交
  13. 26 3月, 2015 1 次提交
  14. 13 3月, 2015 1 次提交
  15. 12 3月, 2015 1 次提交
  16. 11 3月, 2015 1 次提交
  17. 10 3月, 2015 4 次提交