Home
last modified time | relevance | path

Searched refs:pcm_channels (Results 1 – 25 of 38) sorted by relevance

12

/kernel/linux/linux-5.10/sound/firewire/fireworks/
Dfireworks_pcm.c66 unsigned int *pcm_channels = rule->private; in hw_rule_rate() local
78 if (!snd_interval_test(c, pcm_channels[mode])) in hw_rule_rate()
91 unsigned int *pcm_channels = rule->private; in hw_rule_channels() local
106 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
107 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
114 limit_channels(struct snd_pcm_hardware *hw, unsigned int *pcm_channels) in limit_channels() argument
123 if (pcm_channels[mode] == 0) in limit_channels()
126 hw->channels_min = min(hw->channels_min, pcm_channels[mode]); in limit_channels()
127 hw->channels_max = max(hw->channels_max, pcm_channels[mode]); in limit_channels()
137 unsigned int *pcm_channels; in pcm_init_hw_params() local
[all …]
Dfireworks_stream.c161 unsigned int pcm_channels; in keep_resources() local
167 pcm_channels = efw->pcm_capture_channels[mode]; in keep_resources()
171 pcm_channels = efw->pcm_playback_channels[mode]; in keep_resources()
176 err = amdtp_am824_set_parameters(stream, rate, pcm_channels, in keep_resources()
/kernel/linux/linux-5.10/sound/firewire/fireface/
Dff-pcm.c13 const unsigned int *pcm_channels = rule->private; in hw_rule_rate() local
31 if (!snd_interval_test(c, pcm_channels[mode])) in hw_rule_rate()
44 const unsigned int *pcm_channels = rule->private; in hw_rule_channels() local
65 t.min = min(t.min, pcm_channels[mode]); in hw_rule_channels()
66 t.max = max(t.max, pcm_channels[mode]); in hw_rule_channels()
73 const unsigned int *pcm_channels) in limit_channels_and_rates() argument
91 channels = pcm_channels[mode]; in limit_channels_and_rates()
92 if (pcm_channels[mode] == 0) in limit_channels_and_rates()
109 const unsigned int *pcm_channels; in pcm_init_hw_params() local
115 pcm_channels = ff->spec->pcm_capture_channels; in pcm_init_hw_params()
[all …]
Damdtp-ff.c12 unsigned int pcm_channels; member
16 unsigned int pcm_channels) in amdtp_ff_set_parameters() argument
24 p->pcm_channels = pcm_channels; in amdtp_ff_set_parameters()
25 data_channels = pcm_channels; in amdtp_ff_set_parameters()
35 unsigned int channels = p->pcm_channels; in write_pcm_s32()
65 unsigned int channels = p->pcm_channels; in read_pcm_s32()
94 unsigned int i, c, channels = p->pcm_channels; in write_pcm_silence()
/kernel/linux/linux-5.10/sound/firewire/
Damdtp-am824.c34 unsigned int pcm_channels; member
56 unsigned int pcm_channels, in amdtp_am824_set_parameters() argument
68 if (pcm_channels > AM824_MAX_CHANNELS_FOR_PCM) in amdtp_am824_set_parameters()
76 WARN_ON(pcm_channels > AM824_MAX_CHANNELS_FOR_PCM) || in amdtp_am824_set_parameters()
81 pcm_channels + midi_channels); in amdtp_am824_set_parameters()
88 p->pcm_channels = pcm_channels; in amdtp_am824_set_parameters()
102 for (i = 0; i < pcm_channels; i++) in amdtp_am824_set_parameters()
104 p->midi_position = p->pcm_channels; in amdtp_am824_set_parameters()
130 if (index < p->pcm_channels) in amdtp_am824_set_pcm_position()
155 unsigned int channels = p->pcm_channels; in write_pcm_s32()
[all …]
Damdtp-am824.h31 unsigned int pcm_channels,
/kernel/linux/linux-5.10/sound/firewire/motu/
Dmotu-pcm.c23 unsigned int i, pcm_channels, rate, mode; in motu_rate_constraint() local
29 pcm_channels = formats->pcm_chunks[mode]; in motu_rate_constraint()
30 if (!snd_interval_test(c, pcm_channels)) in motu_rate_constraint()
52 unsigned int i, pcm_channels, rate, mode; in motu_channels_constraint() local
61 pcm_channels = formats->pcm_chunks[mode]; in motu_channels_constraint()
62 channels.min = min(channels.min, pcm_channels); in motu_channels_constraint()
63 channels.max = max(channels.max, pcm_channels); in motu_channels_constraint()
74 unsigned int i, pcm_channels, rate, mode; in limit_channels_and_rates() local
83 pcm_channels = formats->pcm_chunks[mode]; in limit_channels_and_rates()
84 if (pcm_channels == 0) in limit_channels_and_rates()
[all …]
/kernel/linux/linux-5.10/sound/firewire/dice/
Ddice-pcm.c25 unsigned int *pcm_channels; in dice_rate_constraint() local
30 pcm_channels = dice->tx_pcm_chs[index]; in dice_rate_constraint()
32 pcm_channels = dice->rx_pcm_chs[index]; in dice_rate_constraint()
39 if (!snd_interval_test(c, pcm_channels[mode])) in dice_rate_constraint()
63 unsigned int *pcm_channels; in dice_channels_constraint() local
68 pcm_channels = dice->tx_pcm_chs[index]; in dice_channels_constraint()
70 pcm_channels = dice->rx_pcm_chs[index]; in dice_channels_constraint()
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()
93 unsigned int *pcm_channels; in limit_channels_and_rates() local
[all …]
Ddice-extension.c62 unsigned int pcm_channels[MAX_STREAMS][3], in read_stream_entries()
77 pcm_channels[i][mode] = be32_to_cpu(reg[0]); in read_stream_entries()
/kernel/linux/linux-5.10/sound/firewire/tascam/
Damdtp-tascam.c15 unsigned int pcm_channels; member
26 data_channels = p->pcm_channels; in amdtp_tscm_set_parameters()
40 unsigned int channels = p->pcm_channels; in write_pcm_s32()
70 unsigned int channels = p->pcm_channels; in read_pcm_s32()
104 channels = p->pcm_channels; in write_pcm_silence()
228 enum amdtp_stream_direction dir, unsigned int pcm_channels) in amdtp_tscm_init() argument
258 p->pcm_channels = pcm_channels; in amdtp_tscm_init()
Dtascam-pcm.c16 unsigned int pcm_channels; in pcm_init_hw_params() local
21 pcm_channels = tscm->spec->pcm_capture_analog_channels; in pcm_init_hw_params()
25 pcm_channels = tscm->spec->pcm_playback_analog_channels; in pcm_init_hw_params()
29 pcm_channels += 8; in pcm_init_hw_params()
31 pcm_channels += 2; in pcm_init_hw_params()
32 runtime->hw.channels_min = runtime->hw.channels_max = pcm_channels; in pcm_init_hw_params()
Dtascam-stream.c305 unsigned int pcm_channels; in init_stream() local
311 pcm_channels = tscm->spec->pcm_capture_analog_channels; in init_stream()
315 pcm_channels = tscm->spec->pcm_playback_analog_channels; in init_stream()
319 pcm_channels += 8; in init_stream()
321 pcm_channels += 2; in init_stream()
327 err = amdtp_tscm_init(s, tscm->unit, dir, pcm_channels); in init_stream()
/kernel/linux/linux-5.10/sound/isa/gus/
Dgusclassic.c38 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; variable
58 module_param_array(pcm_channels, int, NULL, 0444);
59 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver.");
100 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusclassic_create()
106 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusclassic_create()
141 if (pcm_channels[n] < 2) in snd_gusclassic_probe()
142 pcm_channels[n] = 2; in snd_gusclassic_probe()
Dgus_main.c122 int pcm_channels, in snd_gus_create() argument
198 if (pcm_channels < 0) in snd_gus_create()
199 pcm_channels = 0; in snd_gus_create()
200 if (pcm_channels > 8) in snd_gus_create()
201 pcm_channels = 8; in snd_gus_create()
202 pcm_channels++; in snd_gus_create()
203 pcm_channels &= ~1; in snd_gus_create()
206 gus->gf1.pcm_channels = pcm_channels; in snd_gus_create()
Dgusmax.c36 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; variable
56 module_param_array(pcm_channels, int, NULL, 0444);
57 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for GUS MAX driver.");
241 pcm_channels[dev], in snd_gusmax_probe()
253 pcm_channels[dev], in snd_gusmax_probe()
310 if (pcm_channels[dev] > 0) { in snd_gusmax_probe()
Dgusextreme.c46 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; variable
74 module_param_array(pcm_channels, int, NULL, 0444);
75 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver.");
143 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusextreme_gus_card_create()
282 if (pcm_channels[n] > 0) { in snd_gusextreme_probe()
Dinterwave.c57 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; variable
96 module_param_array(pcm_channels, int, NULL, 0444);
97 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for InterWave driver.");
646 pcm_channels[dev], effect[dev], &gus)) < 0) in snd_interwave_probe()
699 if (pcm_channels[dev] > 0) { in snd_interwave_probe()
/kernel/linux/linux-5.10/sound/firewire/digi00x/
Damdtp-dot.c44 unsigned int pcm_channels; member
114 unsigned int pcm_channels) in amdtp_dot_set_parameters() argument
126 err = amdtp_stream_set_parameters(s, rate, pcm_channels + 1); in amdtp_dot_set_parameters()
132 p->pcm_channels = pcm_channels; in amdtp_dot_set_parameters()
150 unsigned int channels = p->pcm_channels; in write_pcm_s32()
182 unsigned int channels = p->pcm_channels; in read_pcm_s32()
214 channels = p->pcm_channels; in write_pcm_silence()
Ddigi00x.h121 unsigned int pcm_channels);
/kernel/linux/linux-5.10/sound/pci/trident/
Dtrident.c36 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 32}; variable
45 module_param_array(pcm_channels, int, NULL, 0444);
46 MODULE_PARM_DESC(pcm_channels, "Number of hardware channels assigned for PCM.");
83 pcm_channels[dev], in snd_trident_probe()
/kernel/linux/linux-5.10/sound/pci/cs46xx/
Ddsp_spos_scb_lib.c1275 if (ins->pcm_channels[i].active) { in cs46xx_dsp_create_pcm_channel()
1277 ins->pcm_channels[i].sample_rate == sample_rate && in cs46xx_dsp_create_pcm_channel()
1278 ins->pcm_channels[i].mixer_scb == mixer_scb) { in cs46xx_dsp_create_pcm_channel()
1279 src_scb = ins->pcm_channels[i].src_scb; in cs46xx_dsp_create_pcm_channel()
1280 ins->pcm_channels[i].src_scb->ref_count ++; in cs46xx_dsp_create_pcm_channel()
1281 src_index = ins->pcm_channels[i].src_slot; in cs46xx_dsp_create_pcm_channel()
1368 ins->pcm_channels[pcm_index].sample_rate = sample_rate; in cs46xx_dsp_create_pcm_channel()
1369 ins->pcm_channels[pcm_index].pcm_reader_scb = pcm_scb; in cs46xx_dsp_create_pcm_channel()
1370 ins->pcm_channels[pcm_index].src_scb = src_scb; in cs46xx_dsp_create_pcm_channel()
1371 ins->pcm_channels[pcm_index].unlinked = 1; in cs46xx_dsp_create_pcm_channel()
[all …]
/kernel/linux/linux-5.10/sound/firewire/oxfw/
Doxfw-stream.c58 unsigned int rate, unsigned int pcm_channels) in set_stream_format() argument
80 if ((formation.rate == rate) && (formation.pcm == pcm_channels)) in set_stream_format()
247 unsigned int rate, unsigned int pcm_channels, in snd_oxfw_stream_reserve_duplex() argument
276 pcm_channels = formation.pcm; in snd_oxfw_stream_reserve_duplex()
278 if (formation.rate != rate || formation.pcm != pcm_channels) { in snd_oxfw_stream_reserve_duplex()
291 formation.rate != rate || formation.pcm != pcm_channels) { in snd_oxfw_stream_reserve_duplex()
292 err = set_stream_format(oxfw, stream, rate, pcm_channels); in snd_oxfw_stream_reserve_duplex()
/kernel/linux/linux-5.10/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c202 if (chip->pcm_channels == 1) { in pdacf_transfer()
208 if (chip->pcm_channels == 1) { in pdacf_transfer()
217 if (chip->pcm_channels == 1) { in pdacf_transfer()
231 if (chip->pcm_channels == 1) { in pdacf_transfer()
Dpdaudiocf.h90 unsigned int pcm_channels; member
/kernel/linux/linux-5.10/sound/firewire/bebob/
Dbebob_stream.c520 unsigned int pcm_channels; in keep_resources() local
526 pcm_channels = bebob->tx_stream_formations[index].pcm; in keep_resources()
530 pcm_channels = bebob->rx_stream_formations[index].pcm; in keep_resources()
535 err = amdtp_am824_set_parameters(stream, rate, pcm_channels, midi_ports, false); in keep_resources()

12