Home
last modified time | relevance | path

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

123

/Linux-v4.19/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(*p->chset.channels), 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.c343 if (voice < 0 || voice >= port->chset.max_channels) in emuspec_control()
401 for (i = 0; i < port->chset.max_channels; i++) { in emuspec_control()
441 if (voice < 0 || voice >= port->chset.max_channels) in gusspec_control()
Demux_voice.h34 int max_channels, int type,
/Linux-v4.19/drivers/gpu/host1x/
Dchannel.c111 unsigned int max_channels = host->info->nb_channels; in acquire_unused_channel() local
114 index = find_first_zero_bit(chlist->allocated_channels, max_channels); in acquire_unused_channel()
115 if (index >= max_channels) { in acquire_unused_channel()
/Linux-v4.19/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()
394 for (i = 0; i < chset->max_channels; i++) { in snd_midi_channel_set_clear()
543 if (p < chset->max_channels) { in sysex()
554 if (p < chset->max_channels && in sysex()
585 for (i = 0; i < chset->max_channels; i++) { in sysex()
676 for (ch = 0; ch < chset->max_channels; ch++) { in reset_all_channels()
702 chset->max_channels = n; in snd_midi_channel_alloc_set()
/Linux-v4.19/drivers/xen/events/
Devents_internal.h59 unsigned (*max_channels)(void); member
87 return evtchn_ops->max_channels(); in xen_evtchn_max_channels()
/Linux-v4.19/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.c230 int max_channels = -1; in dce6_afmt_write_sad_regs() local
237 if (sad->channels > max_channels) { in dce6_afmt_write_sad_regs()
241 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-v4.19/sound/core/
Dpcm_drm_eld.c41 unsigned max_channels = sad_max_channels(sad); in eld_limit_rates() local
47 if (c->min <= max_channels) in eld_limit_rates()
/Linux-v4.19/drivers/media/pci/tw686x/
Dtw686x-core.c233 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_dev_release()
256 dev->video_channels = kcalloc(max_channels(dev), in tw686x_probe()
263 dev->audio_channels = kcalloc(max_channels(dev), in tw686x_probe()
307 if (max_channels(dev) > 4) in tw686x_probe()
Dtw686x-audio.c40 for_each_set_bit(ch, &requests, max_channels(dev)) { in tw686x_audio_irq()
291 err = snd_pcm_new(card, card->driver, 0, 0, max_channels(dev), &pcm); in tw686x_snd_pcm_init()
398 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_audio_init()
420 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_audio_init()
Dtw686x-video.c312 channels = max_channels(dev); in tw686x_sg_setup()
321 sg_table_size = max_channels(dev) * TW686X_SG_TABLE_SIZE; in tw686x_sg_setup()
1102 for_each_set_bit(ch, &requests, max_channels(dev)) { in tw686x_video_irq()
1158 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_free()
1194 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init()
1201 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init()
1297 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_video_init()
1304 if (max_channels(dev) > 4) { in tw686x_video_init()
Dtw686x.h159 static inline unsigned int max_channels(struct tw686x_dev *dev) in max_channels() function
/Linux-v4.19/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-v4.19/drivers/dma/
Ddmatest.c45 static unsigned int max_channels; variable
46 module_param(max_channels, uint, S_IRUGO | S_IWUSR);
47 MODULE_PARM_DESC(max_channels,
104 unsigned int max_channels; member
974 if (params->max_channels && in request_channels()
975 info->nr_channels >= params->max_channels) in request_channels()
989 params->max_channels = max_channels; in run_threaded_test()
/Linux-v4.19/sound/soc/sh/rcar/
Dcore.c526 int max_channels) in rsnd_rdai_channels_ctrl() argument
528 if (max_channels > 0) in rsnd_rdai_channels_ctrl()
529 rdai->max_channels = max_channels; in rsnd_rdai_channels_ctrl()
531 return rdai->max_channels; in rsnd_rdai_channels_ctrl()
889 unsigned int max_channels = rsnd_rdai_channels_get(rdai); in rsnd_soc_dai_startup() local
904 if (rsnd_soc_hw_channels_list[i] > max_channels) in rsnd_soc_dai_startup()
Drsnd.h468 int max_channels; /* 2ch - 16ch */ member
489 #define rsnd_rdai_channels_set(rdai, max_channels) \ argument
490 rsnd_rdai_channels_ctrl(rdai, max_channels)
494 int max_channels);
/Linux-v4.19/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()
2841 cm->max_channels = 2; in query_chip()
2846 cm->max_channels = 6; in query_chip()
2848 cm->max_channels = 4; in query_chip()
2851 cm->max_channels = 8; in query_chip()
[all …]
/Linux-v4.19/sound/soc/davinci/
Ddavinci-mcasp.c1257 u32 max_channels = 0; in davinci_mcasp_startup() local
1284 max_channels++; in davinci_mcasp_startup()
1286 ruledata->serializers = max_channels; in davinci_mcasp_startup()
1287 max_channels *= tdm_slots; in davinci_mcasp_startup()
1295 if (mcasp->channels && mcasp->channels < max_channels) in davinci_mcasp_startup()
1296 max_channels = mcasp->channels; in davinci_mcasp_startup()
1301 if (max_channels < tdm_slots) in davinci_mcasp_startup()
1302 max_channels = tdm_slots; in davinci_mcasp_startup()
1306 0, max_channels); in davinci_mcasp_startup()
/Linux-v4.19/drivers/iio/adc/
Dstm32-adc.c335 int max_channels; member
347 .max_channels = 16,
359 .max_channels = STM32_ADC_CH_MAX,
1681 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1690 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1722 if (val >= adc_info->max_channels) { in stm32_adc_chan_of_init()
1741 if (diff[i].vinp >= adc_info->max_channels || in stm32_adc_chan_of_init()
1742 diff[i].vinn >= adc_info->max_channels) { in stm32_adc_chan_of_init()
/Linux-v4.19/include/sound/
Dseq_midi_emul.h72 int max_channels; /* Size of the channels array */ member
/Linux-v4.19/drivers/dma/qcom/
Dhidma.h161 struct hidma_lldev *hidma_ll_init(struct device *dev, u32 max_channels,

123