Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 15 of 15) sorted by relevance

/sound/usb/
Dformat.c32 struct audioformat *fp, in parse_audio_format_i_type() argument
38 switch (fp->protocol) { in parse_audio_format_i_type()
45 fp->iface, fp->altsetting, format); in parse_audio_format_i_type()
62 fp->dsd_raw = true; in parse_audio_format_i_type()
82 fp->fmt_bits = sample_width; in parse_audio_format_i_type()
88 fp->iface, fp->altsetting); in parse_audio_format_i_type()
100 fp->iface, fp->altsetting, in parse_audio_format_i_type()
109 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type()
115 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type()
126 fp->iface, fp->altsetting, in parse_audio_format_i_type()
[all …]
Dstream.c31 static void audioformat_free(struct audioformat *fp) in audioformat_free() argument
33 list_del(&fp->list); /* unlink for avoiding double-free */ in audioformat_free()
34 kfree(fp->rate_table); in audioformat_free()
35 kfree(fp->chmap); in audioformat_free()
36 kfree(fp); in audioformat_free()
44 struct audioformat *fp, *n; in free_substream() local
48 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) in free_substream()
49 audioformat_free(fp); in free_substream()
81 struct audioformat *fp, in snd_usb_init_substream() argument
100 list_add_tail(&fp->list, &subs->fmt_list); in snd_usb_init_substream()
[all …]
Dproc.c94 struct audioformat *fp; in proc_dump_substream_formats() local
99 list_for_each_entry(fp, &subs->fmt_list, list) { in proc_dump_substream_formats()
102 snd_iprintf(buffer, " Interface %d\n", fp->iface); in proc_dump_substream_formats()
103 snd_iprintf(buffer, " Altset %d\n", fp->altsetting); in proc_dump_substream_formats()
106 if (fp->formats & pcm_format_to_bits(fmt)) in proc_dump_substream_formats()
110 snd_iprintf(buffer, " Channels: %d\n", fp->channels); in proc_dump_substream_formats()
112 fp->endpoint, in proc_dump_substream_formats()
113 fp->endpoint & USB_ENDPOINT_NUMBER_MASK, in proc_dump_substream_formats()
114 fp->endpoint & USB_DIR_IN ? "IN" : "OUT", in proc_dump_substream_formats()
115 sync_types[(fp->ep_attr & USB_ENDPOINT_SYNCTYPE) >> 2]); in proc_dump_substream_formats()
[all …]
Dquirks.c115 struct audioformat *fp) in add_audio_stream_from_fixed_fmt() argument
119 stream = (fp->endpoint & USB_DIR_IN) ? in add_audio_stream_from_fixed_fmt()
122 snd_usb_audioformat_set_sync_ep(chip, fp); in add_audio_stream_from_fixed_fmt()
124 err = snd_usb_add_audio_stream(chip, stream, fp); in add_audio_stream_from_fixed_fmt()
128 err = snd_usb_add_endpoint(chip, fp->endpoint, in add_audio_stream_from_fixed_fmt()
133 if (fp->sync_ep) { in add_audio_stream_from_fixed_fmt()
134 err = snd_usb_add_endpoint(chip, fp->sync_ep, in add_audio_stream_from_fixed_fmt()
135 fp->implicit_fb ? in add_audio_stream_from_fixed_fmt()
153 struct audioformat *fp; in create_fixed_stream_quirk() local
159 fp = kmemdup(quirk->data, sizeof(*fp), GFP_KERNEL); in create_fixed_stream_quirk()
[all …]
Dpcm.c97 const struct audioformat *fp; in find_format() local
102 list_for_each_entry(fp, fmt_list_head, list) { in find_format()
104 if (!(fp->formats & pcm_format_to_bits(format))) in find_format()
106 if (fp->channels != channels) in find_format()
109 if (rate < fp->rate_min || rate > fp->rate_max) in find_format()
111 if (!(fp->rates & SNDRV_PCM_RATE_CONTINUOUS)) { in find_format()
113 for (i = 0; i < fp->nr_rates; i++) in find_format()
114 if (fp->rate_table[i] == rate) in find_format()
116 if (i >= fp->nr_rates) in find_format()
119 attr = fp->ep_attr & USB_ENDPOINT_SYNCTYPE; in find_format()
[all …]
Dimplicit.c404 const struct audioformat *fp, in match_endpoint_audioformats() argument
410 if (fp->channels < 1) in match_endpoint_audioformats()
413 if (!(fp->formats & pcm_format_to_bits(pcm_format))) in match_endpoint_audioformats()
416 if (fp->rates & SNDRV_PCM_RATE_CONTINUOUS) { in match_endpoint_audioformats()
417 if (rate < fp->rate_min || rate > fp->rate_max) in match_endpoint_audioformats()
420 for (i = 0; i < fp->nr_rates; i++) { in match_endpoint_audioformats()
421 if (fp->rate_table[i] == rate) in match_endpoint_audioformats()
424 if (i >= fp->nr_rates) in match_endpoint_audioformats()
429 if (fp->channels == channels) in match_endpoint_audioformats()
461 const struct audioformat *fp, *sync_fmt = NULL; in snd_usb_find_implicit_fb_sync_format() local
[all …]
Dquirks.h32 const struct audioformat *fp);
44 struct audioformat *fp,
48 struct audioformat *fp,
Dformat.h6 struct audioformat *fp, u64 format,
11 struct audioformat *fp,
Dendpoint.c701 const struct audioformat *fp, in endpoint_compatible() argument
706 if (ep->cur_audiofmt != fp) in endpoint_compatible()
722 const struct audioformat *fp, in snd_usb_endpoint_compatible() argument
728 ret = endpoint_compatible(ep, fp, params); in snd_usb_endpoint_compatible()
748 const struct audioformat *fp, in snd_usb_endpoint_open() argument
753 int ep_num = is_sync_ep ? fp->sync_ep : fp->endpoint; in snd_usb_endpoint_open()
764 ep->iface = fp->sync_iface; in snd_usb_endpoint_open()
765 ep->altsetting = fp->sync_altsetting; in snd_usb_endpoint_open()
766 ep->ep_idx = fp->sync_ep_idx; in snd_usb_endpoint_open()
768 ep->iface = fp->iface; in snd_usb_endpoint_open()
[all …]
Dendpoint.h15 const struct audioformat *fp,
28 const struct audioformat *fp,
Dstream.h10 struct audioformat *fp);
/sound/mips/
Dad1843.c217 const struct ad1843_bitfield *fp; in ad1843_read_multi() local
222 fp = va_arg(ap, const struct ad1843_bitfield *); in ad1843_read_multi()
225 reg = fp->reg; in ad1843_read_multi()
229 mask = (1 << fp->nbits) - 1; in ad1843_read_multi()
230 *value = w >> fp->lo_bit & mask; in ad1843_read_multi()
250 const struct ad1843_bitfield *fp; in ad1843_write_multi() local
260 fp = va_arg(ap, const struct ad1843_bitfield *); in ad1843_write_multi()
263 reg = fp->reg; in ad1843_write_multi()
265 WARN_ON(reg != fp->reg); in ad1843_write_multi()
266 m = ((1 << fp->nbits) - 1) << fp->lo_bit; in ad1843_write_multi()
[all …]
/sound/soc/ti/
Dams-delta.c343 const char *fp, int count) in cx81801_receive() argument
358 v253_ops.receive_buf(tty, cp, fp, count); in cx81801_receive()
372 v253_ops.receive_buf(tty, cp, fp, count); in cx81801_receive()
/sound/soc/fsl/
Dfsl_esai.c166 bool usefp, u32 fp) in fsl_esai_divisor_cal() argument
173 if (usefp && fp) in fsl_esai_divisor_cal()
192 fp = 1; in fsl_esai_divisor_cal()
219 fp = j; in fsl_esai_divisor_cal()
244 ESAI_xCCR_xFP_MASK, ESAI_xCCR_xFP(fp)); in fsl_esai_divisor_cal()
/sound/soc/codecs/
Dcx20442.c263 const char *fp, int count) in v253_receive() argument