@@ -69,11 +69,14 @@ void snd_hdac_regmap_sync(struct hdac_device *codec);
6969
7070/**
7171 * snd_hdac_regmap_write - Write a verb with caching
72+ * @codec: HD-audio codec base device
7273 * @nid: codec NID
73- * @reg : verb to write
74+ * @verb : verb to write
7475 * @val: value to write
7576 *
7677 * For writing an amp value, use snd_hdac_regmap_update_amp().
78+ *
79+ * Returns: %0 if successful or a negative error code.
7780 */
7881static inline int
7982snd_hdac_regmap_write (struct hdac_device * codec , hda_nid_t nid ,
@@ -85,13 +88,16 @@ snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid,
8588}
8689
8790/**
88- * snd_hda_regmap_update - Update a verb value with caching
91+ * snd_hdac_regmap_update - Update a verb value with caching
92+ * @codec: HD-audio codec
8993 * @nid: codec NID
9094 * @verb: verb to update
9195 * @mask: bit mask to update
9296 * @val: value to update
9397 *
9498 * For updating an amp value, use snd_hdac_regmap_update_amp().
99+ *
100+ * Returns: %0 if successful or a negative error code.
95101 */
96102static inline int
97103snd_hdac_regmap_update (struct hdac_device * codec , hda_nid_t nid ,
@@ -104,12 +110,15 @@ snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid,
104110}
105111
106112/**
107- * snd_hda_regmap_read - Read a verb with caching
113+ * snd_hdac_regmap_read - Read a verb with caching
114+ * @codec: HD-audio codec
108115 * @nid: codec NID
109116 * @verb: verb to read
110117 * @val: pointer to store the value
111118 *
112119 * For reading an amp value, use snd_hda_regmap_get_amp().
120+ *
121+ * Returns: %0 if successful or a negative error code.
113122 */
114123static inline int
115124snd_hdac_regmap_read (struct hdac_device * codec , hda_nid_t nid ,
@@ -125,12 +134,12 @@ snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid,
125134 * @codec: HD-audio codec
126135 * @nid: NID to read the AMP value
127136 * @ch: channel (left=0 or right=1)
128- * @direction: #HDA_INPUT or #HDA_OUTPUT
129- * @index: the index value (only for input direction)
130- * @val: the pointer to store the value
137+ * @dir: #HDA_INPUT or #HDA_OUTPUT
138+ * @idx: the index value (only for input direction)
131139 *
132140 * Read AMP value. The volume is between 0 to 0x7f, 0x80 = mute bit.
133- * Returns the value or a negative error.
141+ *
142+ * Returns: the value or a negative error.
134143 */
135144static inline int
136145snd_hdac_regmap_get_amp (struct hdac_device * codec , hda_nid_t nid ,
@@ -148,13 +157,14 @@ snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid,
148157 * @codec: HD-audio codec
149158 * @nid: NID to read the AMP value
150159 * @ch: channel (left=0 or right=1)
151- * @direction : #HDA_INPUT or #HDA_OUTPUT
160+ * @dir : #HDA_INPUT or #HDA_OUTPUT
152161 * @idx: the index value (only for input direction)
153162 * @mask: bit mask to set
154163 * @val: the bits value to set
155164 *
156165 * Update the AMP value with a bit mask.
157- * Returns 0 if the value is unchanged, 1 if changed, or a negative error.
166+ *
167+ * Returns: 0 if the value is unchanged, 1 if changed, or a negative error.
158168 */
159169static inline int
160170snd_hdac_regmap_update_amp (struct hdac_device * codec , hda_nid_t nid ,
@@ -169,13 +179,12 @@ snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid,
169179 * snd_hdac_regmap_get_amp_stereo - Read stereo AMP values
170180 * @codec: HD-audio codec
171181 * @nid: NID to read the AMP value
172- * @ch: channel (left=0 or right=1)
173- * @direction: #HDA_INPUT or #HDA_OUTPUT
174- * @index: the index value (only for input direction)
175- * @val: the pointer to store the value
182+ * @dir: #HDA_INPUT or #HDA_OUTPUT
183+ * @idx: the index value (only for input direction)
176184 *
177185 * Read stereo AMP values. The lower byte is left, the upper byte is right.
178- * Returns the value or a negative error.
186+ *
187+ * Returns: the value or a negative error.
179188 */
180189static inline int
181190snd_hdac_regmap_get_amp_stereo (struct hdac_device * codec , hda_nid_t nid ,
@@ -192,14 +201,15 @@ snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid,
192201 * snd_hdac_regmap_update_amp_stereo - update the stereo AMP value
193202 * @codec: HD-audio codec
194203 * @nid: NID to read the AMP value
195- * @direction : #HDA_INPUT or #HDA_OUTPUT
204+ * @dir : #HDA_INPUT or #HDA_OUTPUT
196205 * @idx: the index value (only for input direction)
197206 * @mask: bit mask to set
198207 * @val: the bits value to set
199208 *
200209 * Update the stereo AMP value with a bit mask.
201210 * The lower byte is left, the upper byte is right.
202- * Returns 0 if the value is unchanged, 1 if changed, or a negative error.
211+ *
212+ * Returns: 0 if the value is unchanged, 1 if changed, or a negative error.
203213 */
204214static inline int
205215snd_hdac_regmap_update_amp_stereo (struct hdac_device * codec , hda_nid_t nid ,
0 commit comments