Skip to content

Commit

Permalink
ALSA: hda - set GET bit when adding a vendor verb to the codec regmap
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
mengdonglin authored and tiwai committed Apr 14, 2015
1 parent ce4524e commit d6eb9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/hda/hdac_regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ int snd_hdac_regmap_add_vendor_verb(struct hdac_device *codec,

if (!p)
return -ENOMEM;
*p = verb;
*p = verb | 0x800; /* set GET bit */
return 0;
}
EXPORT_SYMBOL_GPL(snd_hdac_regmap_add_vendor_verb);
Expand Down

0 comments on commit d6eb9e3

Please sign in to comment.