Lines Matching refs:n
195 static inline struct snd_interval *param_to_interval(struct snd_pcm_hw_params *p, int n) in param_to_interval() argument
197 return &(p->intervals[n - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL]); in param_to_interval()
200 static inline struct snd_mask *param_to_mask(struct snd_pcm_hw_params *p, int n) in param_to_mask() argument
202 return &(p->masks[n - SNDRV_PCM_HW_PARAM_FIRST_MASK]); in param_to_mask()
205 void param_set_mask(struct snd_pcm_hw_params *p, int n, unsigned bit) in param_set_mask() argument
209 if (param_is_mask(n)) { in param_set_mask()
210 struct snd_mask *m = param_to_mask(p, n); in param_set_mask()
217 void param_set_min(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_min() argument
219 if (param_is_interval(n)) { in param_set_min()
220 struct snd_interval *i = param_to_interval(p, n); in param_set_min()
225 void param_set_max(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_max() argument
227 if (param_is_interval(n)) { in param_set_max()
228 struct snd_interval *i = param_to_interval(p, n); in param_set_max()
233 void param_set_int(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_int() argument
235 if (param_is_interval(n)) { in param_set_int()
236 struct snd_interval *i = param_to_interval(p, n); in param_set_int()
245 int n; in param_init() local
247 for (n = SNDRV_PCM_HW_PARAM_FIRST_MASK; in param_init()
248 n <= SNDRV_PCM_HW_PARAM_LAST_MASK; n++) { in param_init()
249 struct snd_mask *m = param_to_mask(p, n); in param_init()
253 for (n = SNDRV_PCM_HW_PARAM_FIRST_INTERVAL; in param_init()
254 n <= SNDRV_PCM_HW_PARAM_LAST_INTERVAL; n++) { in param_init()
255 struct snd_interval *i = param_to_interval(p, n); in param_init()
285 int n; in param_dump() local
287 for (n = SNDRV_PCM_HW_PARAM_FIRST_MASK; in param_dump()
288 n <= SNDRV_PCM_HW_PARAM_LAST_MASK; n++) { in param_dump()
289 struct snd_mask *m = param_to_mask(p, n); in param_dump()
290 ALOGV("%s = %08x%08x\n", param_name[n], in param_dump()
293 for (n = SNDRV_PCM_HW_PARAM_FIRST_INTERVAL; in param_dump()
294 n <= SNDRV_PCM_HW_PARAM_LAST_INTERVAL; n++) { in param_dump()
295 struct snd_interval *i = param_to_interval(p, n); in param_dump()
297 param_name[n], i->min, i->max, i->openmin, in param_dump()