/sound/usb/ |
D | format.c | 32 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 …]
|
D | stream.c | 31 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 …]
|
D | proc.c | 94 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 …]
|
D | quirks.c | 115 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 …]
|
D | pcm.c | 98 const struct audioformat *fp; in find_format() local 103 list_for_each_entry(fp, fmt_list_head, list) { in find_format() 105 if (!(fp->formats & pcm_format_to_bits(format))) in find_format() 107 if (fp->channels != channels) in find_format() 110 if (rate < fp->rate_min || rate > fp->rate_max) in find_format() 112 if (!(fp->rates & SNDRV_PCM_RATE_CONTINUOUS)) { in find_format() 114 for (i = 0; i < fp->nr_rates; i++) in find_format() 115 if (fp->rate_table[i] == rate) in find_format() 117 if (i >= fp->nr_rates) in find_format() 120 attr = fp->ep_attr & USB_ENDPOINT_SYNCTYPE; in find_format() [all …]
|
D | implicit.c | 404 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 …]
|
D | quirks.h | 32 const struct audioformat *fp); 44 struct audioformat *fp, 48 struct audioformat *fp,
|
D | format.h | 6 struct audioformat *fp, u64 format, 11 struct audioformat *fp,
|
D | endpoint.c | 701 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() 747 const struct audioformat *fp, in snd_usb_endpoint_open() argument 752 int ep_num = is_sync_ep ? fp->sync_ep : fp->endpoint; in snd_usb_endpoint_open() 763 ep->iface = fp->sync_iface; in snd_usb_endpoint_open() 764 ep->altsetting = fp->sync_altsetting; in snd_usb_endpoint_open() 765 ep->ep_idx = fp->sync_ep_idx; in snd_usb_endpoint_open() 767 ep->iface = fp->iface; in snd_usb_endpoint_open() [all …]
|
D | endpoint.h | 15 const struct audioformat *fp, 26 const struct audioformat *fp,
|
D | stream.h | 10 struct audioformat *fp);
|
/sound/mips/ |
D | ad1843.c | 217 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/ |
D | ams-delta.c | 343 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/ |
D | fsl_esai.c | 166 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/ |
D | cx20442.c | 263 const char *fp, int count) in v253_receive() argument
|