Lines Matching full:resource

36 	struct twl4030_audio_resource resource[TWL4030_AUDIO_RES_MAX];  member
41 * Modify the resource, the function returns the content of the register
50 audio->resource[id].reg); in twl4030_audio_set_resource()
53 val |= audio->resource[id].mask; in twl4030_audio_set_resource()
55 val &= ~audio->resource[id].mask; in twl4030_audio_set_resource()
58 val, audio->resource[id].reg); in twl4030_audio_set_resource()
69 audio->resource[id].reg); in twl4030_audio_get_resource()
75 * Enable the resource.
85 "Invalid resource ID (%u)\n", id); in twl4030_audio_enable_resource()
90 if (!audio->resource[id].request_count) in twl4030_audio_enable_resource()
91 /* Resource was disabled, enable it */ in twl4030_audio_enable_resource()
96 audio->resource[id].request_count++; in twl4030_audio_enable_resource()
104 * Disable the resource.
114 "Invalid resource ID (%u)\n", id); in twl4030_audio_disable_resource()
119 if (!audio->resource[id].request_count) { in twl4030_audio_disable_resource()
121 "Resource has been disabled already (%u)\n", id); in twl4030_audio_disable_resource()
125 audio->resource[id].request_count--; in twl4030_audio_disable_resource()
127 if (!audio->resource[id].request_count) in twl4030_audio_disable_resource()
128 /* Resource can be disabled now */ in twl4030_audio_disable_resource()
218 audio->resource[TWL4030_AUDIO_RES_POWER].reg = TWL4030_REG_CODEC_MODE; in twl4030_audio_probe()
219 audio->resource[TWL4030_AUDIO_RES_POWER].mask = TWL4030_CODECPDZ; in twl4030_audio_probe()
222 audio->resource[TWL4030_AUDIO_RES_APLL].reg = TWL4030_REG_APLL_CTL; in twl4030_audio_probe()
223 audio->resource[TWL4030_AUDIO_RES_APLL].mask = TWL4030_APLL_EN; in twl4030_audio_probe()