From: Takashi Iwai Date: Fri, 27 Jul 2007 17:02:40 +0000 (+0200) Subject: [ALSA] hda-codec - Add a generic bind-control helper X-Git-Tag: v2.6.24-rc1~832^2~229 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=532d5381793f3c824f8ff68d7067fab8c76bb811;p=pandora-kernel.git [ALSA] hda-codec - Add a generic bind-control helper 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: Takashi Iwai Signed-off-by: Jaroslav Kysela --- Reading git-diff-tree failed