/sound/usb/ |
D | format.c | 33 struct audioformat *fp, in parse_audio_format_i_type() argument 39 switch (fp->protocol) { in parse_audio_format_i_type() 46 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 63 fp->dsd_raw = true; in parse_audio_format_i_type() 83 fp->fmt_bits = sample_width; in parse_audio_format_i_type() 89 fp->iface, fp->altsetting); in parse_audio_format_i_type() 101 fp->iface, fp->altsetting, in parse_audio_format_i_type() 110 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type() 116 if (snd_usb_is_big_endian_format(chip, fp)) in parse_audio_format_i_type() 127 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() 86 struct audioformat *fp, in snd_usb_init_substream() argument 104 list_add_tail(&fp->list, &subs->fmt_list); in snd_usb_init_substream() [all …]
|
D | quirks.c | 135 struct audioformat *fp; in create_fixed_stream_quirk() local 141 fp = kmemdup(quirk->data, sizeof(*fp), GFP_KERNEL); in create_fixed_stream_quirk() 142 if (!fp) in create_fixed_stream_quirk() 145 INIT_LIST_HEAD(&fp->list); in create_fixed_stream_quirk() 146 if (fp->nr_rates > MAX_NR_RATES) { in create_fixed_stream_quirk() 147 kfree(fp); in create_fixed_stream_quirk() 150 if (fp->nr_rates > 0) { in create_fixed_stream_quirk() 151 rate_table = kmemdup(fp->rate_table, in create_fixed_stream_quirk() 152 sizeof(int) * fp->nr_rates, GFP_KERNEL); in create_fixed_stream_quirk() 154 kfree(fp); in create_fixed_stream_quirk() [all …]
|
D | proc.c | 62 struct audioformat *fp; in proc_dump_substream_formats() local 67 list_for_each_entry(fp, &subs->fmt_list, list) { in proc_dump_substream_formats() 70 snd_iprintf(buffer, " Interface %d\n", fp->iface); in proc_dump_substream_formats() 71 snd_iprintf(buffer, " Altset %d\n", fp->altsetting); in proc_dump_substream_formats() 74 if (fp->formats & pcm_format_to_bits(fmt)) in proc_dump_substream_formats() 78 snd_iprintf(buffer, " Channels: %d\n", fp->channels); in proc_dump_substream_formats() 80 fp->endpoint & USB_ENDPOINT_NUMBER_MASK, in proc_dump_substream_formats() 81 fp->endpoint & USB_DIR_IN ? "IN" : "OUT", in proc_dump_substream_formats() 82 sync_types[(fp->ep_attr & USB_ENDPOINT_SYNCTYPE) >> 2]); in proc_dump_substream_formats() 83 if (fp->rates & SNDRV_PCM_RATE_CONTINUOUS) { in proc_dump_substream_formats() [all …]
|
D | pcm.c | 86 struct audioformat *fp; in find_format() local 90 list_for_each_entry(fp, &subs->fmt_list, list) { in find_format() 91 if (!(fp->formats & pcm_format_to_bits(subs->pcm_format))) in find_format() 93 if (fp->channels != subs->channels) in find_format() 95 if (subs->cur_rate < fp->rate_min || in find_format() 96 subs->cur_rate > fp->rate_max) in find_format() 98 if (! (fp->rates & SNDRV_PCM_RATE_CONTINUOUS)) { in find_format() 100 for (i = 0; i < fp->nr_rates; i++) in find_format() 101 if (fp->rate_table[i] == subs->cur_rate) in find_format() 103 if (i >= fp->nr_rates) in find_format() [all …]
|
D | quirks.h | 34 struct audioformat *fp); 47 struct audioformat *fp, 51 struct audioformat *fp,
|
D | format.h | 6 struct audioformat *fp, u64 format, 11 struct audioformat *fp,
|
D | stream.h | 10 struct audioformat *fp);
|
D | usbaudio.h | 170 int (*set_pcm_binterval)(struct audioformat *fp,
|
D | card.h | 204 int snd_vendor_set_pcm_binterval(struct audioformat *fp,
|
D | card.c | 202 int snd_vendor_set_pcm_binterval(struct audioformat *fp, in snd_vendor_set_pcm_binterval() argument 209 return ops->set_pcm_binterval(fp, found, cur_attr, attr); in snd_vendor_set_pcm_binterval()
|
/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 unsigned char *cp, 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 | 143 bool usefp, u32 fp) in fsl_esai_divisor_cal() argument 150 if (usefp && fp) in fsl_esai_divisor_cal() 169 fp = 1; in fsl_esai_divisor_cal() 196 fp = j; in fsl_esai_divisor_cal() 221 ESAI_xCCR_xFP_MASK, ESAI_xCCR_xFP(fp)); in fsl_esai_divisor_cal()
|
/sound/soc/codecs/ |
D | cx20442.c | 263 const unsigned char *cp, char *fp, int count) in v253_receive() argument
|