Home
last modified time | relevance | path

Searched refs:max_channels (Results 1 – 35 of 35) sorted by relevance

/linux-4.1.27/sound/synth/emux/
Demux_seq.c140 int max_channels, int oss_port, in snd_emux_create_port() argument
151 p->chset.channels = kcalloc(max_channels, sizeof(struct snd_midi_channel), GFP_KERNEL); in snd_emux_create_port()
157 for (i = 0; i < max_channels; i++) in snd_emux_create_port()
160 p->chset.max_channels = max_channels; in snd_emux_create_port()
178 cap, type, max_channels, in snd_emux_create_port()
241 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port()
Demux_effect.c283 p->effect = kcalloc(p->chset.max_channels, in snd_emux_create_effect()
286 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
289 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
306 p->chset.max_channels); in snd_emux_clear_effect()
Demux_oss.c345 if (voice < 0 || voice >= port->chset.max_channels) in emuspec_control()
403 for (i = 0; i < port->chset.max_channels; i++) { in emuspec_control()
444 if (voice < 0 || voice >= port->chset.max_channels) in gusspec_control()
Demux_voice.h34 int max_channels, int type,
/linux-4.1.27/drivers/gpu/host1x/
Dchannel.c86 int max_channels = host->info->nb_channels; in host1x_channel_request() local
92 index = find_first_zero_bit(&host->allocated_channels, max_channels); in host1x_channel_request()
93 if (index >= max_channels) in host1x_channel_request()
/linux-4.1.27/sound/core/seq/
Dseq_midi_emul.c100 if (dest_channel >= chanset->max_channels) { in snd_midi_process_event()
102 dest_channel, chanset->max_channels); in snd_midi_process_event()
393 for (i = 0; i < chset->max_channels; i++) { in snd_midi_channel_set_clear()
541 if (p < chset->max_channels) { in sysex()
552 if (p < chset->max_channels && in sysex()
583 for (i = 0; i < chset->max_channels; i++) { in sysex()
674 for (ch = 0; ch < chset->max_channels; ch++) { in reset_all_channels()
700 chset->max_channels = n; in snd_midi_channel_alloc_set()
/linux-4.1.27/drivers/xen/events/
Devents_internal.h59 unsigned (*max_channels)(void); member
87 return evtchn_ops->max_channels(); in xen_evtchn_max_channels()
Devents_fifo.c375 .max_channels = evtchn_fifo_max_channels,
Devents_2l.c358 .max_channels = evtchn_2l_max_channels,
/linux-4.1.27/drivers/gpu/drm/radeon/
Ddce3_1_afmt.c89 int max_channels = -1; in dce3_2_afmt_write_sad_regs() local
96 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs()
100 max_channels = sad->channels; in dce3_2_afmt_write_sad_regs()
Ddce6_afmt.c211 int max_channels = -1; in dce6_afmt_write_sad_regs() local
218 if (sad->channels > max_channels) { in dce6_afmt_write_sad_regs()
222 max_channels = sad->channels; in dce6_afmt_write_sad_regs()
Devergreen_hdmi.c178 int max_channels = -1; in evergreen_hdmi_write_sad_regs() local
185 if (sad->channels > max_channels) { in evergreen_hdmi_write_sad_regs()
189 max_channels = sad->channels; in evergreen_hdmi_write_sad_regs()
/linux-4.1.27/sound/pci/echoaudio/
Dechoaudio.c271 signed char max_channels) in pcm_open() argument
278 if (max_channels <= 0) in pcm_open()
291 dev_dbg(chip->card->dev, "max_channels=%d\n", max_channels); in pcm_open()
294 for (i = 0; channels_list[i] <= max_channels; i++); in pcm_open()
296 if (pipe->hw.channels_max > max_channels) in pcm_open()
297 pipe->hw.channels_max = max_channels; in pcm_open()
382 int max_channels, err; in pcm_analog_out_open() local
385 max_channels = num_pipes_out(chip); in pcm_analog_out_open()
387 max_channels = num_analog_busses_out(chip); in pcm_analog_out_open()
389 if ((err = pcm_open(substream, max_channels - substream->number)) < 0) in pcm_analog_out_open()
[all …]
/linux-4.1.27/drivers/dma/
Ddmatest.c44 static unsigned int max_channels; variable
45 module_param(max_channels, uint, S_IRUGO | S_IWUSR);
46 MODULE_PARM_DESC(max_channels,
94 unsigned int max_channels; member
856 if (params->max_channels && in request_channels()
857 info->nr_channels >= params->max_channels) in request_channels()
871 params->max_channels = max_channels; in run_threaded_test()
/linux-4.1.27/sound/pci/
Datiixp.c278 int max_channels; /* max. channels for PCM out */ member
1094 substream->runtime->hw.channels_max = chip->max_channels; in snd_atiixp_playback_open()
1095 if (chip->max_channels > 2) in snd_atiixp_playback_open()
1274 chip->max_channels = 2; in snd_atiixp_pcm_new()
1277 chip->max_channels = 6; in snd_atiixp_pcm_new()
1279 chip->max_channels = 4; in snd_atiixp_pcm_new()
1298 snd_pcm_alt_chmaps, chip->max_channels, 0, in snd_atiixp_pcm_new()
Dcmipci.c473 int max_channels; member
1726 runtime->hw.channels_max = cm->max_channels; in snd_cmipci_playback2_open()
1727 if (cm->max_channels == 4) in snd_cmipci_playback2_open()
1729 else if (cm->max_channels == 6) in snd_cmipci_playback2_open()
1731 else if (cm->max_channels == 8) in snd_cmipci_playback2_open()
1966 snd_pcm_alt_chmaps, cm->max_channels, 0, in snd_cmipci_pcm_spdif_new()
2846 cm->max_channels = 2; in query_chip()
2851 cm->max_channels = 6; in query_chip()
2853 cm->max_channels = 4; in query_chip()
2856 cm->max_channels = 8; in query_chip()
[all …]
Datiixp_modem.c253 int max_channels; /* max. channels for PCM out */ member
/linux-4.1.27/sound/soc/davinci/
Ddavinci-mcasp.c1133 u32 max_channels = 0; in davinci_mcasp_startup() local
1152 max_channels++; in davinci_mcasp_startup()
1154 ruledata->serializers = max_channels; in davinci_mcasp_startup()
1155 max_channels *= mcasp->tdm_slots; in davinci_mcasp_startup()
1163 if (mcasp->channels && mcasp->channels < max_channels) in davinci_mcasp_startup()
1164 max_channels = mcasp->channels; in davinci_mcasp_startup()
1168 2, max_channels); in davinci_mcasp_startup()
/linux-4.1.27/include/sound/
Dseq_midi_emul.h72 int max_channels; /* Size of the channels array */ member
Dpcm.h1344 unsigned int max_channels; member
1376 int max_channels,
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dscan.c140 int start, int max_channels, in wlcore_scan_get_channels() argument
186 i < n_channels && j < max_channels; in wlcore_scan_get_channels()
/linux-4.1.27/drivers/scsi/
Dstorvsc_drv.c1753 int max_channels; in storvsc_probe() local
1770 max_channels = STORVSC_IDE_MAX_CHANNELS; in storvsc_probe()
1779 max_channels = STORVSC_MAX_CHANNELS; in storvsc_probe()
1835 host->max_channel = max_channels - 1; in storvsc_probe()
Dmegaraid.c2342 int max_channels; in proc_show_pdrv() local
2372 max_channels = adapter->product_info.nchannels; in proc_show_pdrv()
2374 if( channel >= max_channels ) { in proc_show_pdrv()
/linux-4.1.27/sound/pci/rme9652/
Dhdsp.c478 unsigned char max_channels; member
2645 if (source >= hdsp->max_channels) in snd_hdsp_get_mixer()
2646 addr = hdsp_playback_to_output_key(hdsp,source-hdsp->max_channels,destination); in snd_hdsp_get_mixer()
2671 if (source >= hdsp->max_channels) in snd_hdsp_put_mixer()
2672 addr = hdsp_playback_to_output_key(hdsp,source-hdsp->max_channels, destination); in snd_hdsp_put_mixer()
3903 if (snd_BUG_ON(channel < 0 || channel >= hdsp->max_channels)) in hdsp_channel_buffer_location()
4069 if (snd_BUG_ON(info->channel >= hdsp->max_channels)) in snd_hdsp_channel_info()
4940 for (i = 0; i < hdsp->max_channels; ++i) { in snd_hdsp_enable_io()
5168 hdsp->max_channels = 26; in snd_hdsp_create()
5200 hdsp->max_channels = 16; in snd_hdsp_create()
/linux-4.1.27/sound/core/
Dpcm_lib.c2467 if (ch > info->max_channels) in valid_chmap_channels()
2479 uinfo->count = info->max_channels; in pcm_chmap_ctl_info()
2584 int max_channels, in snd_pcm_add_chmap_ctls() argument
2606 info->max_channels = max_channels; in snd_pcm_add_chmap_ctls()
/linux-4.1.27/sound/pci/hda/
Dhda_local.h292 int max_channels; /* currently supported analog channels */ member
Dhda_generic.c2374 spec->multiout.max_channels = max(spec->ext_channel_count, in ch_mode_put()
2377 spec->multiout.num_dacs = spec->multiout.max_channels / 2; in ch_mode_put()
4841 spec->multiout.max_channels = 2; in snd_hda_gen_parse_auto_config()
4902 spec->multiout.max_channels = max(spec->ext_channel_count, in snd_hda_gen_parse_auto_config()
5551 spec->multiout.max_channels; in snd_hda_gen_build_pcms()
Dpatch_hdmi.c2617 spec->multiout.max_channels = 2; in patch_simple_hdmi()
2876 spec->multiout.max_channels = 8; in patch_nvhdmi_8ch_7x()
Dpatch_ca0132.c4046 spec->multiout.max_channels; in ca0132_build_pcms()
4619 spec->multiout.max_channels = 2; in ca0132_config()
Dhda_codec.c4215 runtime->hw.channels_max = mout->max_channels; in snd_hda_multi_out_analog_open()
/linux-4.1.27/drivers/net/ethernet/sfc/
Dnet_driver.h973 unsigned int max_channels; member
Dsiena.c263 efx->max_channels = EFX_MAX_CHANNELS; in siena_probe_nic()
Def10.c178 efx->max_channels = in efx_ef10_probe()
183 if (WARN_ON(efx->max_channels == 0)) in efx_ef10_probe()
Dfalcon.c2359 efx->max_channels = (efx_nic_rev(efx) <= EFX_REV_FALCON_A1 ? 4 : in falcon_probe_nic()
Defx.c1351 n_channels = min(n_channels, efx->max_channels); in efx_probe_interrupts()