Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.c162 unsigned int pcm_channels; in keep_resources() local
168 pcm_channels = efw->pcm_capture_channels[mode]; in keep_resources()
172 pcm_channels = efw->pcm_playback_channels[mode]; in keep_resources()
177 err = amdtp_am824_set_parameters(stream, rate, pcm_channels, in keep_resources()
/linux-6.6.21/sound/firewire/
Damdtp-am824.c34 unsigned int pcm_channels; member
54 unsigned int pcm_channels, in amdtp_am824_set_parameters() argument
66 if (pcm_channels > AM824_MAX_CHANNELS_FOR_PCM) in amdtp_am824_set_parameters()
74 WARN_ON(pcm_channels > AM824_MAX_CHANNELS_FOR_PCM) || in amdtp_am824_set_parameters()
88 err = amdtp_stream_set_parameters(s, rate, pcm_channels + midi_channels, in amdtp_am824_set_parameters()
96 p->pcm_channels = pcm_channels; in amdtp_am824_set_parameters()
100 for (i = 0; i < pcm_channels; i++) in amdtp_am824_set_parameters()
102 p->midi_position = p->pcm_channels; in amdtp_am824_set_parameters()
128 if (index < p->pcm_channels) in amdtp_am824_set_pcm_position()
153 unsigned int channels = p->pcm_channels; in write_pcm_s32()
[all …]
Damdtp-am824.h31 unsigned int pcm_channels,
/linux-6.6.21/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()
/linux-6.6.21/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 …]
/linux-6.6.21/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()
/linux-6.6.21/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()
222 enum amdtp_stream_direction dir, unsigned int pcm_channels) in amdtp_tscm_init() argument
250 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()
/linux-6.6.21/sound/isa/gus/
Dgusclassic.c37 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; variable
57 module_param_array(pcm_channels, int, NULL, 0444);
58 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver.");
99 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusclassic_create()
105 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusclassic_create()
142 if (pcm_channels[n] < 2) in snd_gusclassic_probe()
143 pcm_channels[n] = 2; in snd_gusclassic_probe()
Dgus_main.c122 int pcm_channels, in snd_gus_create() argument
200 if (pcm_channels < 0) in snd_gus_create()
201 pcm_channels = 0; in snd_gus_create()
202 if (pcm_channels > 8) in snd_gus_create()
203 pcm_channels = 8; in snd_gus_create()
204 pcm_channels++; in snd_gus_create()
205 pcm_channels &= ~1; in snd_gus_create()
208 gus->gf1.pcm_channels = pcm_channels; in snd_gus_create()
Dgusmax.c35 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; variable
55 module_param_array(pcm_channels, int, NULL, 0444);
56 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for GUS MAX driver.");
235 pcm_channels[dev], in snd_gusmax_probe()
247 pcm_channels[dev], in snd_gusmax_probe()
305 if (pcm_channels[dev] > 0) { in snd_gusmax_probe()
Dgusextreme.c45 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; variable
73 module_param_array(pcm_channels, int, NULL, 0444);
74 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for " CRD_NAME " driver.");
142 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusextreme_gus_card_create()
283 if (pcm_channels[n] > 0) { in snd_gusextreme_probe()
Dinterwave.c51 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; variable
90 module_param_array(pcm_channels, int, NULL, 0444);
91 MODULE_PARM_DESC(pcm_channels, "Reserved PCM channels for InterWave driver.");
625 0, 32, pcm_channels[dev], effect[dev], gusp); in snd_interwave_probe_gus()
696 if (pcm_channels[dev] > 0) { in snd_interwave_probe()
/linux-6.6.21/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, 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.h118 unsigned int pcm_channels);
/linux-6.6.21/sound/pci/trident/
Dtrident.c24 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 32}; variable
33 module_param_array(pcm_channels, int, NULL, 0444);
34 MODULE_PARM_DESC(pcm_channels, "Number of hardware channels assigned for PCM.");
72 pcm_channels[dev], in snd_trident_probe()
/linux-6.6.21/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 …]
/linux-6.6.21/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()
253 unsigned int rate, unsigned int pcm_channels, in snd_oxfw_stream_reserve_duplex() argument
282 pcm_channels = formation.pcm; in snd_oxfw_stream_reserve_duplex()
284 if (formation.rate != rate || formation.pcm != pcm_channels) { in snd_oxfw_stream_reserve_duplex()
297 formation.rate != rate || formation.pcm != pcm_channels) { in snd_oxfw_stream_reserve_duplex()
298 err = set_stream_format(oxfw, stream, rate, pcm_channels); in snd_oxfw_stream_reserve_duplex()
/linux-6.6.21/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
/linux-6.6.21/sound/firewire/bebob/
Dbebob_stream.c503 unsigned int pcm_channels; in keep_resources() local
509 pcm_channels = bebob->tx_stream_formations[index].pcm; in keep_resources()
513 pcm_channels = bebob->rx_stream_formations[index].pcm; in keep_resources()
518 err = amdtp_am824_set_parameters(stream, rate, pcm_channels, midi_ports, false); in keep_resources()

12