ALSA: hda - set GET bit when adding a vendor verb to the codec regmap
authorMengdong Lin <mengdong.lin@intel.com>
Tue, 14 Apr 2015 03:25:36 +0000 (11:25 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Apr 2015 05:25:42 +0000 (07:25 +0200)
commit6d68432c2c22d9fb4c3d101fc307d3622c076142
tree852e698819412eb39fb79d2e15832c3c367517a2
parent1475891a03728f77ce71fc08d8a96d1f78ba08ca
ALSA: hda - set GET bit when adding a vendor verb to the codec regmap

Some HD-A codecs may add their own vendor 'set' verb to the regmap, thru func
snd_hdac_add_vendor_verb(). This patch sets the GET bit (bit 11)  when adding
the verb so that its peer vendor 'get' verb is actually added. This can avoid
I/O error when writing the 'set' verb thru remap, since HD-A regmap internally
looks up a writable vendor verb with GET bit set at first.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_regmap.c