/** * snd_hda_regmap_update - Update a verb value with caching * @nid: codec NID * @verb: verb to update * @mask: bit mask to update * @val: value to update * * For updating an amp value, use snd_hdac_regmap_update_amp().
*/ staticinlineint
snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, unsignedint verb, unsignedint mask, unsignedint val)
{ unsignedint cmd = snd_hdac_regmap_encode_verb(nid, verb);
/** * snd_hda_regmap_read - Read a verb with caching * @nid: codec NID * @verb: verb to read * @val: pointer to store the value * * For reading an amp value, use snd_hda_regmap_get_amp().
*/ staticinlineint
snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, unsignedint verb, unsignedint *val)
{ unsignedint cmd = snd_hdac_regmap_encode_verb(nid, verb);
/** * snd_hdac_regmap_get_amp - Read AMP value * @codec: HD-audio codec * @nid: NID to read the AMP value * @ch: channel (left=0 or right=1) * @direction: #HDA_INPUT or #HDA_OUTPUT * @index: the index value (only for input direction) * @val: the pointer to store the value * * Read AMP value. The volume is between 0 to 0x7f, 0x80 = mute bit. * Returns the value or a negative error.
*/ staticinlineint
snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, int ch, int dir, int idx)
{ unsignedint cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); int err, val;
/** * snd_hdac_regmap_update_amp - update the AMP value * @codec: HD-audio codec * @nid: NID to read the AMP value * @ch: channel (left=0 or right=1) * @direction: #HDA_INPUT or #HDA_OUTPUT * @idx: the index value (only for input direction) * @mask: bit mask to set * @val: the bits value to set * * Update the AMP value with a bit mask. * Returns 0 if the value is unchanged, 1 if changed, or a negative error.
*/ staticinlineint
snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, int ch, int dir, int idx, int mask, int val)
{ unsignedint cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx);
/** * snd_hdac_regmap_get_amp_stereo - Read stereo AMP values * @codec: HD-audio codec * @nid: NID to read the AMP value * @ch: channel (left=0 or right=1) * @direction: #HDA_INPUT or #HDA_OUTPUT * @index: the index value (only for input direction) * @val: the pointer to store the value * * Read stereo AMP values. The lower byte is left, the upper byte is right. * Returns the value or a negative error.
*/ staticinlineint
snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx)
{ unsignedint cmd = snd_hdac_regmap_encode_amp_stereo(nid, dir, idx); int err, val;
/** * snd_hdac_regmap_update_amp_stereo - update the stereo AMP value * @codec: HD-audio codec * @nid: NID to read the AMP value * @direction: #HDA_INPUT or #HDA_OUTPUT * @idx: the index value (only for input direction) * @mask: bit mask to set * @val: the bits value to set * * Update the stereo AMP value with a bit mask. * The lower byte is left, the upper byte is right. * Returns 0 if the value is unchanged, 1 if changed, or a negative error.
*/ staticinlineint
snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, int dir, int idx, int mask, int val)
{ unsignedint cmd = snd_hdac_regmap_encode_amp_stereo(nid, dir, idx);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.