Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Apr 12, 2022
  2. Apr 11, 2022
  3. Apr 08, 2022
    • Takashi Iwai's avatar
      ALSA: usb-audio: Increase max buffer size · fee2ec8c
      Takashi Iwai authored
      
      The current limit of max buffer size 1MB seems too small for modern
      devices with lots of channels and high sample rates.
      Let's make bigger, 4MB.
      
      Reviewed-by: default avatarJaroslav Kysela <perex@perex.cz>
      Link: https://lore.kernel.org/r/20220407212740.17920-1-tiwai@suse.de
      
      
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      fee2ec8c
    • Takashi Iwai's avatar
      ALSA: usb-audio: Cap upper limits of buffer/period bytes for implicit fb · 98c27add
      Takashi Iwai authored
      In the implicit feedback mode, some parameters are tied between both
      playback and capture streams.  One of the tied parameters is the
      period size, and this can be a problem if the device has different
      number of channels to both streams.  Assume that an application opens
      a playback stream that has an implicit feedback from a capture stream,
      and it allocates up to the max period and buffer size as much as
      possible.  When the capture device supports only more channels than
      the playback, the minimum period and buffer sizes become larger than
      the sizes the playback stream took.  That is, the minimum size will be
      over the max size the driver limits, and PCM core sees as if no
      available configuration is found, returning -EINVAL mercilessly.
      
      For avoiding this problem, we have to look through the counter part of
      audioformat list for each sync ep, and checks the channels.  If more
      channels are found there, we reduce the max period and buffer ...
      98c27add