Ignore:
Timestamp:
Apr 19, 2025, 8:08:37 PM (4 months ago)
Author:
David Azarewicz
Message:

Merge in changes from 6.6-LTS branch.
Fixed additional 25+ problems.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/include/sound/control.h

    r695 r772  
    2424
    2525/* internal flag for skipping validations */
    26 #ifdef CONFIG_SND_CTL_VALIDATION
     26#ifdef CONFIG_SND_CTL_DEBUG
    2727#define SNDRV_CTL_ELEM_ACCESS_SKIP_CHECK        (1 << 24)
    2828#define snd_ctl_skip_validation(info) \
     
    110110        wait_queue_head_t change_sleep;
    111111        spinlock_t read_lock;
    112         struct fasync_struct *fasync;
     112        struct snd_fasync *fasync;
    113113        int subscribed;                 /* read interface is activated */
    114114        struct list_head events;        /* waiting events for read */
     
    139139int snd_ctl_remove_id(struct snd_card * card, struct snd_ctl_elem_id *id);
    140140int snd_ctl_rename_id(struct snd_card * card, struct snd_ctl_elem_id *src_id, struct snd_ctl_elem_id *dst_id);
     141void snd_ctl_rename(struct snd_card *card, struct snd_kcontrol *kctl, const char *name);
    141142int snd_ctl_activate_id(struct snd_card *card, struct snd_ctl_elem_id *id, int active);
    142 struct snd_kcontrol *snd_ctl_find_numid(struct snd_card * card, unsigned int numid);
    143 struct snd_kcontrol *snd_ctl_find_id(struct snd_card * card, struct snd_ctl_elem_id *id);
     143struct snd_kcontrol *snd_ctl_find_numid_locked(struct snd_card *card, unsigned int numid);
     144struct snd_kcontrol *snd_ctl_find_numid(struct snd_card *card, unsigned int numid);
     145struct snd_kcontrol *snd_ctl_find_id_locked(struct snd_card *card, const struct snd_ctl_elem_id *id);
     146struct snd_kcontrol *snd_ctl_find_id(struct snd_card *card, const struct snd_ctl_elem_id *id);
     147
     148/**
     149 * snd_ctl_find_id_mixer - find the control instance with the given name string
     150 * @card: the card instance
     151 * @name: the name string
     152 *
     153 * Finds the control instance with the given name and
     154 * @SNDRV_CTL_ELEM_IFACE_MIXER. Other fields are set to zero.
     155 *
     156 * This is merely a wrapper to snd_ctl_find_id().
     157 *
     158 * Return: The pointer of the instance if found, or %NULL if not.
     159 */
     160static inline struct snd_kcontrol *
     161snd_ctl_find_id_mixer(struct snd_card *card, const char *name)
     162{
     163        struct snd_ctl_elem_id id = {0};
     164
     165        id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
     166        strscpy(id.name, name, sizeof(id.name));
     167        return snd_ctl_find_id(card, &id);
     168}
    144169
    145170int snd_ctl_create(struct snd_card *card);
     
    237262        return _snd_ctl_add_follower(master, follower, 0);
    238263}
     264
     265int snd_ctl_add_followers(struct snd_card *card, struct snd_kcontrol *master,
     266                          const char * const *list);
    239267
    240268/**
Note: See TracChangeset for help on using the changeset viewer.