Lines Matching defs:resource
36 struct twl4030_audio_resource resource[TWL4030_AUDIO_RES_MAX];
41 * Modify the resource, the function returns the content of the register
50 audio->resource[id].reg);
53 val |= audio->resource[id].mask;
55 val &= ~audio->resource[id].mask;
58 val, audio->resource[id].reg);
69 audio->resource[id].reg);
75 * Enable the resource.
85 "Invalid resource ID (%u)\n", id);
90 if (!audio->resource[id].request_count)
96 audio->resource[id].request_count++;
104 * Disable the resource.
114 "Invalid resource ID (%u)\n", id);
119 if (!audio->resource[id].request_count) {
125 audio->resource[id].request_count--;
127 if (!audio->resource[id].request_count)
218 audio->resource[TWL4030_AUDIO_RES_POWER].reg = TWL4030_REG_CODEC_MODE;
219 audio->resource[TWL4030_AUDIO_RES_POWER].mask = TWL4030_CODECPDZ;
222 audio->resource[TWL4030_AUDIO_RES_APLL].reg = TWL4030_REG_APLL_CTL;
223 audio->resource[TWL4030_AUDIO_RES_APLL].mask = TWL4030_APLL_EN;