Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 70) sorted by relevance

123

/sound/pci/emu10k1/
Demu10k1_callback.c91 int ch; in snd_emu10k1_synth_get_voice() local
93 if ((ch = vp->ch) < 0) { in snd_emu10k1_synth_get_voice()
101 vp->ch = -1; in snd_emu10k1_synth_get_voice()
103 return ch; in snd_emu10k1_synth_get_voice()
123 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); in release_voice()
125 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, dcysusv); in release_voice()
140 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); in terminate_voice()
162 if (hw && (vp->ch >= 0)) { in free_voice()
163 snd_emu10k1_ptr_write(hw, IFATN, vp->ch, 0xff00); in free_voice()
164 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); in free_voice()
[all …]
Demu10k1_main.c58 void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) in snd_emu10k1_voice_init() argument
60 snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); in snd_emu10k1_voice_init()
61 snd_emu10k1_ptr_write(emu, IP, ch, 0); in snd_emu10k1_voice_init()
62 snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff); in snd_emu10k1_voice_init()
63 snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff); in snd_emu10k1_voice_init()
64 snd_emu10k1_ptr_write(emu, PTRX, ch, 0); in snd_emu10k1_voice_init()
65 snd_emu10k1_ptr_write(emu, CPF, ch, 0); in snd_emu10k1_voice_init()
66 snd_emu10k1_ptr_write(emu, CCR, ch, 0); in snd_emu10k1_voice_init()
68 snd_emu10k1_ptr_write(emu, PSST, ch, 0); in snd_emu10k1_voice_init()
69 snd_emu10k1_ptr_write(emu, DSL, ch, 0x10); in snd_emu10k1_voice_init()
[all …]
Dp16v.c873 int i, ch; in snd_p16v_suspend() local
877 for (ch = 0; ch < NUM_CHS; ch++) in snd_p16v_suspend()
879 *val = snd_emu10k1_ptr20_read(emu, i, ch); in snd_p16v_suspend()
884 int i, ch; in snd_p16v_resume() local
888 for (ch = 0; ch < NUM_CHS; ch++) in snd_p16v_resume()
890 snd_emu10k1_ptr20_write(emu, i, ch, *val); in snd_p16v_resume()
/sound/core/seq/oss/
Dseq_oss_event.c28 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd…
29 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct sn…
30 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel,…
31 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int …
274 note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event … in note_on_event() argument
284 if (! info->ch || ch < 0 || ch >= info->nr_voices) { in note_on_event()
286 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); in note_on_event()
289 ch = array_index_nospec(ch, info->nr_voices); in note_on_event()
290 if (note == 255 && info->ch[ch].note >= 0) { in note_on_event()
297 if (info->ch[ch].vel) in note_on_event()
[all …]
Dseq_oss_synth.c237 info->ch = kcalloc(info->nr_voices, sizeof(struct seq_oss_chinfo), GFP_KERNEL); in snd_seq_oss_synth_setup()
238 if (!info->ch) { in snd_seq_oss_synth_setup()
323 kfree(info->ch); in snd_seq_oss_synth_cleanup()
324 info->ch = NULL; in snd_seq_oss_synth_cleanup()
375 if (info->ch == NULL || ! info->nr_voices) in reset_channels()
378 info->ch[i].note = -1; in reset_channels()
379 info->ch[i].vel = 0; in reset_channels()
413 kfree(info->ch); in snd_seq_oss_synth_reset()
414 info->ch = NULL; in snd_seq_oss_synth_reset()
/sound/isa/sb/
Demu8000_pcm.c171 static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) in emu8k_get_curpos() argument
173 int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; in emu8k_get_curpos()
174 val -= rec->loop_start[ch] - 1; in emu8k_get_curpos()
269 static void setup_voice(struct snd_emu8k_pcm *rec, int ch) in setup_voice() argument
275 EMU8000_DCYSUSV_WRITE(hw, ch, 0x0080); in setup_voice()
276 EMU8000_VTFT_WRITE(hw, ch, 0x0000FFFF); in setup_voice()
277 EMU8000_CVCF_WRITE(hw, ch, 0x0000FFFF); in setup_voice()
278 EMU8000_PTRX_WRITE(hw, ch, 0); in setup_voice()
279 EMU8000_CPF_WRITE(hw, ch, 0); in setup_voice()
282 EMU8000_IP_WRITE(hw, ch, rec->pitch); in setup_voice()
[all …]
Demu8000_callback.c22 static void reset_voice(struct snd_emux *emu, int ch);
39 static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch);
90 EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv); in release_voice()
92 EMU8000_DCYSUSV_WRITE(hw, vp->ch, dcysusv); in release_voice()
104 EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F); in terminate_voice()
183 val = (EMU8000_CVCF_READ(hw, vp->ch) >> 16) & 0xffff; in get_voice()
195 val = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff; in get_voice()
209 vp->ch = best[i].voice; in get_voice()
224 int ch; in start_voice() local
230 ch = vp->ch; in start_voice()
[all …]
Demu8000.c97 snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode) in snd_emu8000_dma_chan() argument
102 EMU8000_CCCA_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
103 EMU8000_DCYSUSV_WRITE(emu, ch, 0x807F); in snd_emu8000_dma_chan()
106 EMU8000_DCYSUSV_WRITE(emu, ch, 0x80); in snd_emu8000_dma_chan()
107 EMU8000_VTFT_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
108 EMU8000_CVCF_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
109 EMU8000_PTRX_WRITE(emu, ch, 0x40000000); in snd_emu8000_dma_chan()
110 EMU8000_CPF_WRITE(emu, ch, 0x40000000); in snd_emu8000_dma_chan()
111 EMU8000_PSST_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
112 EMU8000_CSL_WRITE(emu, ch, 0); in snd_emu8000_dma_chan()
[all …]
/sound/core/
Dvmaster.c60 int err, ch; in slave_update() local
69 for (ch = 0; ch < slave->info.count; ch++) in slave_update()
70 slave->vals[ch] = uctl->value.integer.value[ch]; in slave_update()
140 int err, ch; in slave_get_val() local
145 for (ch = 0; ch < slave->info.count; ch++) in slave_get_val()
146 ucontrol->value.integer.value[ch] = slave->vals[ch]; in slave_get_val()
153 int err, ch, vol; in slave_put_val() local
161 for (ch = 0; ch < slave->info.count; ch++) in slave_put_val()
162 ucontrol->value.integer.value[ch] &= in slave_put_val()
166 for (ch = 0; ch < slave->info.count; ch++) { in slave_put_val()
[all …]
/sound/mips/
Dsgio2audio.c345 unsigned int ch, unsigned int count) in snd_sgio2audio_dma_pull_frag() argument
355 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; in snd_sgio2audio_dma_pull_frag()
357 spin_lock_irqsave(&chip->channel[ch].lock, flags); in snd_sgio2audio_dma_pull_frag()
359 src_base = (unsigned long) chip->ring_base | (ch << CHANNEL_RING_SHIFT); in snd_sgio2audio_dma_pull_frag()
360 src_pos = readq(&mace->perif.audio.chan[ch].read_ptr); in snd_sgio2audio_dma_pull_frag()
362 dst_pos = chip->channel[ch].pos; in snd_sgio2audio_dma_pull_frag()
366 chip->channel[ch].size += (count >> 3); /* in frames */ in snd_sgio2audio_dma_pull_frag()
367 ret = chip->channel[ch].size >= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
368 chip->channel[ch].size %= runtime->period_size; in snd_sgio2audio_dma_pull_frag()
383 writeq(src_pos, &mace->perif.audio.chan[ch].read_ptr); /* in bytes */ in snd_sgio2audio_dma_pull_frag()
[all …]
/sound/pci/ice1712/
Dprodigy_hifi.c475 int ch, change = 0; in wm_master_vol_put() local
478 for (ch = 0; ch < 2; ch++) { in wm_master_vol_put()
479 if (ucontrol->value.integer.value[ch] != spec->master[ch]) { in wm_master_vol_put()
480 spec->master[ch] = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
483 wm_set_vol(ice, WM_DAC_ATTEN_L + ch, in wm_master_vol_put()
484 spec->vol[2 + ch], spec->master[ch]); in wm_master_vol_put()
486 wm8766_set_vol(ice, WM8766_LDA1 + ch, in wm_master_vol_put()
487 spec->vol[0 + ch], spec->master[ch]); in wm_master_vol_put()
489 wm8766_set_vol(ice, WM8766_LDA2 + ch, in wm_master_vol_put()
490 spec->vol[4 + ch], spec->master[ch]); in wm_master_vol_put()
[all …]
Dmaya44.c194 int ch, changed = 0; in maya_vol_put() local
197 for (ch = 0; ch < 2; ch++) { in maya_vol_put()
198 val = ucontrol->value.integer.value[ch]; in maya_vol_put()
201 if (val == wm->volumes[idx][ch]) in maya_vol_put()
208 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put()
210 if (vol->mux_bits[ch]) in maya_vol_put()
212 vol->mux_bits[ch], in maya_vol_put()
213 val ? 0 : vol->mux_bits[ch]); in maya_vol_put()
214 wm->volumes[idx][ch] = val; in maya_vol_put()
Dphase.c345 int ch, change = 0; in wm_master_vol_put() local
348 for (ch = 0; ch < 2; ch++) { in wm_master_vol_put()
349 unsigned int vol = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
352 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
353 if (vol != spec->master[ch]) { in wm_master_vol_put()
355 spec->master[ch] = vol; in wm_master_vol_put()
357 wm_set_vol(ice, WM_DAC_ATTEN + dac + ch, in wm_master_vol_put()
358 spec->vol[dac + ch], in wm_master_vol_put()
359 spec->master[ch]); in wm_master_vol_put()
/sound/soc/qcom/
Dlpass-platform.c137 int ch, dir = substream->stream; in lpass_platform_pcmops_hw_params() local
141 ch = pcm_data->dma_ch; in lpass_platform_pcmops_hw_params()
209 LPAIF_DMACTL_REG(v, ch, dir), regval); in lpass_platform_pcmops_hw_params()
248 int ret, ch, dir = substream->stream; in lpass_platform_pcmops_prepare() local
250 ch = pcm_data->dma_ch; in lpass_platform_pcmops_prepare()
253 LPAIF_DMABASE_REG(v, ch, dir), in lpass_platform_pcmops_prepare()
262 LPAIF_DMABUFF_REG(v, ch, dir), in lpass_platform_pcmops_prepare()
271 LPAIF_DMAPER_REG(v, ch, dir), in lpass_platform_pcmops_prepare()
280 LPAIF_DMACTL_REG(v, ch, dir), in lpass_platform_pcmops_prepare()
300 int ret, ch, dir = substream->stream; in lpass_platform_pcmops_trigger() local
[all …]
/sound/soc/xilinx/
Dxlnx_i2s.c101 u32 ch, format, data_width; in xlnx_i2s_probe() local
113 ret = of_property_read_u32(node, "xlnx,num-channels", &ch); in xlnx_i2s_probe()
118 ch = ch * 2; in xlnx_i2s_probe()
140 dai_drv->playback.channels_min = ch; in xlnx_i2s_probe()
141 dai_drv->playback.channels_max = ch; in xlnx_i2s_probe()
148 dai_drv->capture.channels_min = ch; in xlnx_i2s_probe()
149 dai_drv->capture.channels_max = ch; in xlnx_i2s_probe()
/sound/soc/uniphier/
Daio-ld11.c20 .ch = { 21, 14, },
33 .ch = { 22, 15, },
47 .ch = { 23, 16, },
61 .ch = { 26, 17, },
74 .ch = { 0, 0, },
88 .ch = { 0, 0, },
102 .ch = { 2, 2, },
115 .ch = { 3, 3, },
128 .ch = { 7, 5, },
143 .ch = { 8, 6, },
[all …]
Daio-pxs2.c20 .ch = { 16, 11, },
34 .ch = { 17, 12, },
48 .ch = { 0, 0, },
62 .ch = { 1, 1, },
76 .ch = { 2, 2, },
89 .ch = { 6, 4, },
102 .ch = { 6, 4, },
115 .ch = { 7, 5, },
128 .ch = { 7, 5, },
/sound/usb/6fire/
Dcontrol.c189 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_put() local
192 if (ch > 4) { in usb6fire_control_output_vol_put()
198 if (rt->output_vol[ch] != ucontrol->value.integer.value[0]) { in usb6fire_control_output_vol_put()
199 rt->output_vol[ch] = ucontrol->value.integer.value[0]; in usb6fire_control_output_vol_put()
200 rt->ovol_updated &= ~(1 << ch); in usb6fire_control_output_vol_put()
203 if (rt->output_vol[ch + 1] != ucontrol->value.integer.value[1]) { in usb6fire_control_output_vol_put()
204 rt->output_vol[ch + 1] = ucontrol->value.integer.value[1]; in usb6fire_control_output_vol_put()
205 rt->ovol_updated &= ~(2 << ch); in usb6fire_control_output_vol_put()
219 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_get() local
221 if (ch > 4) { in usb6fire_control_output_vol_get()
[all …]
/sound/soc/atmel/
Datmel-i2s.c136 #define ATMEL_I2SC_SR_RXORCH(ch) (1 << (((ch) & 0x7) + 8)) argument
140 #define ATMEL_I2SC_SR_TXURCH(ch) (1 << (((ch) & 0x7) + 20)) argument
208 unsigned int sr, imr, pending, ch, mask; in atmel_i2s_interrupt() local
221 for (ch = 0; ch < ATMEL_I2SC_MAX_TDM_CHANNELS; ++ch) { in atmel_i2s_interrupt()
222 if (sr & ATMEL_I2SC_SR_RXORCH(ch)) { in atmel_i2s_interrupt()
223 mask |= ATMEL_I2SC_SR_RXORCH(ch); in atmel_i2s_interrupt()
225 "RX overrun on channel %d\n", ch); in atmel_i2s_interrupt()
235 for (ch = 0; ch < ATMEL_I2SC_MAX_TDM_CHANNELS; ++ch) { in atmel_i2s_interrupt()
236 if (sr & ATMEL_I2SC_SR_TXURCH(ch)) { in atmel_i2s_interrupt()
237 mask |= ATMEL_I2SC_SR_TXURCH(ch); in atmel_i2s_interrupt()
[all …]
Dmchp-i2s-mcc.c134 #define MCHP_I2SMCC_MRA_NBCHAN(ch) \ argument
135 ((((ch) - 1) << 13) & MCHP_I2SMCC_MRA_NBCHAN_MASK)
195 #define MCHP_I2SMCC_INT_TXRDY_MASK(ch) GENMASK((ch) - 1, 0) argument
196 #define MCHP_I2SMCC_INT_TXRDYCH(ch) BIT(ch) argument
197 #define MCHP_I2SMCC_INT_TXUNF_MASK(ch) GENMASK((ch) + 7, 8) argument
198 #define MCHP_I2SMCC_INT_TXUNFCH(ch) BIT((ch) + 8) argument
199 #define MCHP_I2SMCC_INT_RXRDY_MASK(ch) GENMASK((ch) + 15, 16) argument
200 #define MCHP_I2SMCC_INT_RXRDYCH(ch) BIT((ch) + 16) argument
201 #define MCHP_I2SMCC_INT_RXOVF_MASK(ch) GENMASK((ch) + 23, 24) argument
202 #define MCHP_I2SMCC_INT_RXOVFCH(ch) BIT((ch) + 24) argument
/sound/pci/au88x0/
Dau88x0_core.c133 int ch;
136 for (ch = 0; ch < 0x20; ch++) {
137 if (((1 << ch) & rampchs[mix]) == 0)
140 VORTEX_MIX_INVOL_B + (((mix << 5) + ch) << 2));
145 (((mix << 5) + ch) << 2), a);
148 (((mix << 5) + ch) << 2), a);
150 vortex_mix_killinput(vortex, mix, ch);
259 vortex_mixer_addWTD(vortex_t * vortex, unsigned char mix, unsigned char ch) in vortex_mixer_addWTD() argument
264 if ((temp & (1 << ch)) == 0) { in vortex_mixer_addWTD()
265 hwwrite(vortex->mmio, VORTEX_MIXER_CHNBASE + (ch << 2), mix); in vortex_mixer_addWTD()
[all …]
/sound/ppc/
Dsnd_ps3.c189 static dma_addr_t v_to_bus(struct snd_ps3_card_info *card, void *paddr, int ch) in v_to_bus() argument
191 return card->dma_start_bus_addr[ch] + in v_to_bus()
192 (paddr - card->dma_start_vaddr[ch]); in v_to_bus()
201 enum snd_ps3_ch ch, size_t byte_count, in snd_ps3_bump_buffer() argument
205 card->dma_last_transfer_vaddr[ch] = in snd_ps3_bump_buffer()
206 card->dma_next_transfer_vaddr[ch]; in snd_ps3_bump_buffer()
207 card->dma_next_transfer_vaddr[ch] += byte_count; in snd_ps3_bump_buffer()
208 if ((card->dma_start_vaddr[ch] + (card->dma_buffer_size / 2)) <= in snd_ps3_bump_buffer()
209 card->dma_next_transfer_vaddr[ch]) { in snd_ps3_bump_buffer()
210 card->dma_next_transfer_vaddr[ch] = card->dma_start_vaddr[ch]; in snd_ps3_bump_buffer()
[all …]
/sound/synth/emux/
Demux_synth.c90 if (vp == NULL || vp->ch < 0) in snd_emux_note_on()
147 int ch; in snd_emux_note_off() local
162 for (ch = 0; ch < emu->max_voices; ch++) { in snd_emux_note_off()
163 vp = &emu->voices[ch]; in snd_emux_note_off()
196 int ch, do_again = 0; in snd_emux_timer_callback() local
199 for (ch = 0; ch < emu->max_voices; ch++) { in snd_emux_timer_callback()
200 vp = &emu->voices[ch]; in snd_emux_timer_callback()
224 int ch; in snd_emux_key_press() local
239 for (ch = 0; ch < emu->max_voices; ch++) { in snd_emux_key_press()
240 vp = &emu->voices[ch]; in snd_emux_key_press()
[all …]
/sound/pci/
Dcmipci.c427 unsigned int ch; /* channel (0/1) */ member
692 static void snd_cmipci_ch_reset(struct cmipci *cm, int ch) in snd_cmipci_ch_reset() argument
694 int reset = CM_RST_CH0 << (cm->channel[ch].ch); in snd_cmipci_ch_reset()
729 if (!cm->can_multi_ch || !rec->ch) in set_dac_channels()
803 reg = rec->ch ? CM_REG_CH1_FRAME1 : CM_REG_CH0_FRAME1; in snd_cmipci_pcm_prepare()
806 reg = rec->ch ? CM_REG_CH1_FRAME2 : CM_REG_CH0_FRAME2; in snd_cmipci_pcm_prepare()
811 val = rec->ch ? CM_CHADC1 : CM_CHADC0; in snd_cmipci_pcm_prepare()
832 if (rec->ch) { in snd_cmipci_pcm_prepare()
844 if (rec->ch) { in snd_cmipci_pcm_prepare()
852 val &= ~(CM_CH0_SRATE_MASK << (rec->ch * 2)); in snd_cmipci_pcm_prepare()
[all …]
/sound/soc/qcom/qdsp6/
Dq6dsp-common.c11 int q6dsp_map_channels(u8 ch_map[PCM_MAX_NUM_CHANNEL], int ch) in q6dsp_map_channels() argument
15 switch (ch) { in q6dsp_map_channels()

123