/sound/core/oss/ |
D | pcm_plugin.c | 64 size = frames * format->channels * width; in snd_pcm_plugin_alloc() 79 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc() 85 c->area.step = format->channels * width; in snd_pcm_plugin_alloc() 88 if (snd_BUG_ON(size % format->channels)) in snd_pcm_plugin_alloc() 90 size /= format->channels; in snd_pcm_plugin_alloc() 91 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc() 140 struct snd_pcm_plugin_channel **channels) in snd_pcm_plugin_client_channels() argument 142 *channels = plugin->buf_channels; in snd_pcm_plugin_client_channels() 154 unsigned int channels; in snd_pcm_plugin_build() local 174 channels = src_format->channels; in snd_pcm_plugin_build() [all …]
|
D | io.c | 49 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()
|
D | rate.c | 50 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 …]
|
D | copy.c | 39 nchannels = plugin->src_format.channels; in copy_transfer() 78 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_copy()
|
D | pcm_plugin.h | 51 unsigned int channels; member 66 struct snd_pcm_plugin_channel **channels); 141 struct snd_pcm_plugin_channel **channels); 145 struct snd_pcm_plugin_channel **channels);
|
D | linear.c | 62 int nchannels = plugin->src_format.channels; in convert() 103 for (channel = 0; channel < plugin->src_format.channels; channel++) { in linear_transfer() 164 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_linear()
|
D | mulaw.c | 175 int nchannels = plugin->src_format.channels; in mulaw_decode() 221 int nchannels = plugin->src_format.channels; in mulaw_encode() 262 for (channel = 0; channel < plugin->src_format.channels; channel++) { in mulaw_transfer() 315 if (snd_BUG_ON(src_format->channels != dst_format->channels)) in snd_pcm_plugin_build_mulaw()
|
D | route.c | 62 nsrcs = plugin->src_format.channels; in route_transfer() 63 ndsts = plugin->dst_format.channels; in route_transfer()
|
/sound/oss/ |
D | sb_audio.c | 311 static short sb1_audio_set_channels(int dev, short channels) in sb1_audio_set_channels() argument 314 return devc->channels = 1; in sb1_audio_set_channels() 359 if (devc->speed * devc->channels <= 23000) in sb20_audio_output_block() 398 if (devc->speed * devc->channels <= (devc->major == 3 ? 23000 : 13000)) in sb20_audio_start_input() 445 int s = speed * devc->channels; in sb201_audio_set_speed() 457 speed = ((1000000 + tmp / 2) / tmp) / devc->channels; in sb201_audio_set_speed() 486 if (devc->channels == 1) in sbpro_audio_prepare_for_input() 506 sb_mixer_set_stereo(devc, devc->channels == 2); in sbpro_audio_prepare_for_output() 518 if (devc->channels == 1) in sbpro_audio_prepare_for_output() 528 if (devc->channels == 1) in sbpro_audio_prepare_for_output() [all …]
|
D | vidc.c | 84 extern void vidc_update_filler(int bits, int channels); 257 static short vidc_audio_set_channels(int dev, short channels) in vidc_audio_set_channels() argument 259 switch (channels) { in vidc_audio_set_channels() 261 channels = 2; in vidc_audio_set_channels() 264 vidc_audio_channels = channels; in vidc_audio_set_channels() 407 void vidc_update_filler(int format, int channels) in vidc_update_filler() argument 411 switch (TYPE(format, channels)) { in vidc_update_filler()
|
/sound/soc/sh/ |
D | ssi.c | 141 unsigned int bits, channels, swl, recv, i; in ssi_hw_params() local 143 channels = params_channels(params); in ssi_hw_params() 148 pr_debug("bits: %d channels: %d\n", bits, channels); in ssi_hw_params() 158 if ((channels < 2) || (channels > 8) || (channels & 1)) { in ssi_hw_params() 162 ssicr |= ((channels >> 1) - 1) << CR_CHNL_SHIFT; in ssi_hw_params() 194 swl = (bits * channels) / 2; in ssi_hw_params()
|
/sound/core/seq/ |
D | seq_midi_emul.c | 94 if (chanset->channels == NULL) in snd_midi_process_event() 106 chan = chanset->channels + dest_channel; in snd_midi_process_event() 390 struct snd_midi_channel *chan = chset->channels + i; in snd_midi_channel_set_clear() 540 chset->channels[p].drum_channel = 1; in sysex() 542 chset->channels[p].drum_channel = 0; in sysex() 549 ! chset->channels[p].drum_channel) { in sysex() 551 chset->channels[p].midi_program = buf[7]; in sysex() 580 if (chset->channels[i].drum_channel) in sysex() 581 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 127; in sysex() 583 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 0; in sysex() [all …]
|
/sound/sh/ |
D | aica.c | 233 static int aica_dma_transfer(int channels, int buffer_size, in aica_dma_transfer() argument 243 period_offset %= (AICA_PERIOD_NUMBER / channels); in aica_dma_transfer() 245 for (q = 0; q < channels; q++) { in aica_dma_transfer() 250 channels + in aica_dma_transfer() 255 buffer_size / channels, AICA_DMA_MODE); in aica_dma_transfer() 284 if (runtime->channels > 1) in run_spu_dma() 286 aica_dma_transfer(runtime->channels, buffer_size, in run_spu_dma() 290 buffer_size / (AICA_PERIOD_SIZE * runtime->channels); in run_spu_dma() 293 aica_dma_transfer(runtime->channels, in run_spu_dma() 294 AICA_PERIOD_SIZE * runtime->channels, in run_spu_dma() [all …]
|
/sound/isa/gus/ |
D | gusclassic.c | 52 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24}; variable 71 module_param_array(channels, int, NULL, 0444); 72 MODULE_PARM_DESC(channels, "GF1 channels for " CRD_NAME " driver."); 114 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusclassic_create() 120 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusclassic_create()
|
D | gusmax.c | 50 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24}; variable 69 module_param_array(channels, int, NULL, 0444); 70 MODULE_PARM_DESC(channels, "Used GF1 channels for GUS MAX driver."); 255 0, channels[dev], in snd_gusmax_probe() 267 0, channels[dev], in snd_gusmax_probe()
|
D | gusextreme.c | 60 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24}; variable 87 module_param_array(channels, int, NULL, 0444); 88 MODULE_PARM_DESC(channels, "GF1 channels for " CRD_NAME " driver."); 156 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusextreme_gus_card_create()
|
/sound/usb/ |
D | usbaudio.c | 115 unsigned int channels; /* # channels */ member 1194 unsigned int rate, unsigned int channels) in find_format() argument 1203 if (fp->format != format || fp->channels != channels) in find_format() 1435 fmt->format, fmt->rate_min, fmt->rate_max, fmt->channels); in set_format() 1458 unsigned int channels, rate, format; in snd_usb_hw_params() local 1468 channels = params_channels(hw_params); in snd_usb_hw_params() 1469 fmt = find_format(subs, format, rate, channels); in snd_usb_hw_params() 1472 format, rate, channels); in snd_usb_hw_params() 1596 if (fp->channels < ct->min || fp->channels > ct->max) { in hw_check_valid_format() 1597 hwc_debug(" > check: no valid channels %d (%d/%d)\n", fp->channels, ct->min, ct->max); in hw_check_valid_format() [all …]
|
D | usbmixer.c | 95 int channels; member 120 int channels; member 591 term->channels = p1[7]; in check_input_term() 600 term->channels = p1[5 + p1[4]]; in check_input_term() 619 term->channels = p1[7 + p1[6]]; in check_input_term() 757 uinfo->count = cval->channels; in mixer_ctl_feature_info() 901 cval->channels = 1; /* master channel */ in build_feature_ctl() 907 cval->channels = c; in build_feature_ctl() 989 cval->id, kctl->id.name, cval->channels, cval->min, cval->max, cval->res); in build_feature_ctl() 1002 int channels, i, j; in parse_audio_feature_unit() local [all …]
|
/sound/isa/sb/ |
D | sb8_main.c | 113 if (runtime->channels > 1) { in snd_sb8_playback_prepare() 140 if (runtime->channels > 1) { in snd_sb8_playback_prepare() 158 if (runtime->channels > 1) { in snd_sb8_playback_prepare() 203 if (runtime->channels > 1) { in snd_sb8_playback_trigger() 241 if (runtime->channels > 1) { in snd_sb8_capture_prepare() 269 if (runtime->channels > 1) in snd_sb8_capture_prepare() 272 if (runtime->channels > 1) { in snd_sb8_capture_prepare() 317 if (runtime->channels > 1) { in snd_sb8_capture_trigger()
|
/sound/pci/hda/ |
D | patch_intelhdmi.c | 142 int channels; member 394 p->channels = 0; in init_channel_allocations() 398 p->channels++; in init_channel_allocations() 419 int channels = 1 + (ai->CC02_CT47 & 0x7); in hdmi_setup_channel_allocation() local 425 if (channels <= 2) in hdmi_setup_channel_allocation() 449 if (channels == channel_allocations[i].channels && in hdmi_setup_channel_allocation() 460 ai->CA, channels, buf); in hdmi_setup_channel_allocation() 488 .CC02_CT47 = substream->runtime->channels - 1, in hdmi_setup_audio_infoframe() 589 hdmi_set_channel_count(codec, substream->runtime->channels); in intel_hdmi_playback_pcm_prepare()
|
D | hda_eld.c | 188 a->channels = GRAB_BITS(buf, 0, 0, 3); in hdmi_update_short_audio_desc() 189 a->channels++; in hdmi_update_short_audio_desc() 396 a->channels, in hdmi_show_short_audio_desc() 440 snd_iprintf(buffer, "sad%d_channels\t\t%d\n", i, a->channels); in hdmi_print_sad_info() 547 e->sad[n].channels = val; in hdmi_write_eld_info()
|
/sound/synth/emux/ |
D | emux_seq.c | 153 p->chset.channels = kcalloc(max_channels, sizeof(struct snd_midi_channel), GFP_KERNEL); in snd_emux_create_port() 154 if (p->chset.channels == NULL) { in snd_emux_create_port() 160 p->chset.channels[i].number = i; in snd_emux_create_port() 200 kfree(p->chset.channels); in free_port() 244 struct snd_midi_channel *chan = port->chset.channels + i; in snd_emux_reset_port()
|
/sound/core/ |
D | pcm_lib.c | 103 snd_pcm_format_set_silence(runtime->format, hwbuf, transfer * runtime->channels); in snd_pcm_playback_silence() 107 unsigned int channels = runtime->channels; in snd_pcm_playback_silence() local 109 for (c = 0; c < channels; ++c) { in snd_pcm_playback_silence() 115 size_t dma_csize = runtime->dma_bytes / channels; in snd_pcm_playback_silence() 116 for (c = 0; c < channels; ++c) { in snd_pcm_playback_silence() 1417 info->step = runtime->channels * width; in snd_pcm_lib_ioctl_channel_info() 1422 size_t size = runtime->dma_bytes / runtime->channels; in snd_pcm_lib_ioctl_channel_info() 1709 runtime->channels > 1) in snd_pcm_lib_write() 1725 int channels = runtime->channels; in snd_pcm_lib_writev_transfer() local 1730 for (c = 0; c < channels; ++c, ++bufs) { in snd_pcm_lib_writev_transfer() [all …]
|
/sound/soc/omap/ |
D | omap-mcbsp.c | 206 int wlen, channels; in omap_mcbsp_dai_hw_params() local 235 channels = params_channels(params); in omap_mcbsp_dai_hw_params() 236 switch (channels) { in omap_mcbsp_dai_hw_params() 274 regs->srgr2 |= FPER(wlen * channels - 1); in omap_mcbsp_dai_hw_params() 275 regs->srgr1 |= FWID(wlen * channels - 2); in omap_mcbsp_dai_hw_params()
|
/sound/soc/atmel/ |
D | atmel_ssc_dai.c | 344 int dir, channels, bits; in atmel_ssc_hw_params() local 373 channels = params_channels(params); in atmel_ssc_hw_params() 436 | SSC_BF(RFMR_DATNB, (channels - 1)) in atmel_ssc_hw_params() 452 | SSC_BF(TFMR_DATNB, (channels - 1)) in atmel_ssc_hw_params() 471 start_event = ((channels == 1) in atmel_ssc_hw_params() 525 | SSC_BF(RFMR_DATNB, (channels - 1)) in atmel_ssc_hw_params() 541 | SSC_BF(TFMR_DATNB, (channels - 1)) in atmel_ssc_hw_params()
|