• Takashi Iwai's avatar
    [ALSA] hda-codec - Add a generic bind-control helper · 532d5381
    Takashi Iwai authored
    Added callbacks for a generic bind-control of mixer elements.
    This can be used for creating a mixer element controlling multiple
    widgets at the same time.  Two macros, HDA_BIND_VOL() and HDA_BIND_SW(),
    are introduced for creating bind-volume and bind-switch, respectively.
    It taks the mixer element name and struct hda_bind_ctls pointer, which
    contains the real control callbacks in ops field and long array for
    private_value of each bound widget.
    All widgets have to be the same type (i.e. the same amp capability).
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
    532d5381
patch_realtek.c 385 KB