Home
last modified time | relevance | path

Searched refs:formats (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/sound/firewire/motu/
Dmotu-proc.c48 struct snd_motu_packet_format *formats; in proc_read_format() local
58 formats = &motu->tx_packet_formats; in proc_read_format()
62 formats->msg_chunks, in proc_read_format()
63 formats->fixed_part_pcm_chunks[mode], in proc_read_format()
64 formats->differed_part_pcm_chunks[mode]); in proc_read_format()
71 formats = &motu->rx_packet_formats; in proc_read_format()
75 formats->msg_chunks, in proc_read_format()
76 formats->fixed_part_pcm_chunks[mode], in proc_read_format()
77 formats->differed_part_pcm_chunks[mode]); in proc_read_format()
Dmotu-pcm.c14 struct snd_motu_packet_format *formats = rule->private; in motu_rate_constraint() local
29 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in motu_rate_constraint()
30 formats->differed_part_pcm_chunks[mode]; in motu_rate_constraint()
44 struct snd_motu_packet_format *formats = rule->private; in motu_channels_constraint() local
62 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in motu_channels_constraint()
63 formats->differed_part_pcm_chunks[mode]; in motu_channels_constraint()
73 struct snd_motu_packet_format *formats) in limit_channels_and_rates() argument
85 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in limit_channels_and_rates()
86 formats->differed_part_pcm_chunks[mode]; in limit_channels_and_rates()
104 struct snd_motu_packet_format *formats; in init_hw_info() local
[all …]
Dmotu-protocol-v2.c170 static void calculate_fixed_part(struct snd_motu_packet_format *formats, in calculate_fixed_part() argument
177 formats->msg_chunks = 2; in calculate_fixed_part()
218 formats->fixed_part_pcm_chunks[0] = pcm_chunks[0]; in calculate_fixed_part()
219 formats->fixed_part_pcm_chunks[1] = pcm_chunks[1]; in calculate_fixed_part()
220 formats->fixed_part_pcm_chunks[2] = pcm_chunks[2]; in calculate_fixed_part()
223 static void calculate_differed_part(struct snd_motu_packet_format *formats, in calculate_differed_part() argument
248 formats->differed_part_pcm_chunks[0] = pcm_chunks[0]; in calculate_differed_part()
249 formats->differed_part_pcm_chunks[1] = pcm_chunks[1]; in calculate_differed_part()
Dmotu-protocol-v3.c156 static void calculate_fixed_part(struct snd_motu_packet_format *formats, in calculate_fixed_part() argument
163 formats->msg_chunks = 2; in calculate_fixed_part()
217 formats->fixed_part_pcm_chunks[0] = round_up(2 + pcm_chunks[0], 4) - 2; in calculate_fixed_part()
218 formats->fixed_part_pcm_chunks[1] = round_up(2 + pcm_chunks[1], 4) - 2; in calculate_fixed_part()
220 formats->fixed_part_pcm_chunks[2] = in calculate_fixed_part()
224 static void calculate_differed_part(struct snd_motu_packet_format *formats, in calculate_differed_part() argument
272 formats->differed_part_pcm_chunks[i] = pcm_chunks[i]; in calculate_differed_part()
Damdtp-motu.c48 struct snd_motu_packet_format *formats) in amdtp_motu_set_parameters() argument
79 pcm_chunks = formats->fixed_part_pcm_chunks[mode] + in amdtp_motu_set_parameters()
80 formats->differed_part_pcm_chunks[mode]; in amdtp_motu_set_parameters()
81 data_chunks = formats->msg_chunks + pcm_chunks; in amdtp_motu_set_parameters()
95 p->pcm_byte_offset = formats->pcm_byte_offset; in amdtp_motu_set_parameters()
98 p->midi_flag_offset = formats->midi_flag_offset; in amdtp_motu_set_parameters()
99 p->midi_byte_offset = formats->midi_byte_offset; in amdtp_motu_set_parameters()
/sound/firewire/oxfw/
Doxfw-pcm.c13 u8 **formats = rule->private; in hw_rule_rate() local
25 if (formats[i] == NULL) in hw_rule_rate()
28 err = snd_oxfw_stream_parse_format(formats[i], &formation); in hw_rule_rate()
44 u8 **formats = rule->private; in hw_rule_channels() local
55 if (formats[i] == NULL) in hw_rule_channels()
58 err = snd_oxfw_stream_parse_format(formats[i], &formation); in hw_rule_channels()
80 static void limit_channels_and_rates(struct snd_pcm_hardware *hw, u8 **formats) in limit_channels_and_rates() argument
93 if (formats[i] == NULL) in limit_channels_and_rates()
96 err = snd_oxfw_stream_parse_format(formats[i], &formation); in limit_channels_and_rates()
113 u8 **formats; in init_hw_params() local
[all …]
Doxfw-stream.c60 u8 **formats; in set_stream_format() local
67 formats = oxfw->tx_stream_formats; in set_stream_format()
70 formats = oxfw->rx_stream_formats; in set_stream_format()
76 err = snd_oxfw_stream_parse_format(formats[i], &formation); in set_stream_format()
91 len = 5 + formats[i][4] * 2; in set_stream_format()
93 err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); in set_stream_format()
196 u8 **formats; in keep_resources() local
204 formats = oxfw->rx_stream_formats; in keep_resources()
208 formats = oxfw->tx_stream_formats; in keep_resources()
219 if (formats[i] == NULL) in keep_resources()
[all …]
/sound/soc/uniphier/
Daio-ld11.c225 .formats = SNDRV_PCM_FMTBIT_S32_LE,
232 .formats = SNDRV_PCM_FMTBIT_S32_LE,
249 .formats = SNDRV_PCM_FMTBIT_S32_LE,
264 .formats = SNDRV_PCM_FMTBIT_S32_LE,
271 .formats = SNDRV_PCM_FMTBIT_S32_LE,
286 .formats = SNDRV_PCM_FMTBIT_S32_LE,
301 .formats = SNDRV_PCM_FMTBIT_S32_LE,
316 .formats = SNDRV_PCM_FMTBIT_S32_LE,
331 .formats = SNDRV_PCM_FMTBIT_S32_LE,
348 .formats = SNDRV_PCM_FMTBIT_S32_LE,
Daio-pxs2.c178 .formats = SNDRV_PCM_FMTBIT_S32_LE,
193 .formats = SNDRV_PCM_FMTBIT_S32_LE,
200 .formats = SNDRV_PCM_FMTBIT_S32_LE,
215 .formats = SNDRV_PCM_FMTBIT_S32_LE,
222 .formats = SNDRV_PCM_FMTBIT_S32_LE,
237 .formats = SNDRV_PCM_FMTBIT_S32_LE,
252 .formats = SNDRV_PCM_FMTBIT_S32_LE,
/sound/soc/intel/skylake/
Dskl-pcm.c39 .formats = SNDRV_PCM_FMTBIT_S16_LE |
706 .formats = SNDRV_PCM_FMTBIT_S16_LE |
715 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
728 .formats = SNDRV_PCM_FMTBIT_S16_LE |
741 .formats = SNDRV_PCM_FMTBIT_S16_LE |
753 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
765 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
777 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
789 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE,
804 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE |
[all …]
/sound/soc/qcom/qdsp6/
Dq6afe-dai.c22 .formats = SNDRV_PCM_FMTBIT_S16_LE | \
43 .formats = SNDRV_PCM_FMTBIT_S16_LE | \
629 .formats = SNDRV_PCM_FMTBIT_S16_LE |
652 .formats = SNDRV_PCM_FMTBIT_S16_LE |
670 .formats = SNDRV_PCM_FMTBIT_S16_LE |
683 .formats = SNDRV_PCM_FMTBIT_S16_LE |
706 .formats = SNDRV_PCM_FMTBIT_S16_LE |
719 .formats = SNDRV_PCM_FMTBIT_S16_LE |
743 .formats = SNDRV_PCM_FMTBIT_S16_LE |
756 .formats = SNDRV_PCM_FMTBIT_S16_LE |
[all …]
/sound/soc/mediatek/mt6797/
Dmt6797-dai-hostless.c69 .formats = MTK_HOSTLESS_FORMATS,
76 .formats = MTK_HOSTLESS_FORMATS,
88 .formats = MTK_HOSTLESS_FORMATS,
95 .formats = MTK_HOSTLESS_FORMATS,
Dmt6797-dai-pcm.c263 .formats = MTK_PCM_FORMATS,
270 .formats = MTK_PCM_FORMATS,
284 .formats = MTK_PCM_FORMATS,
291 .formats = MTK_PCM_FORMATS,
/sound/soc/mediatek/mt8183/
Dmt8183-dai-hostless.c69 .formats = MTK_HOSTLESS_FORMATS,
76 .formats = MTK_HOSTLESS_FORMATS,
88 .formats = MTK_HOSTLESS_FORMATS,
95 .formats = MTK_HOSTLESS_FORMATS,
/sound/soc/codecs/
Dbt-sco.c31 .formats = SNDRV_PCM_FMTBIT_S16_LE,
38 .formats = SNDRV_PCM_FMTBIT_S16_LE,
48 .formats = SNDRV_PCM_FMTBIT_S16_LE,
55 .formats = SNDRV_PCM_FMTBIT_S16_LE,
Dlochnagar-sc.c159 .formats = SNDRV_PCM_FMTBIT_S32_LE,
166 .formats = SNDRV_PCM_FMTBIT_S32_LE,
179 .formats = SNDRV_PCM_FMTBIT_S32_LE,
186 .formats = SNDRV_PCM_FMTBIT_S32_LE,
199 .formats = SNDRV_PCM_FMTBIT_S32_LE,
206 .formats = SNDRV_PCM_FMTBIT_S32_LE,
/sound/usb/
Dquirks-table.h46 .formats = SNDRV_PCM_FMTBIT_S16_LE,
506 .formats = SNDRV_PCM_FMTBIT_S16_LE,
523 .formats = SNDRV_PCM_FMTBIT_S16_LE,
994 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1011 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
1615 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1633 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1682 .formats = SNDRV_PCM_FMTBIT_S32_LE,
1700 .formats = SNDRV_PCM_FMTBIT_S32_LE,
2095 .formats = SNDRV_PCM_FMTBIT_S24_3LE,
[all …]
/sound/soc/qcom/
Dlpass-apq8016.c31 .formats = SNDRV_PCM_FMTBIT_S16 |
52 .formats = SNDRV_PCM_FMTBIT_S16 |
73 .formats = SNDRV_PCM_FMTBIT_S16 |
94 .formats = SNDRV_PCM_FMTBIT_S16 |
109 .formats = SNDRV_PCM_FMTBIT_S16 |
/sound/soc/pxa/
Dpxa2xx-ac97.c166 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
172 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
183 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
189 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
200 .formats = SNDRV_PCM_FMTBIT_S16_LE,},
/sound/aoa/soundbus/i2sbus/
Dpcm.c79 u64 formats = 0; in i2sbus_pcm_open() local
104 while (ti->formats && ti->rates) { in i2sbus_pcm_open()
109 formats &= v.formats; in i2sbus_pcm_open()
112 formats = v.formats; in i2sbus_pcm_open()
152 if (formats & SNDRV_PCM_FMTBIT_S24_BE) in i2sbus_pcm_open()
153 formats |= SNDRV_PCM_FMTBIT_S32_BE; in i2sbus_pcm_open()
154 if (formats & SNDRV_PCM_FMTBIT_U24_BE) in i2sbus_pcm_open()
155 formats |= SNDRV_PCM_FMTBIT_U32_BE; in i2sbus_pcm_open()
160 hw->formats = formats & (SNDRV_PCM_FMTBIT_S16_BE | in i2sbus_pcm_open()
181 hw->formats &= pcm_format_to_bits(i2sdev->format); in i2sbus_pcm_open()
[all …]
/sound/soc/mediatek/mt2701/
Dmt2701-afe-pcm.c27 .formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE
559 .formats = (SNDRV_PCM_FMTBIT_S16_LE
575 .formats = (SNDRV_PCM_FMTBIT_S16_LE
592 .formats = (SNDRV_PCM_FMTBIT_S16_LE
608 .formats = (SNDRV_PCM_FMTBIT_S16_LE
626 .formats = SNDRV_PCM_FMTBIT_S16_LE,
641 .formats = SNDRV_PCM_FMTBIT_S16_LE,
654 .formats = (SNDRV_PCM_FMTBIT_S16_LE
664 .formats = (SNDRV_PCM_FMTBIT_S16_LE
680 .formats = (SNDRV_PCM_FMTBIT_S16_LE
[all …]
/sound/soc/kirkwood/
Dkirkwood-i2s.c444 .formats = KIRKWOOD_I2S_FORMATS,
451 .formats = KIRKWOOD_I2S_FORMATS,
463 .formats = KIRKWOOD_SPDIF_FORMATS,
470 .formats = KIRKWOOD_SPDIF_FORMATS,
486 .formats = KIRKWOOD_I2S_FORMATS,
494 .formats = KIRKWOOD_I2S_FORMATS,
507 .formats = KIRKWOOD_SPDIF_FORMATS,
515 .formats = KIRKWOOD_SPDIF_FORMATS,
/sound/xen/
Dxen_snd_front_cfg.c189 u64 formats; in cfg_formats() local
193 formats = 0; in cfg_formats()
199 formats |= CFG_HW_SUPPORTED_FORMATS[i].mask; in cfg_formats()
202 if (formats) in cfg_formats()
203 pcm_hw->formats = formats; in cfg_formats()
225 .formats = USE_FORMATS,
/sound/isa/sb/
Dsb16_main.c149 runtime->hw.formats |= csp->acc_format; in snd_sb16_csp_playback_open()
153 runtime->hw.formats |= SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW | in snd_sb16_csp_playback_open()
180 runtime->hw.formats |= csp->acc_format; in snd_sb16_csp_capture_open()
184 runtime->hw.formats |= SNDRV_PCM_FMTBIT_MU_LAW | SNDRV_PCM_FMTBIT_A_LAW | in snd_sb16_csp_capture_open()
468 .formats = 0,
486 .formats = 0,
523 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; in snd_sb16_playback_open()
539 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; in snd_sb16_playback_open()
542 runtime->hw.formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S8; in snd_sb16_playback_open()
598 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_U16_LE; in snd_sb16_capture_open()
[all …]
/sound/hda/
Dhdac_device.c843 u64 formats = 0; in snd_hdac_query_supported_pcm() local
853 formats |= SNDRV_PCM_FMTBIT_U8; in snd_hdac_query_supported_pcm()
857 formats |= SNDRV_PCM_FMTBIT_S16_LE; in snd_hdac_query_supported_pcm()
862 formats |= SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE; in snd_hdac_query_supported_pcm()
864 formats |= SNDRV_PCM_FMTBIT_S32_LE; in snd_hdac_query_supported_pcm()
871 formats |= SNDRV_PCM_FMTBIT_S32_LE; in snd_hdac_query_supported_pcm()
882 formats |= SNDRV_PCM_FMTBIT_FLOAT_LE; in snd_hdac_query_supported_pcm()
892 formats |= SNDRV_PCM_FMTBIT_U8; in snd_hdac_query_supported_pcm()
895 if (formats == 0) { in snd_hdac_query_supported_pcm()
904 *formatsp = formats; in snd_hdac_query_supported_pcm()

12345678910>>...22