Home
last modified time | relevance | path

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

123

/Linux-v5.4/sound/synth/emux/
Demux_seq.c127 int max_channels, int oss_port, in snd_emux_create_port() argument
138 p->chset.channels = kcalloc(max_channels, sizeof(*p->chset.channels), in snd_emux_create_port()
144 for (i = 0; i < max_channels; i++) in snd_emux_create_port()
147 p->chset.max_channels = max_channels; in snd_emux_create_port()
165 cap, type, max_channels, in snd_emux_create_port()
228 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port()
Demux_effect.c269 p->effect = kcalloc(p->chset.max_channels, in snd_emux_create_effect()
272 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
275 for (i = 0; i < p->chset.max_channels; i++) in snd_emux_create_effect()
292 p->chset.max_channels); in snd_emux_clear_effect()
Demux_oss.c330 if (voice < 0 || voice >= port->chset.max_channels) in emuspec_control()
388 for (i = 0; i < port->chset.max_channels; i++) { in emuspec_control()
428 if (voice < 0 || voice >= port->chset.max_channels) in gusspec_control()
Demux_voice.h21 int max_channels, int type,
/Linux-v5.4/drivers/gpu/host1x/
Dchannel.c100 unsigned int max_channels = host->info->nb_channels; in acquire_unused_channel() local
103 index = find_first_zero_bit(chlist->allocated_channels, max_channels); in acquire_unused_channel()
104 if (index >= max_channels) { in acquire_unused_channel()
/Linux-v5.4/sound/core/seq/
Dseq_midi_emul.c86 if (dest_channel >= chanset->max_channels) { in snd_midi_process_event()
88 dest_channel, chanset->max_channels); in snd_midi_process_event()
380 for (i = 0; i < chset->max_channels; i++) { in snd_midi_channel_set_clear()
529 if (p < chset->max_channels) { in sysex()
540 if (p < chset->max_channels && in sysex()
571 for (i = 0; i < chset->max_channels; i++) { in sysex()
662 for (ch = 0; ch < chset->max_channels; ch++) { in reset_all_channels()
688 chset->max_channels = n; in snd_midi_channel_alloc_set()
/Linux-v5.4/drivers/xen/events/
Devents_internal.h57 unsigned (*max_channels)(void); member
85 return evtchn_ops->max_channels(); in xen_evtchn_max_channels()
/Linux-v5.4/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-v5.4/sound/core/
Dpcm_drm_eld.c38 unsigned max_channels = sad_max_channels(sad); in eld_limit_rates() local
44 if (c->min <= max_channels) in eld_limit_rates()
/Linux-v5.4/drivers/media/pci/tw686x/
Dtw686x-core.c230 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_dev_release()
253 dev->video_channels = kcalloc(max_channels(dev), in tw686x_probe()
260 dev->audio_channels = kcalloc(max_channels(dev), in tw686x_probe()
304 if (max_channels(dev) > 4) in tw686x_probe()
Dtw686x-audio.c37 for_each_set_bit(ch, &requests, max_channels(dev)) { in tw686x_audio_irq()
288 err = snd_pcm_new(card, card->driver, 0, 0, max_channels(dev), &pcm); in tw686x_snd_pcm_init()
396 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_audio_init()
418 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_audio_init()
Dtw686x-video.c308 channels = max_channels(dev); in tw686x_sg_setup()
317 sg_table_size = max_channels(dev) * TW686X_SG_TABLE_SIZE; in tw686x_sg_setup()
1095 for_each_set_bit(ch, &requests, max_channels(dev)) { in tw686x_video_irq()
1151 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_free()
1187 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init()
1194 for (ch = 0; ch < max_channels(dev); ch++) { in tw686x_video_init()
1292 for (ch = 0; ch < max_channels(dev); ch++) in tw686x_video_init()
1299 if (max_channels(dev) > 4) { in tw686x_video_init()
Dtw686x.h156 static inline unsigned int max_channels(struct tw686x_dev *dev) in max_channels() function
/Linux-v5.4/sound/pci/echoaudio/
Dechoaudio.c259 signed char max_channels) in pcm_open() argument
266 if (max_channels <= 0) in pcm_open()
279 dev_dbg(chip->card->dev, "max_channels=%d\n", max_channels); in pcm_open()
282 for (i = 0; channels_list[i] <= max_channels; i++); in pcm_open()
284 if (pipe->hw.channels_max > max_channels) in pcm_open()
285 pipe->hw.channels_max = max_channels; in pcm_open()
370 int max_channels, err; in pcm_analog_out_open() local
373 max_channels = num_pipes_out(chip); in pcm_analog_out_open()
375 max_channels = num_analog_busses_out(chip); in pcm_analog_out_open()
377 if ((err = pcm_open(substream, max_channels - substream->number)) < 0) in pcm_analog_out_open()
[all …]
/Linux-v5.4/drivers/dma/
Ddmatest.c37 static unsigned int max_channels; variable
38 module_param(max_channels, uint, S_IRUGO | S_IWUSR);
39 MODULE_PARM_DESC(max_channels,
108 unsigned int max_channels; member
1064 if (params->max_channels && in request_channels()
1065 info->nr_channels >= params->max_channels) in request_channels()
1079 params->max_channels = max_channels; in add_threaded_test()
/Linux-v5.4/sound/soc/sh/rcar/
Dcore.c605 int max_channels) in rsnd_rdai_channels_ctrl() argument
607 if (max_channels > 0) in rsnd_rdai_channels_ctrl()
608 rdai->max_channels = max_channels; in rsnd_rdai_channels_ctrl()
610 return rdai->max_channels; in rsnd_rdai_channels_ctrl()
964 unsigned int max_channels = rsnd_rdai_channels_get(rdai); in rsnd_soc_dai_startup() local
978 if (rsnd_soc_hw_channels_list[i] > max_channels) in rsnd_soc_dai_startup()
Drsnd.h532 int max_channels; /* 2ch - 16ch */ member
554 #define rsnd_rdai_channels_set(rdai, max_channels) \ argument
555 rsnd_rdai_channels_ctrl(rdai, max_channels)
559 int max_channels);
/Linux-v5.4/sound/pci/
Datiixp.c264 int max_channels; /* max. channels for PCM out */ member
1087 substream->runtime->hw.channels_max = chip->max_channels; in snd_atiixp_playback_open()
1088 if (chip->max_channels > 2) in snd_atiixp_playback_open()
1267 chip->max_channels = 2; in snd_atiixp_pcm_new()
1270 chip->max_channels = 6; in snd_atiixp_pcm_new()
1272 chip->max_channels = 4; in snd_atiixp_pcm_new()
1291 snd_pcm_alt_chmaps, chip->max_channels, 0, in snd_atiixp_pcm_new()
Dcmipci.c460 int max_channels; member
1713 runtime->hw.channels_max = cm->max_channels; in snd_cmipci_playback2_open()
1714 if (cm->max_channels == 4) in snd_cmipci_playback2_open()
1716 else if (cm->max_channels == 6) in snd_cmipci_playback2_open()
1718 else if (cm->max_channels == 8) in snd_cmipci_playback2_open()
1953 snd_pcm_alt_chmaps, cm->max_channels, 0, in snd_cmipci_pcm_spdif_new()
2825 cm->max_channels = 2; in query_chip()
2830 cm->max_channels = 6; in query_chip()
2832 cm->max_channels = 4; in query_chip()
2835 cm->max_channels = 8; in query_chip()
[all …]
/Linux-v5.4/drivers/iio/adc/
Dstm32-adc.c228 int max_channels; member
240 .max_channels = 16,
252 .max_channels = STM32_ADC_CH_MAX,
1647 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1656 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1688 if (val >= adc_info->max_channels) { in stm32_adc_chan_of_init()
1707 if (diff[i].vinp >= adc_info->max_channels || in stm32_adc_chan_of_init()
1708 diff[i].vinn >= adc_info->max_channels) { in stm32_adc_chan_of_init()
/Linux-v5.4/sound/soc/ti/
Ddavinci-mcasp.c1437 u32 max_channels = 0; in davinci_mcasp_startup() local
1464 max_channels++; in davinci_mcasp_startup()
1466 ruledata->serializers = max_channels; in davinci_mcasp_startup()
1468 max_channels *= tdm_slots; in davinci_mcasp_startup()
1476 if (mcasp->channels && mcasp->channels < max_channels && in davinci_mcasp_startup()
1478 max_channels = mcasp->channels; in davinci_mcasp_startup()
1483 if (max_channels < tdm_slots) in davinci_mcasp_startup()
1484 max_channels = tdm_slots; in davinci_mcasp_startup()
1488 0, max_channels); in davinci_mcasp_startup()
/Linux-v5.4/include/sound/
Dseq_midi_emul.h58 int max_channels; /* Size of the channels array */ member
/Linux-v5.4/drivers/dma/qcom/
Dhidma.h150 struct hidma_lldev *hidma_ll_init(struct device *dev, u32 max_channels,

123