*参照元 [#w16ed1f4] #backlinks *説明 [#h51b232b] -パス: [[linux-4.4.1/sound/soc/soc-io.c]] -FIXME: これは何? --説明 **引数 [#p68bbbe3] -struct snd_soc_component *component -- --[[linux-4.4.1/snd_soc_component]] -unsigned int reg -- -unsigned int mask -- -unsigned int val -- **返り値 [#o019f69e] -int -- **参考 [#xc69fcd8] *実装 [#j8da2175] /** * snd_soc_component_update_bits() - Perform read/modify/write cycle * @component: Component to update * @reg: Register to update * @mask: Mask that specifies which bits to update * @val: New value for the bits specified by mask * * Return: 1 if the operation was successful and the value of the register * changed, 0 if the operation was successful, but the value did not change. * Returns a negative error code otherwise. */ int snd_soc_component_update_bits(struct snd_soc_component *component, unsigned int reg, unsigned int mask, unsigned int val) { bool change; int ret; if (component->regmap) ret = regmap_update_bits_check(component->regmap, reg, mask, val, &change); else ret = snd_soc_component_update_bits_legacy(component, reg, mask, val, &change); - --[[linux-4.4.1/regmap_update_bits_check()]] --[[linux-4.4.1/snd_soc_component_update_bits_legacy()]] if (ret < 0) return ret; return change; } EXPORT_SYMBOL_GPL(snd_soc_component_update_bits); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] *コメント [#vc391426]