Searched refs:fmt (Results 1 - 25 of 138) sorted by relevance

123456

/sound/usb/
H A Ddebug.h9 #define hwc_debug(fmt, args...) printk(KERN_DEBUG fmt, ##args)
11 #define hwc_debug(fmt, args...) do { } while(0)
H A Dformat.h6 struct uac_format_type_i_continuous_descriptor *fmt,
H A Dpcm.h8 struct audioformat *fmt);
H A Dclock.h6 struct audioformat *fmt, int rate);
H A Dformat.c42 * @fmt: the format type descriptor
55 struct uac_format_type_i_discrete_descriptor *fmt = _fmt; local
56 sample_width = fmt->bBitResolution;
57 sample_bytes = fmt->bSubframeSize;
63 struct uac_format_type_i_ext_descriptor *fmt = _fmt; local
64 sample_width = fmt->bBitResolution;
65 sample_bytes = fmt->bSubslotSize;
146 * @fmt: the format descriptor
151 unsigned char *fmt, int offset)
153 int nr_rates = fmt[offse
150 parse_audio_format_rates_v1(struct snd_usb_audio *chip, struct audioformat *fp, unsigned char *fmt, int offset) argument
351 parse_audio_format_i(struct snd_usb_audio *chip, struct audioformat *fp, int format, struct uac_format_type_i_continuous_descriptor *fmt, struct usb_host_interface *iface) argument
450 struct uac_format_type_ii_discrete_descriptor *fmt = _fmt; local
459 struct uac_format_type_ii_ext_descriptor *fmt = _fmt; local
472 snd_usb_parse_audio_format(struct snd_usb_audio *chip, struct audioformat *fp, int format, struct uac_format_type_i_continuous_descriptor *fmt, int stream, struct usb_host_interface *iface) argument
[all...]
H A Dpcm.c116 struct audioformat *fmt)
140 struct audioformat *fmt)
155 dev->devnum, iface, fmt->altsetting);
167 struct audioformat *fmt)
172 if (!(fmt->attributes & UAC_EP_CS_ATTR_PITCH_CONTROL))
178 return init_pitch_v1(chip, iface, alts, fmt);
181 return init_pitch_v2(chip, iface, alts, fmt);
188 static int set_format(struct snd_usb_substream *subs, struct audioformat *fmt) argument
198 iface = usb_ifnum_to_if(dev, fmt->iface);
201 alts = &iface->altsetting[fmt
114 init_pitch_v1(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt) argument
138 init_pitch_v2(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt) argument
165 snd_usb_init_pitch(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt) argument
328 struct audioformat *fmt; local
597 struct snd_mask *fmt = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); local
[all...]
H A Dquirks.h18 struct audioformat *fmt);
H A Dclock.c206 struct audioformat *fmt, int rate)
216 if (!(fmt->attributes & UAC_EP_CS_ATTR_SAMPLE_RATE))
227 dev->devnum, iface, fmt->altsetting, rate, ep);
236 dev->devnum, iface, fmt->altsetting, ep);
251 struct audioformat *fmt, int rate)
256 int clock = snd_usb_clock_find_source(chip, fmt->clock);
264 dev->devnum, iface, fmt->altsetting, clock);
278 dev->devnum, iface, fmt->altsetting, rate);
288 dev->devnum, iface, fmt->altsetting);
301 struct audioformat *fmt, in
204 set_sample_rate_v1(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt, int rate) argument
249 set_sample_rate_v2(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt, int rate) argument
299 snd_usb_init_sample_rate(struct snd_usb_audio *chip, int iface, struct usb_host_interface *alts, struct audioformat *fmt, int rate) argument
[all...]
H A Dproc.c82 snd_pcm_format_t fmt; local
87 for (fmt = 0; fmt <= SNDRV_PCM_FORMAT_LAST; ++fmt)
88 if (fp->formats & (1uLL << fmt))
90 snd_pcm_format_name(fmt));
H A Dendpoint.c236 struct uac_format_type_i_continuous_descriptor *fmt; local
348 fmt = snd_usb_find_csint_desc(alts->extra, alts->extralen, NULL, UAC_FORMAT_TYPE);
349 if (!fmt) {
354 if (((protocol == UAC_VERSION_1) && (fmt->bLength < 8)) ||
355 ((protocol == UAC_VERSION_2) && (fmt->bLength < 6))) {
366 if (fmt->bNrChannels == 1 &&
367 fmt->bSubframeSize == 2 &&
427 if (snd_usb_parse_audio_format(chip, fp, format, fmt, stream, alts) < 0) {
/sound/soc/codecs/
H A Dwl1273.h28 int wl1273_get_format(struct snd_soc_codec *codec, unsigned int *fmt);
H A Dwm8753.c59 unsigned int fmt);
61 unsigned int fmt);
851 unsigned int fmt)
856 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
917 * Set's PCM dai fmt and BCLK.
920 unsigned int fmt)
928 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
941 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
945 switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
959 switch (fmt
850 wm8753_vdac_adc_set_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
919 wm8753_pcm_set_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1012 wm8753_hdac_set_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1044 wm8753_i2s_set_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1151 wm8753_mode1v_set_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1163 wm8753_mode1h_set_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1169 wm8753_mode2_set_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1181 wm8753_mode3_4_set_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1195 wm8753_hifi_write_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1221 wm8753_hifi_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt) argument
1232 wm8753_voice_write_dai_fmt(struct snd_soc_codec *codec, unsigned int fmt) argument
1251 wm8753_voice_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt) argument
[all...]
/sound/soc/omap/
H A Domap3beagle.c42 unsigned int fmt; local
47 fmt = SND_SOC_DAIFMT_I2S |
52 fmt = SND_SOC_DAIFMT_DSP_A |
61 ret = snd_soc_dai_set_fmt(codec_dai, fmt);
68 ret = snd_soc_dai_set_fmt(cpu_dai, fmt);
/sound/soc/kirkwood/
H A Dkirkwood-openrd.c31 unsigned int freq, fmt; local
33 fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS;
34 ret = snd_soc_dai_set_fmt(cpu_dai, fmt);
38 ret = snd_soc_dai_set_fmt(codec_dai, fmt);
H A Dkirkwood-t5325.c30 unsigned int freq, fmt; local
32 fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_CBS_CFS;
33 ret = snd_soc_dai_set_fmt(cpu_dai, fmt);
37 ret = snd_soc_dai_set_fmt(codec_dai, fmt);
/sound/soc/pxa/
H A Draumfeld.c91 unsigned int fmt, clk = 0; local
115 fmt = SND_SOC_DAIFMT_I2S |
120 ret = snd_soc_dai_set_fmt(codec_dai, fmt);
133 ret = snd_soc_dai_set_fmt(cpu_dai, fmt);
174 int fmt, ret = 0, clk = 0; local
197 fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF;
200 ret = snd_soc_dai_set_fmt(codec_dai, fmt | SND_SOC_DAIFMT_CBS_CFS);
209 ret = snd_soc_dai_set_fmt(cpu_dai, fmt | SND_SOC_DAIFMT_CBS_CFS);
H A Dpxa2xx-i2s.c78 u32 fmt; member in struct:pxa_i2s_port
127 unsigned int fmt)
130 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
132 pxa_i2s.fmt = 0;
135 pxa_i2s.fmt = SACR1_AMSL;
139 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
186 SACR1 |= pxa_i2s.fmt;
126 pxa2xx_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt) argument
/sound/soc/davinci/
H A Ddavinci-i2s.c155 unsigned int fmt; member in struct:davinci_mcbsp_dev
263 unsigned int fmt)
273 dev->fmt = fmt;
275 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
315 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
333 fmt ^= SND_SOC_DAIFMT_NB_IF;
345 switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
426 snd_pcm_format_t fmt; local
439 master = dev->fmt
262 davinci_i2s_set_dai_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt) argument
[all...]
/sound/core/seq/oss/
H A Dseq_oss_synth.h38 int snd_seq_oss_synth_load_patch(struct seq_oss_devinfo *dp, int dev, int fmt,
H A Dseq_oss_rw.c99 int ev_size, fmt; local
116 fmt = (*(unsigned short *)rec.c) & 0xffff;
119 fmt, buf, 0, count);
/sound/core/
H A Dmisc.c80 vaf.fmt = format;
84 vaf.fmt = format + 3;
/sound/soc/sh/
H A Dssi.c248 static int ssi_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) argument
258 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
272 switch (fmt & SND_SOC_DAIFMT_CLOCK_MASK) {
280 switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
297 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
/sound/core/oss/
H A Dpcm_plugin.h180 #define pdprintf(fmt, args...) printk(KERN_DEBUG "plugin: " fmt, ##args)
182 #define pdprintf(fmt, args...)
/sound/oss/
H A Dvidc.c173 static unsigned int vidc_audio_set_format(int dev, unsigned int fmt) argument
175 switch (fmt) {
177 fmt = AFMT_S16_LE;
181 vidc_audio_format = fmt;
410 #define TYPE(fmt,ch) (((fmt)<<2) | ((ch)&3))
/sound/soc/atmel/
H A Dplaypaq_wm8510.c145 const unsigned int fmt = (SND_SOC_DAIFMT_I2S | local
150 const unsigned int fmt = (SND_SOC_DAIFMT_I2S | local
211 ret = snd_soc_dai_set_fmt(codec_dai, fmt);
218 ret = snd_soc_dai_set_fmt(cpu_dai, fmt);

Completed in 2331 milliseconds

123456