Home
last modified time | relevance | path

Searched refs:channel (Results 1 – 25 of 81) sorted by relevance

1234

/sound/core/oss/
Dmulaw.c174 int channel; in mulaw_decode() local
176 for (channel = 0; channel < nchannels; ++channel) { in mulaw_decode()
181 if (!src_channels[channel].enabled) { in mulaw_decode()
182 if (dst_channels[channel].wanted) in mulaw_decode()
183 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in mulaw_decode()
184 dst_channels[channel].enabled = 0; in mulaw_decode()
187 dst_channels[channel].enabled = 1; in mulaw_decode()
188 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in mulaw_decode()
189 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in mulaw_decode()
190 src_step = src_channels[channel].area.step / 8; in mulaw_decode()
[all …]
Drate.c55 unsigned int channel; in rate_init() local
58 for (channel = 0; channel < plugin->src_format.channels; channel++) { in rate_init()
59 data->channels[channel].last_S1 = 0; in rate_init()
60 data->channels[channel].last_S2 = 0; in rate_init()
73 unsigned int channel; in resample_expand() local
79 for (channel = 0; channel < plugin->src_format.channels; channel++) { in resample_expand()
83 if (!src_channels[channel].enabled) { in resample_expand()
84 if (dst_channels[channel].wanted) in resample_expand()
85 snd_pcm_area_silence(&dst_channels[channel].area, 0, dst_frames, plugin->dst_format.format); in resample_expand()
86 dst_channels[channel].enabled = 0; in resample_expand()
[all …]
Dio.c49 int channel, channels = plugin->dst_format.channels; in io_playback_transfer() local
53 for (channel = 0; channel < channels; channel++) { in io_playback_transfer()
54 if (src_channels[channel].enabled) in io_playback_transfer()
55 bufs[channel] = src_channels[channel].area.addr; in io_playback_transfer()
57 bufs[channel] = NULL; in io_playback_transfer()
75 int channel, channels = plugin->dst_format.channels; in io_capture_transfer() local
79 for (channel = 0; channel < channels; channel++) { in io_capture_transfer()
80 if (dst_channels[channel].enabled) in io_capture_transfer()
81 bufs[channel] = dst_channels[channel].area.addr; in io_capture_transfer()
83 bufs[channel] = NULL; in io_capture_transfer()
[all …]
Dlinear.c61 int channel; in convert() local
63 for (channel = 0; channel < nchannels; ++channel) { in convert()
68 if (!src_channels[channel].enabled) { in convert()
69 if (dst_channels[channel].wanted) in convert()
70 snd_pcm_area_silence(&dst_channels[channel].area, 0, frames, plugin->dst_format.format); in convert()
71 dst_channels[channel].enabled = 0; in convert()
74 dst_channels[channel].enabled = 1; in convert()
75 src = src_channels[channel].area.addr + src_channels[channel].area.first / 8; in convert()
76 dst = dst_channels[channel].area.addr + dst_channels[channel].area.first / 8; in convert()
77 src_step = src_channels[channel].area.step / 8; in convert()
[all …]
Dcopy.c32 unsigned int channel; in copy_transfer() local
40 for (channel = 0; channel < nchannels; channel++) { in copy_transfer()
Dpcm_plugin.c54 unsigned int channel; in snd_pcm_plugin_alloc() local
79 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
84 c->area.first = channel * width; in snd_pcm_plugin_alloc()
91 for (channel = 0; channel < format->channels; channel++, c++) { in snd_pcm_plugin_alloc()
95 c->area.addr = plugin->buf + (channel * size); in snd_pcm_plugin_alloc()
549 int width, nchannels, channel; in snd_pcm_plug_client_channels_buf() local
569 for (channel = 0; channel < nchannels; channel++, v++) { in snd_pcm_plug_client_channels_buf()
574 v->area.first = channel * width; in snd_pcm_plug_client_channels_buf()
/sound/oss/
Dmidi_synth.c283 midi_synth_kill_note(int dev, int channel, int note, int velocity) in midi_synth_kill_note() argument
290 if (channel < 0 || channel > 15) in midi_synth_kill_note()
302 if (chn == channel && ((msg == 0x90 && velocity == 64) || msg == 0x80)) in midi_synth_kill_note()
324 if (!prefix_cmd(orig_dev, 0x90 | (channel & 0x0f))) in midi_synth_kill_note()
326 midi_outc(orig_dev, 0x90 | (channel & 0x0f)); /* in midi_synth_kill_note()
335 if (!prefix_cmd(orig_dev, 0x80 | (channel & 0x0f))) in midi_synth_kill_note()
337 midi_outc(orig_dev, 0x80 | (channel & 0x0f)); /* in midi_synth_kill_note()
350 midi_synth_set_instr(int dev, int channel, int instr_no) in midi_synth_set_instr() argument
356 if (channel < 0 || channel > 15) in midi_synth_set_instr()
361 if (!prefix_cmd(orig_dev, 0xc0 | (channel & 0x0f))) in midi_synth_set_instr()
[all …]
Dmidi_synth.h3 int midi_synth_kill_note (int dev, int channel, int note, int velocity);
4 int midi_synth_set_instr (int dev, int channel, int instr_no);
5 int midi_synth_start_note (int dev, int channel, int note, int volume);
12 void midi_synth_panning (int dev, int channel, int pressure);
13 void midi_synth_aftertouch (int dev, int channel, int pressure);
14 void midi_synth_controller (int dev, int channel, int ctrl_num, int value);
Dopl3.c120 if (ins.channel < 0 || ins.channel >= SBFM_MAXINSTR) { in opl3_ioctl()
121 printk(KERN_WARNING "FM Error: Invalid instrument number %d\n", ins.channel); in opl3_ioctl()
124 return store_instr(ins.channel, &ins); in opl3_ioctl()
385 if (instr->channel < 0) in set_voice_volume()
511 if (instr->channel < 0) in opl3_start_note()
839 if (ins.channel < 0 || ins.channel >= SBFM_MAXINSTR) in opl3_load_patch()
841 printk(KERN_WARNING "FM Error: Invalid instrument number %d\n", ins.channel); in opl3_load_patch()
846 return store_instr(ins.channel, &ins); in opl3_load_patch()
1013 if (instr->channel < 0 || /* Instrument not loaded */ in opl3_alloc_voice()
1189 devc->i_map[i].channel = -1; in opl3_init()
/sound/pci/emu10k1/
Dp16v.c180 struct snd_emu10k1_voice *channel = &(emu->p16v_voices[channel_id]); in snd_p16v_pcm_open_playback_channel() local
199 channel->emu = emu; in snd_p16v_pcm_open_playback_channel()
200 channel->number = channel_id; in snd_p16v_pcm_open_playback_channel()
202 channel->use=1; in snd_p16v_pcm_open_playback_channel()
206 channel->epcm=epcm; in snd_p16v_pcm_open_playback_channel()
221 struct snd_emu10k1_voice *channel = &(emu->p16v_capture_voice); in snd_p16v_pcm_open_capture_channel() local
240 channel->emu = emu; in snd_p16v_pcm_open_capture_channel()
241 channel->number = channel_id; in snd_p16v_pcm_open_capture_channel()
243 channel->use=1; in snd_p16v_pcm_open_capture_channel()
247 channel->epcm=epcm; in snd_p16v_pcm_open_capture_channel()
[all …]
Demumixer.c419 unsigned int channel; in snd_emu1010_output_source_get() local
421 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_get()
423 if (channel >= 24 || in snd_emu1010_output_source_get()
425 channel >= 18)) in snd_emu1010_output_source_get()
427 ucontrol->value.enumerated.item[0] = emu->emu1010.output_source[channel]; in snd_emu1010_output_source_get()
436 unsigned int channel; in snd_emu1010_output_source_put() local
443 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_put()
445 if (channel >= 24 || in snd_emu1010_output_source_put()
447 channel >= 18)) in snd_emu1010_output_source_put()
449 if (emu->emu1010.output_source[channel] == val) in snd_emu1010_output_source_put()
[all …]
/sound/sh/
Daica.c269 dreamcastcard->channel, sizeof(struct aica_channel)); in startup_aica()
285 dreamcastcard->channel->flags |= 0x01; in run_spu_dma()
356 struct aica_channel *channel; in snd_aicapcm_pcm_open() local
361 channel = kmalloc(sizeof(struct aica_channel), GFP_KERNEL); in snd_aicapcm_pcm_open()
362 if (!channel) in snd_aicapcm_pcm_open()
365 channel->sfmt = SM_8BIT; in snd_aicapcm_pcm_open()
366 channel->cmd = AICA_CMD_START; in snd_aicapcm_pcm_open()
367 channel->vol = dreamcastcard->master_volume; in snd_aicapcm_pcm_open()
368 channel->pan = 0x80; in snd_aicapcm_pcm_open()
369 channel->pos = 0; in snd_aicapcm_pcm_open()
[all …]
/sound/pci/oxygen/
Doxygen_pcm.c124 unsigned int channel) in oxygen_open() argument
130 runtime->private_data = (void *)(uintptr_t)channel; in oxygen_open()
131 if (channel == PCM_B && chip->has_ac97_1 && in oxygen_open()
135 runtime->hw = *oxygen_hardware[channel]; in oxygen_open()
136 switch (channel) { in oxygen_open()
147 chip->model.pcm_hardware_filter(channel, &runtime->hw); in oxygen_open()
168 if (channel == PCM_MULTICH) { in oxygen_open()
175 chip->streams[channel] = substream; in oxygen_open()
178 chip->pcm_active |= 1 << channel; in oxygen_open()
179 if (channel == PCM_SPDIF) { in oxygen_open()
[all …]
/sound/pci/ca0106/
Dca0106_main.c502 struct snd_ca0106_channel *channel = &(chip->playback_channels[channel_id]); in snd_ca0106_pcm_open_playback_channel() local
520 channel->emu = chip; in snd_ca0106_pcm_open_playback_channel()
521 channel->number = channel_id; in snd_ca0106_pcm_open_playback_channel()
523 channel->use = 1; in snd_ca0106_pcm_open_playback_channel()
526 channel->epcm = epcm; in snd_ca0106_pcm_open_playback_channel()
594 struct snd_ca0106_channel *channel = &(chip->capture_channels[channel_id]); in snd_ca0106_pcm_open_capture_channel() local
613 channel->emu = chip; in snd_ca0106_pcm_open_capture_channel()
614 channel->number = channel_id; in snd_ca0106_pcm_open_capture_channel()
616 channel->use = 1; in snd_ca0106_pcm_open_capture_channel()
619 channel->epcm = epcm; in snd_ca0106_pcm_open_capture_channel()
[all …]
/sound/mips/
Dsgio2audio.c102 struct snd_sgio2audio_chan channel[3]; member
376 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_pull_frag()
378 spin_lock_irqsave(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag()
383 dst_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_pull_frag()
387 chip->channel[ch].size += (count >> 3); /* in frames */ in snd_sgio2audio_dma_pull_frag()
388 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
389 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
405 chip->channel[ch].pos = dst_pos; in snd_sgio2audio_dma_pull_frag()
407 spin_unlock_irqrestore(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag()
424 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_push_frag()
[all …]
/sound/soc/s3c24xx/
Ds3c24xx-pcm.c100 ret = s3c2410_dma_enqueue(prtd->params->channel, in s3c24xx_pcm_enqueue()
115 static void s3c24xx_audio_buffdone(struct s3c2410_dma_chan *channel, in s3c24xx_audio_buffdone() argument
165 prtd->params->client, prtd->params->channel); in s3c24xx_pcm_hw_params()
167 ret = s3c2410_dma_request(prtd->params->channel, in s3c24xx_pcm_hw_params()
176 s3c2410_dma_set_buffdone_fn(prtd->params->channel, in s3c24xx_pcm_hw_params()
205 s3c2410_dma_free(prtd->params->channel, prtd->params->client); in s3c24xx_pcm_hw_free()
227 s3c2410_dma_devconfig(prtd->params->channel, in s3c24xx_pcm_prepare()
231 s3c2410_dma_config(prtd->params->channel, in s3c24xx_pcm_prepare()
236 s3c2410_dma_config(prtd->params->channel, in s3c24xx_pcm_prepare()
241 s3c2410_dma_devconfig(prtd->params->channel, in s3c24xx_pcm_prepare()
[all …]
/sound/pci/ali5451/
Dali5451.c519 unsigned int channel) in snd_ali_enable_special_channel() argument
524 dwVal |= 1 << (channel & 0x0000001f); in snd_ali_enable_special_channel()
529 unsigned int channel) in snd_ali_disable_special_channel() argument
534 dwVal &= ~(1 << (channel & 0x0000001f)); in snd_ali_disable_special_channel()
560 unsigned int channel)
565 snd_ali_printk("enable_voice_irq channel=%d\n",channel);
567 mask = 1 << (channel & 0x1f);
575 unsigned int channel) in snd_ali_disable_voice_irq() argument
580 snd_ali_printk("disable_voice_irq channel=%d\n",channel); in snd_ali_disable_voice_irq()
582 mask = 1 << (channel & 0x1f); in snd_ali_disable_voice_irq()
[all …]
/sound/pci/au88x0/
Dau88x0_core.c89 static void vortex_mixer_en_sr(vortex_t * vortex, int channel) in vortex_mixer_en_sr() argument
92 hwread(vortex->mmio, VORTEX_MIXER_SR) | (0x1 << channel)); in vortex_mixer_en_sr()
94 static void vortex_mixer_dis_sr(vortex_t * vortex, int channel) in vortex_mixer_dis_sr() argument
97 hwread(vortex->mmio, VORTEX_MIXER_SR) & ~(0x1 << channel)); in vortex_mixer_dis_sr()
103 unsigned char channel)
105 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_A + ((mix << 5) + channel),
107 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_B + ((mix << 5) + channel),
121 int channel, int *vol)
124 if (!(mchannels[mix] & (1 << channel)))
127 VORTEX_MIX_INVOL_A + (((mix << 5) + channel) << 2));
[all …]
/sound/pci/hda/
Dhda_local.h32 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
41 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
46 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
47 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction)
52 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
57 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
62 #define HDA_CODEC_MUTE_MONO(xname, nid, channel, xindex, direction) \ argument
63 HDA_CODEC_MUTE_MONO_IDX(xname, 0, nid, channel, xindex, direction)
108 #define HDA_BIND_MUTE_MONO(xname, nid, channel, indices, direction) \ argument
113 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, indices, direction) }
/sound/drivers/opl3/
Dopl3_oss.c229 if (sbi.channel < 0 || sbi.channel >= SBFM_MAXINSTR) { in snd_opl3_load_patch_seq_oss()
231 sbi.channel); in snd_opl3_load_patch_seq_oss()
236 sprintf(name, "Chan%d", sbi.channel); in snd_opl3_load_patch_seq_oss()
238 err = snd_opl3_load_patch(opl3, sbi.channel, 127, type, name, NULL, in snd_opl3_load_patch_seq_oss()
/sound/pci/
Des1968.c693 static void __apu_set_register(struct es1968 *chip, u16 channel, u8 reg, u16 data) in __apu_set_register() argument
695 if (snd_BUG_ON(channel >= NR_APUS)) in __apu_set_register()
698 chip->apu_map[channel][reg] = data; in __apu_set_register()
700 reg |= (channel << 4); in __apu_set_register()
705 static void apu_set_register(struct es1968 *chip, u16 channel, u8 reg, u16 data) in apu_set_register() argument
709 __apu_set_register(chip, channel, reg, data); in apu_set_register()
713 static u16 __apu_get_register(struct es1968 *chip, u16 channel, u8 reg) in __apu_get_register() argument
715 if (snd_BUG_ON(channel >= NR_APUS)) in __apu_get_register()
717 reg |= (channel << 4); in __apu_get_register()
722 static u16 apu_get_register(struct es1968 *chip, u16 channel, u8 reg) in apu_get_register() argument
[all …]
Dcmipci.c496 struct cmipci_pcm channel[2]; /* ch0 - DAC, ch1 - ADC or 2nd DAC */ member
707 int reset = CM_RST_CH0 << (cm->channel[ch].ch); in snd_cmipci_ch_reset()
969 return snd_cmipci_pcm_trigger(cm, &cm->channel[CM_CH_PLAY], cmd); in snd_cmipci_playback_trigger()
975 return snd_cmipci_pcm_pointer(cm, &cm->channel[CM_CH_PLAY], substream); in snd_cmipci_playback_pointer()
988 return snd_cmipci_pcm_trigger(cm, &cm->channel[CM_CH_CAPT], cmd); in snd_cmipci_capture_trigger()
994 return snd_cmipci_pcm_pointer(cm, &cm->channel[CM_CH_CAPT], substream); in snd_cmipci_capture_pointer()
1301 return snd_cmipci_pcm_prepare(cm, &cm->channel[CM_CH_PLAY], substream); in snd_cmipci_playback_prepare()
1316 return snd_cmipci_pcm_prepare(cm, &cm->channel[CM_CH_PLAY], substream); in snd_cmipci_playback_spdif_prepare()
1378 snd_cmipci_silence_hack(cm, &cm->channel[0]); in snd_cmipci_playback_hw_free()
1385 snd_cmipci_silence_hack(cm, &cm->channel[1]); in snd_cmipci_playback2_hw_free()
[all …]
/sound/soc/fsl/
Dfsl_dma.c396 unsigned int channel; in fsl_dma_open() local
412 channel = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1; in fsl_dma_open()
414 if (dma_global_data.assigned[channel]) { in fsl_dma_open()
432 dma_private->dma_channel = dma_global_data.dma_channel[channel]; in fsl_dma_open()
433 dma_private->irq = dma_global_data.irq[channel]; in fsl_dma_open()
440 dma_private->channel_id = channel; in fsl_dma_open()
453 dma_global_data.assigned[channel] = 1; in fsl_dma_open()
/sound/core/seq/
Dseq_midi_event.c313 ev->data.note.channel = dev->buf[0] & 0x0f; in note_event()
321 ev->data.control.channel = dev->buf[0] & 0x0f; in one_param_ctrl_event()
328 ev->data.control.channel = dev->buf[0] & 0x0f; in pitchbend_ctrl_event()
335 ev->data.control.channel = dev->buf[0] & 0x0f; in two_param_ctrl_event()
379 cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f); in snd_midi_event_decode()
454 cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f); in extra_decode_ctrl14()
506 cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f); in extra_decode_xrpn()
/sound/pci/ice1712/
Dews.c686 int channel = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ice1712_ews88mt_input_sense_get() local
689 if (snd_BUG_ON(channel < 0 || channel > 7)) in snd_ice1712_ews88mt_input_sense_get()
697 ucontrol->value.enumerated.item[0] = data & (1 << channel) ? 0 : 1; in snd_ice1712_ews88mt_input_sense_get()
707 int channel = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_ice1712_ews88mt_input_sense_put() local
710 if (snd_BUG_ON(channel < 0 || channel > 7)) in snd_ice1712_ews88mt_input_sense_put()
717 ndata = (data & ~(1 << channel)) | (ucontrol->value.enumerated.item[0] ? 0 : (1 << channel)); in snd_ice1712_ews88mt_input_sense_put()

1234