Home
last modified time | relevance | path

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

12

/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()
/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()
/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()
87 p->pcm_channels = pcm_channels; in amdtp_am824_set_parameters()
101 for (i = 0; i < pcm_channels; i++) in amdtp_am824_set_parameters()
103 p->midi_position = p->pcm_channels; in amdtp_am824_set_parameters()
129 if (index < p->pcm_channels) in amdtp_am824_set_pcm_position()
154 unsigned int channels = p->pcm_channels; in write_pcm_s32()
[all …]
Damdtp-am824.h31 unsigned int pcm_channels,
/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()
/sound/firewire/motu/
Dmotu-pcm.c23 unsigned int i, pcm_channels, rate, mode; in motu_rate_constraint() local
29 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in motu_rate_constraint()
31 if (!snd_interval_test(c, pcm_channels)) in motu_rate_constraint()
53 unsigned int i, pcm_channels, rate, mode; in motu_channels_constraint() local
62 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in motu_channels_constraint()
64 channels.min = min(channels.min, pcm_channels); in motu_channels_constraint()
65 channels.max = max(channels.max, pcm_channels); in motu_channels_constraint()
76 unsigned int i, pcm_channels, rate, mode; in limit_channels_and_rates() local
85 pcm_channels = formats->fixed_part_pcm_chunks[mode] + in limit_channels_and_rates()
87 if (pcm_channels == 0) in limit_channels_and_rates()
[all …]
/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()
/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.c131 int pcm_channels, in snd_gus_create() argument
206 if (pcm_channels < 0) in snd_gus_create()
207 pcm_channels = 0; in snd_gus_create()
208 if (pcm_channels > 8) in snd_gus_create()
209 pcm_channels = 8; in snd_gus_create()
210 pcm_channels++; in snd_gus_create()
211 pcm_channels &= ~1; in snd_gus_create()
214 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()
309 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()
698 if (pcm_channels[dev] > 0) { in snd_interwave_probe()
/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);
/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()
/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 …]
/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
274 pcm_channels = formation.pcm; in snd_oxfw_stream_reserve_duplex()
276 if (formation.rate != rate || formation.pcm != pcm_channels) { in snd_oxfw_stream_reserve_duplex()
289 formation.rate != rate || formation.pcm != pcm_channels) { in snd_oxfw_stream_reserve_duplex()
290 err = set_stream_format(oxfw, stream, rate, pcm_channels); in snd_oxfw_stream_reserve_duplex()
Doxfw.h106 unsigned int rate, unsigned int pcm_channels);
/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

12