Home
last modified time | relevance | path

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

/sound/usb/
Dformat.c33 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 …]
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()
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 …]
Dquirks.c135 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 …]
Dproc.c62 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 …]
Dpcm.c86 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 …]
Dquirks.h34 struct audioformat *fp);
47 struct audioformat *fp,
51 struct audioformat *fp,
Dformat.h6 struct audioformat *fp, u64 format,
11 struct audioformat *fp,
Dstream.h10 struct audioformat *fp);
Dusbaudio.h170 int (*set_pcm_binterval)(struct audioformat *fp,
Dcard.h204 int snd_vendor_set_pcm_binterval(struct audioformat *fp,
Dcard.c202 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/
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 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/
Dfsl_esai.c143 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/
Dcx20442.c263 const unsigned char *cp, char *fp, int count) in v253_receive() argument