Lines Matching refs:n
199 static inline struct snd_interval *param_to_interval(struct snd_pcm_hw_params *p, int n) in param_to_interval() argument
201 return &(p->intervals[n - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL]); in param_to_interval()
204 static inline struct snd_mask *param_to_mask(struct snd_pcm_hw_params *p, int n) in param_to_mask() argument
206 return &(p->masks[n - SNDRV_PCM_HW_PARAM_FIRST_MASK]); in param_to_mask()
209 void param_set_mask(struct snd_pcm_hw_params *p, int n, unsigned bit) in param_set_mask() argument
213 if (param_is_mask(n)) { in param_set_mask()
214 struct snd_mask *m = param_to_mask(p, n); in param_set_mask()
221 void param_set_min(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_min() argument
223 if (param_is_interval(n)) { in param_set_min()
224 struct snd_interval *i = param_to_interval(p, n); in param_set_min()
229 void param_set_max(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_max() argument
231 if (param_is_interval(n)) { in param_set_max()
232 struct snd_interval *i = param_to_interval(p, n); in param_set_max()
237 void param_set_int(struct snd_pcm_hw_params *p, int n, unsigned val) in param_set_int() argument
239 if (param_is_interval(n)) { in param_set_int()
240 struct snd_interval *i = param_to_interval(p, n); in param_set_int()
249 int n; in param_init() local
251 for (n = SNDRV_PCM_HW_PARAM_FIRST_MASK; in param_init()
252 n <= SNDRV_PCM_HW_PARAM_LAST_MASK; n++) { in param_init()
253 struct snd_mask *m = param_to_mask(p, n); in param_init()
257 for (n = SNDRV_PCM_HW_PARAM_FIRST_INTERVAL; in param_init()
258 n <= SNDRV_PCM_HW_PARAM_LAST_INTERVAL; n++) { in param_init()
259 struct snd_interval *i = param_to_interval(p, n); in param_init()
289 int n; in param_dump() local
291 for (n = SNDRV_PCM_HW_PARAM_FIRST_MASK; in param_dump()
292 n <= SNDRV_PCM_HW_PARAM_LAST_MASK; n++) { in param_dump()
293 struct snd_mask *m = param_to_mask(p, n); in param_dump()
294 ALOGV("%s = %08x%08x\n", param_name[n], in param_dump()
297 for (n = SNDRV_PCM_HW_PARAM_FIRST_INTERVAL; in param_dump()
298 n <= SNDRV_PCM_HW_PARAM_LAST_INTERVAL; n++) { in param_dump()
299 struct snd_interval *i = param_to_interval(p, n); in param_dump()
301 param_name[n], i->min, i->max, i->openmin, in param_dump()