Merge branch 'topic/control-lookup-rwlock' into for-next
authorTakashi Iwai <tiwai@suse.de>
Fri, 9 Aug 2024 12:25:16 +0000 (14:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Aug 2024 12:25:24 +0000 (14:25 +0200)
Pull control lookup optimization changes.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
1  2 
include/sound/control.h
include/sound/core.h
sound/core/control.c
sound/core/control_compat.c
sound/core/control_led.c
sound/core/seq/seq_ports.h
sound/core/seq/seq_ump_convert.c
sound/pci/hda/hda_intel.c

Simple merge
Simple merge
@@@ -1303,10 -1267,10 +1270,10 @@@ static int snd_ctl_elem_write(struct sn
        struct snd_kcontrol *kctl;
        struct snd_kcontrol_volatile *vd;
        unsigned int index_offset;
 -      int result;
 +      int result = 0;
  
        down_write(&card->controls_rwsem);
-       kctl = snd_ctl_find_id_locked(card, &control->id);
+       kctl = snd_ctl_find_id(card, &control->id);
        if (kctl == NULL) {
                up_write(&card->controls_rwsem);
                return -ENOENT;
Simple merge
Simple merge
@@@ -87,10 -77,8 +77,10 @@@ struct snd_seq_client_port 
        unsigned char direction;
        unsigned char ump_group;
  
 +      bool is_midi1;  /* keep MIDI 1.0 protocol */
 +
  #if IS_ENABLED(CONFIG_SND_SEQ_UMP)
-       struct snd_seq_ump_midi2_bank midi2_bank[16]; /* per channel */
+       struct ump_cvt_to_ump_bank midi2_bank[16]; /* per channel */
  #endif
  };
  
Simple merge
Simple merge