1. 08 Aug, 2024 13 commits
  2. 07 Aug, 2024 6 commits
  3. 06 Aug, 2024 2 commits
    • Takashi Iwai's avatar
      ALSA: usb-audio: Add input value sanity checks for standard types · 901e8567
      Takashi Iwai authored
      For an invalid input value that is out of the given range, currently
      USB-audio driver corrects the value silently and accepts without
      errors.  This is no wrong behavior, per se, but the recent kselftest
      rather wants to have an error in such a case, hence a different
      behavior is expected now.
      
      This patch adds a sanity check at each control put for the standard
      mixer types and returns an error if an invalid value is given.
      
      Note that this covers only the standard mixer types.  The mixer quirks
      that have own control callbacks would need different coverage.
      
      Link: https://patch.msgid.link/20240806124651.28203-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      901e8567
    • Takashi Iwai's avatar
      ALSA: ump: Handle MIDI 1.0 Function Block in MIDI 2.0 protocol · 0079c9d1
      Takashi Iwai authored
      The UMP v1.1 spec says in the section 6.2.1:
      "If a UMP Endpoint declares MIDI 2.0 Protocol but a Function Block
      represents a MIDI 1.0 connection, then may optionally be used for
      messages to/from that Function Block."
      
      It implies that the driver can (and should) keep MIDI 1.0 CVM
      exceptionally for those FBs even if UMP Endpoint is running in MIDI
      2.0 protocol, and the current driver lacks of it.
      
      This patch extends the sequencer port info to indicate a MIDI 1.0
      port, and tries to send/receive MIDI 1.0 CVM as is when this port is
      the source or sink.  The sequencer port flag is set by the driver at
      parsing FBs and GTBs although application can set it to its own
      user-space clients, too.
      
      Link: https://patch.msgid.link/20240806070024.14301-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      0079c9d1
  4. 01 Aug, 2024 8 commits
  5. 30 Jul, 2024 6 commits
  6. 29 Jul, 2024 1 commit
  7. 28 Jul, 2024 4 commits
    • Linus Torvalds's avatar
      Linux 6.11-rc1 · 8400291e
      Linus Torvalds authored
      8400291e
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.11' of... · a0c04bd5
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix RPM package build error caused by an incorrect locale setup
      
       - Mark modules.weakdep as ghost in RPM package
      
       - Fix the odd combination of -S and -c in stack protector scripts,
         which is an error with the latest Clang
      
      * tag 'kbuild-fixes-v6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: Fix '-S -c' in x86 stack protector scripts
        kbuild: rpm-pkg: ghost modules.weakdep file
        kbuild: rpm-pkg: Fix C locale setup
      a0c04bd5
    • Linus Torvalds's avatar
      minmax: simplify and clarify min_t()/max_t() implementation · 017fa3e8
      Linus Torvalds authored
      This simplifies the min_t() and max_t() macros by no longer making them
      work in the context of a C constant expression.
      
      That means that you can no longer use them for static initializers or
      for array sizes in type definitions, but there were only a couple of
      such uses, and all of them were converted (famous last words) to use
      MIN_T/MAX_T instead.
      
      Cc: David Laight <David.Laight@aculab.com>
      Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      017fa3e8
    • Linus Torvalds's avatar
      minmax: add a few more MIN_T/MAX_T users · 4477b39c
      Linus Torvalds authored
      Commit 3a7e02c0 ("minmax: avoid overly complicated constant
      expressions in VM code") added the simpler MIN_T/MAX_T macros in order
      to avoid some excessive expansion from the rather complicated regular
      min/max macros.
      
      The complexity of those macros stems from two issues:
      
       (a) trying to use them in situations that require a C constant
           expression (in static initializers and for array sizes)
      
       (b) the type sanity checking
      
      and MIN_T/MAX_T avoids both of these issues.
      
      Now, in the whole (long) discussion about all this, it was pointed out
      that the whole type sanity checking is entirely unnecessary for
      min_t/max_t which get a fixed type that the comparison is done in.
      
      But that still leaves min_t/max_t unnecessarily complicated due to
      worries about the C constant expression case.
      
      However, it turns out that there really aren't very many cases that use
      min_t/max_t for this, and we can just force-convert those.
      
      This does exactly that.
      
      Which in turn will then allow for much simpler implementations of
      min_t()/max_t().  All the usual "macros in all upper case will evaluate
      the arguments multiple times" rules apply.
      
      We should do all the same things for the regular min/max() vs MIN/MAX()
      cases, but that has the added complexity of various drivers defining
      their own local versions of MIN/MAX, so that needs another level of
      fixes first.
      
      Link: https://lore.kernel.org/all/b47fad1d0cf8449886ad148f8c013dae@AcuMS.aculab.com/
      Cc: David Laight <David.Laight@aculab.com>
      Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4477b39c