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
index f668826649b37668b0a4f28a2b023de886ab51df,38728b00f59c53523c3f3fd26e5838de104b684f..7d7d592a8428006f0a3ef73ef0f25b7b62c31788
@@@ -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
index 20a26bffecb78528a4e7e1d1f7e144d1c7bf24c7,9e36738c0dd049698d72abf31cbbb4b383f8b649..b3b35018cb8209684f15938f704dc7d891447457
@@@ -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