Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 271) sorted by relevance

1234567891011

/sound/core/oss/
Dio.c49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() local
53 for (channel = 0; channel < channels; channel++) { in io_playback_transfer()
75 int channel, channels = plugin->dst_format.channels; in io_capture_transfer() local
79 for (channel = 0; channel < channels; channel++) { in io_capture_transfer()
92 struct snd_pcm_plugin_channel **channels) in io_src_channels() argument
100 *channels = v; in io_src_channels()
102 for (channel = 0; channel < plugin->src_format.channels; ++channel, ++v) in io_src_channels()
123 format.channels = params_channels(params); in snd_pcm_plugin_build_io()
126 sizeof(void *) * format.channels, in snd_pcm_plugin_build_io()
Dpcm_plugin.c64 size = array3_size(frames, format->channels, width); in snd_pcm_plugin_alloc()
82 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
88 c->area.step = format->channels * width; in snd_pcm_plugin_alloc()
91 if (snd_BUG_ON(size % format->channels)) in snd_pcm_plugin_alloc()
93 size /= format->channels; in snd_pcm_plugin_alloc()
94 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
143 struct snd_pcm_plugin_channel **channels) in snd_pcm_plugin_client_channels() argument
145 *channels = plugin->buf_channels; in snd_pcm_plugin_client_channels()
157 unsigned int channels; in snd_pcm_plugin_build() local
177 channels = src_format->channels; in snd_pcm_plugin_build()
[all …]
Drate.c50 struct rate_channel channels[0]; member
58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
59 data->channels[channel].last_S1 = 0; in rate_init()
60 data->channels[channel].last_S2 = 0; in rate_init()
77 struct rate_channel *rchannels = data->channels; in resample_expand()
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
136 struct rate_channel *rchannels = data->channels; in resample_shrink()
138 for (channel = 0; channel < plugin->src_format.channels; ++channel) { in resample_shrink()
264 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_transfer()
313 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_rate()
[all …]
/sound/soc/codecs/
Dhdmi-codec.c64 { .channels = 2,
71 { .channels = 2, /* CA_ID 0x00 */
73 { .channels = 4, /* CA_ID 0x01 */
76 { .channels = 4, /* CA_ID 0x02 */
79 { .channels = 4, /* CA_ID 0x03 */
82 { .channels = 6, /* CA_ID 0x04 */
85 { .channels = 6, /* CA_ID 0x05 */
88 { .channels = 6, /* CA_ID 0x06 */
91 { .channels = 6, /* CA_ID 0x07 */
94 { .channels = 6, /* CA_ID 0x08 */
[all …]
/sound/soc/atmel/
Dmchp-i2s-mcc.c241 int channels; member
269 idra |= pendinga & (MCHP_I2SMCC_INT_TXRDY_MASK(dev->channels) | in mchp_i2s_mcc_interrupt()
270 MCHP_I2SMCC_INT_RXRDY_MASK(dev->channels)); in mchp_i2s_mcc_interrupt()
274 if ((imra & MCHP_I2SMCC_INT_TXRDY_MASK(dev->channels)) && in mchp_i2s_mcc_interrupt()
275 (imra & MCHP_I2SMCC_INT_TXRDY_MASK(dev->channels)) == in mchp_i2s_mcc_interrupt()
276 (idra & MCHP_I2SMCC_INT_TXRDY_MASK(dev->channels))) { in mchp_i2s_mcc_interrupt()
280 if ((imra & MCHP_I2SMCC_INT_RXRDY_MASK(dev->channels)) && in mchp_i2s_mcc_interrupt()
281 (imra & MCHP_I2SMCC_INT_RXRDY_MASK(dev->channels)) == in mchp_i2s_mcc_interrupt()
282 (idra & MCHP_I2SMCC_INT_RXRDY_MASK(dev->channels))) { in mchp_i2s_mcc_interrupt()
493 unsigned int channels = params_channels(params); in mchp_i2s_mcc_hw_params() local
[all …]
/sound/hda/
Dhdmi_chmap.c226 p->channels = 0; in init_channel_allocations()
230 p->channels++; in init_channel_allocations()
269 int spk_alloc, int channels) in hdmi_channel_allocation_spk_alloc_blk() argument
279 if (channels <= 2) in hdmi_channel_allocation_spk_alloc_blk()
295 if (channels == channel_allocations[i].channels && in hdmi_channel_allocation_spk_alloc_blk()
309 if (channels == channel_allocations[i].channels) { in hdmi_channel_allocation_spk_alloc_blk()
318 ca, channels, buf); in hdmi_channel_allocation_spk_alloc_blk()
356 for (i = 0; i < ch_alloc->channels; i++) { in hdmi_std_setup_channel_mapping()
370 for (i = 0; i < ch_alloc->channels; i++) in hdmi_std_setup_channel_mapping()
495 if ((chs == channel_allocations[i].channels || in hdmi_manual_channel_allocation()
[all …]
/sound/soc/sof/
Dcontrol.c43 unsigned int i, channels = scontrol->num_channels; in snd_sof_volume_get() local
46 for (i = 0; i < channels; i++) in snd_sof_volume_get()
62 unsigned int i, channels = scontrol->num_channels; in snd_sof_volume_put() local
67 for (i = 0; i < channels; i++) { in snd_sof_volume_put()
92 unsigned int i, channels = scontrol->num_channels; in snd_sof_switch_get() local
95 for (i = 0; i < channels; i++) in snd_sof_switch_get()
109 unsigned int i, channels = scontrol->num_channels; in snd_sof_switch_put() local
114 for (i = 0; i < channels; i++) { in snd_sof_switch_put()
139 unsigned int i, channels = scontrol->num_channels; in snd_sof_enum_get() local
142 for (i = 0; i < channels; i++) in snd_sof_enum_get()
[all …]
/sound/soc/sh/
Dssi.c134 unsigned int bits, channels, swl, recv, i; in ssi_hw_params() local
136 channels = params_channels(params); in ssi_hw_params()
141 pr_debug("bits: %u channels: %u\n", bits, channels); in ssi_hw_params()
151 if ((channels < 2) || (channels > 8) || (channels & 1)) { in ssi_hw_params()
155 ssicr |= ((channels >> 1) - 1) << CR_CHNL_SHIFT; in ssi_hw_params()
187 swl = (bits * channels) / 2; in ssi_hw_params()
/sound/usb/
Dstream.c109 if (fp->channels > subs->channels_max) in snd_usb_init_substream()
110 subs->channels_max = fp->channels; in snd_usb_init_substream()
173 ch_bytes = fp->chmap->channels * 4; in usb_chmap_ctl_tlv()
180 for (i = 0; i < fp->chmap->channels; i++, dst++) { in usb_chmap_ctl_tlv()
204 for (i = 0; i < chmap->channels; i++) in usb_chmap_ctl_get()
243 static struct snd_pcm_chmap_elem *convert_chmap(int channels, unsigned int bits, in convert_chmap() argument
295 if (channels > ARRAY_SIZE(chmap->map)) in convert_chmap()
303 chmap->channels = channels; in convert_chmap()
310 if (c == chmap->channels) in convert_chmap()
316 if (channels == 1) in convert_chmap()
[all …]
Dquirks-table.h77 .channels = 2,
159 .channels = 2,
579 .channels = 4,
596 .channels = 2,
1067 .channels = 2,
1084 .channels = 2,
1688 .channels = 10,
1706 .channels = 12,
1755 .channels = 4,
1773 .channels = 6,
[all …]
/sound/firewire/dice/
Ddice-pcm.c60 struct snd_interval channels = { in dice_channels_constraint() local
80 channels.min = min(channels.min, pcm_channels[mode]); in dice_channels_constraint()
81 channels.max = max(channels.max, pcm_channels[mode]); in dice_channels_constraint()
84 return snd_interval_refine(c, &channels); in dice_channels_constraint()
106 unsigned int rate, channels; in limit_channels_and_rates() local
113 channels = pcm_channels[mode]; in limit_channels_and_rates()
114 if (channels == 0) in limit_channels_and_rates()
116 hw->channels_min = min(hw->channels_min, channels); in limit_channels_and_rates()
117 hw->channels_max = max(hw->channels_max, channels); in limit_channels_and_rates()
/sound/soc/intel/boards/
Dskl_rt286.c171 static const unsigned int channels[] = { variable
176 .count = ARRAY_SIZE(channels),
177 .list = channels,
214 struct snd_interval *channels = hw_param_interval(params, in skylake_ssp0_fixup() local
220 channels->min = channels->max = 2; in skylake_ssp0_fixup()
250 struct snd_interval *channels = hw_param_interval(params, in skylake_dmic_fixup() local
253 channels->min = channels->max = 2; in skylake_dmic_fixup()
255 channels->min = channels->max = 4; in skylake_dmic_fixup()
Dkbl_da7219_max98357a.c144 struct snd_interval *channels = hw_param_interval(params, in kabylake_ssp_fixup() local
150 channels->min = channels->max = DUAL_CHANNEL; in kabylake_ssp_fixup()
257 static const unsigned int channels[] = { variable
262 .count = ARRAY_SIZE(channels),
263 .list = channels,
308 struct snd_interval *channels = hw_param_interval(params, in kabylake_dmic_fixup() local
316 channels->min = channels->max = 2; in kabylake_dmic_fixup()
318 channels->min = channels->max = 4; in kabylake_dmic_fixup()
Dskl_nau88l25_max98357a.c142 struct snd_interval *channels = hw_param_interval(params, in skylake_ssp_fixup() local
148 channels->min = channels->max = 2; in skylake_ssp_fixup()
257 static const unsigned int channels[] = { variable
262 .count = ARRAY_SIZE(channels),
263 .list = channels,
318 struct snd_interval *channels = hw_param_interval(params, in skylake_dmic_fixup() local
322 channels->min = channels->max = 2; in skylake_dmic_fixup()
324 channels->min = channels->max = 4; in skylake_dmic_fixup()
Dbxt_da7219_max98357a.c162 struct snd_interval *channels = hw_param_interval(params, in broxton_ssp_fixup() local
168 channels->min = channels->max = DUAL_CHANNEL; in broxton_ssp_fixup()
263 static const unsigned int channels[] = { variable
268 .count = ARRAY_SIZE(channels),
269 .list = channels,
314 struct snd_interval *channels = hw_param_interval(params, in broxton_dmic_fixup() local
317 channels->min = channels->max = 2; in broxton_dmic_fixup()
319 channels->min = channels->max = 4; in broxton_dmic_fixup()
Dskl_nau88l25_ssm4567.c277 static const unsigned int channels[] = { variable
282 .count = ARRAY_SIZE(channels),
283 .list = channels,
320 struct snd_interval *channels = hw_param_interval(params, in skylake_ssp_fixup() local
326 channels->min = channels->max = 2; in skylake_ssp_fixup()
337 struct snd_interval *channels = hw_param_interval(params, in skylake_dmic_fixup() local
340 channels->min = channels->max = 2; in skylake_dmic_fixup()
342 channels->min = channels->max = 4; in skylake_dmic_fixup()
/sound/firewire/fireface/
Damdtp-ff.c35 unsigned int channels = p->pcm_channels; in write_pcm_s32() local
50 for (c = 0; c < channels; ++c) { in write_pcm_s32()
65 unsigned int channels = p->pcm_channels; in read_pcm_s32() local
80 for (c = 0; c < channels; ++c) { in read_pcm_s32()
94 unsigned int i, c, channels = p->pcm_channels; in write_pcm_silence() local
97 for (c = 0; c < channels; ++c) in write_pcm_silence()
/sound/firewire/tascam/
Damdtp-tascam.c40 unsigned int channels = p->pcm_channels; in write_pcm_s32() local
55 for (c = 0; c < channels; ++c) { in write_pcm_s32()
70 unsigned int channels = p->pcm_channels; in read_pcm_s32() local
88 for (c = 0; c < channels; ++c) { in read_pcm_s32()
102 unsigned int channels, i, c; in write_pcm_silence() local
104 channels = p->pcm_channels; in write_pcm_silence()
107 for (c = 0; c < channels; ++c) in write_pcm_silence()
/sound/core/seq/
Dseq_midi_emul.c81 if (chanset->channels == NULL) in snd_midi_process_event()
93 chan = chanset->channels + dest_channel; in snd_midi_process_event()
381 struct snd_midi_channel *chan = chset->channels + i; in snd_midi_channel_set_clear()
532 chset->channels[p].drum_channel = 1; in sysex()
534 chset->channels[p].drum_channel = 0; in sysex()
541 ! chset->channels[p].drum_channel) { in sysex()
543 chset->channels[p].midi_program = buf[7]; in sysex()
572 if (chset->channels[i].drum_channel) in sysex()
573 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 127; in sysex()
575 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 0; in sysex()
[all …]
/sound/soc/intel/skylake/
Dskl-nhlt.c29 dev_dbg(dev, "ch=%d fmt=%d s_rate=%d\n", wfmt->channels, in skl_get_specific_cfg()
31 if (wfmt->channels == no_ch && wfmt->bits_per_sample == bps) { in skl_get_specific_cfg()
206 u16 channels, bps; in skl_get_ssp_clks() local
221 channels = wav_fmt->fmt.channels; in skl_get_ssp_clks()
241 channels = max_t(u16, channels, in skl_get_ssp_clks()
242 wav_fmt->fmt.channels); in skl_get_ssp_clks()
245 rate = channels * bps * fs; in skl_get_ssp_clks()
/sound/soc/
Dsoc-utils.c17 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots) in snd_soc_calc_frame_size() argument
19 return sample_size * channels * tdm_slots; in snd_soc_calc_frame_size()
36 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots) in snd_soc_calc_bclk() argument
38 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots); in snd_soc_calc_bclk()
/sound/sh/
Daica.c215 static int aica_dma_transfer(int channels, int buffer_size, in aica_dma_transfer() argument
225 period_offset %= (AICA_PERIOD_NUMBER / channels); in aica_dma_transfer()
227 for (q = 0; q < channels; q++) { in aica_dma_transfer()
232 channels + in aica_dma_transfer()
237 buffer_size / channels, AICA_DMA_MODE); in aica_dma_transfer()
266 if (runtime->channels > 1) in run_spu_dma()
268 aica_dma_transfer(runtime->channels, buffer_size, in run_spu_dma()
272 buffer_size / (AICA_PERIOD_SIZE * runtime->channels); in run_spu_dma()
275 aica_dma_transfer(runtime->channels, in run_spu_dma()
276 AICA_PERIOD_SIZE * runtime->channels, in run_spu_dma()
[all …]
/sound/soc/xtensa/
Dxtfpga-i2s.c129 #define xtfpga_pcm_tx_fn(channels, sample_bits) \ argument
130 static unsigned xtfpga_pcm_tx_##channels##x##sample_bits( \
134 const u##sample_bits (*p)[channels] = \
141 iowrite32(p[tx_ptr][channels - 1], \
285 unsigned channels = params_channels(params); in xtfpga_i2s_hw_params() local
330 __func__, srate, channels, sample_size, period_size); in xtfpga_i2s_hw_params()
393 unsigned channels = params_channels(hw_params); in xtfpga_pcm_hw_params() local
395 switch (channels) { in xtfpga_pcm_hw_params()
407 i2s->tx_fn = (channels == 1) ? in xtfpga_pcm_hw_params()
413 i2s->tx_fn = (channels == 1) ? in xtfpga_pcm_hw_params()
/sound/soc/mediatek/mt8183/
Dmt8183-dai-tdm.c113 static unsigned int get_tdm_ch_fixup(unsigned int channels) in get_tdm_ch_fixup() argument
115 if (channels > 4) in get_tdm_ch_fixup()
117 else if (channels > 2) in get_tdm_ch_fixup()
124 unsigned int channels) in get_tdm_ch_per_sdata() argument
127 return get_tdm_ch_fixup(channels); in get_tdm_ch_per_sdata()
474 unsigned int channels = params_channels(params); in mtk_dai_tdm_hw_params() local
476 get_tdm_ch_per_sdata(tdm_out_mode, channels); in mtk_dai_tdm_hw_params()
501 tdm_id, rate, channels, format, in mtk_dai_tdm_hw_params()
530 switch (channels) { in mtk_dai_tdm_hw_params()
573 channels << AFE_HDMI_OUT_CH_NUM_SFT); in mtk_dai_tdm_hw_params()
/sound/firewire/bebob/
Dbebob_proc.c77 unsigned int i, c, channels, size; in proc_read_meters() local
82 channels = spec->num * 2; in proc_read_meters()
83 size = channels * sizeof(u32); in proc_read_meters()
91 for (i = 0, c = 1; i < channels; i++) { in proc_read_meters()
94 if ((i + 1 < channels - 1) && in proc_read_meters()

1234567891011