1. 21 May, 2022 3 commits
    • Takashi Iwai's avatar
      ALSA: usb-audio: Workaround for clock setup on TEAC devices · 5ce0b06a
      Takashi Iwai authored
      Maris reported that TEAC UD-501 (0644:8043) doesn't work with the
      typical "clock source 41 is not valid, cannot use" errors on the
      recent kernels.  The currently known workaround so far is to restore
      (partially) what we've done unconditionally at the clock setup;
      namely, re-setup the USB interface immediately after the clock is
      changed.  This patch re-introduces the behavior conditionally for TEAC
      devices.
      
      Further notes:
      - The USB interface shall be set later in
        snd_usb_endpoint_configure(), but this seems to be too late.
      - Even calling  usb_set_interface() right after
        sne_usb_init_sample_rate() doesn't help; so this must be related
        with the clock validation, too.
      - The device may still spew the "clock source 41 is not valid" error
        at the first clock setup.  This seems happening at the very first
        try of clock setup, but it disappears at later attempts.
        The error is likely harmless because the driver retries the clock
        setup (such an error is more or less expected on some devices).
      
      Fixes: bf6313a0 ("ALSA: usb-audio: Refactor endpoint management")
      Reported-and-tested-by: default avatarMaris Abele <maris7abele@gmail.com>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20220521064627.29292-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      5ce0b06a
    • Kees Cook's avatar
      ALSA: lola: Bounds check loop iterator against streams array size · 12626530
      Kees Cook authored
      GCC 12 sees that it's technically possible for num_streams to be larger
      than ARRAY_SIZE(pcm->streams). Bounds-check the iterator.
      
      ../sound/pci/lola/lola_pcm.c: In function 'lola_pcm_update':
      ../sound/pci/lola/lola_pcm.c:567:64: warning: array subscript [0, 31] is outside array bounds of 'struct lola_stream[16]' [-Warray-bounds]
        567 |                         struct lola_stream *str = &pcm->streams[i];
            |                                                    ~~~~~~~~~~~~^~~
      In file included from ../sound/pci/lola/lola_pcm.c:15:
      ../sound/pci/lola/lola.h:307:28: note: while referencing 'streams'
        307 |         struct lola_stream streams[MAX_STREAM_COUNT];
            |                            ^~~~~~~
      Signed-off-by: default avatarKees Cook <keescook@chromium.org>
      Link: https://lore.kernel.org/r/20220520165537.2139826-1-keescook@chromium.orgSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      12626530
    • Takashi Iwai's avatar
      Merge tag 'asoc-fix-v5.18-rc7' of... · 15ad3332
      Takashi Iwai authored
      Merge tag 'asoc-fix-v5.18-rc7' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
      
      ASoC: Fix for v5.17
      
      This is rather late and at this point I'm expecting it to get merged in
      the merge window rather than as a fix but if we get a -rc8 it's a small,
      driver specific fix which should be fine to send.
      15ad3332
  2. 16 May, 2022 2 commits
  3. 13 May, 2022 1 commit
  4. 11 May, 2022 1 commit
  5. 10 May, 2022 1 commit
  6. 08 May, 2022 4 commits
  7. 27 Apr, 2022 1 commit
  8. 26 Apr, 2022 1 commit
  9. 25 Apr, 2022 10 commits
  10. 22 Apr, 2022 3 commits
  11. 21 Apr, 2022 9 commits
  12. 20 Apr, 2022 3 commits
  13. 19 Apr, 2022 1 commit