/sound/core/seq/oss/ |
H A D | seq_oss_event.c | 40 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev); 41 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev); 42 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev); 43 static int set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev); 286 note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev) argument 291 if (! info->ch || ch < 0 || ch >= info->nr_voices) { 293 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); 296 if (note == 255 && info->ch[c 341 note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev) argument 372 set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev) argument 390 set_control_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int param, int val, struct snd_seq_event *ev) argument [all...] |
H A D | seq_oss_device.h | 73 struct seq_oss_chinfo *ch; member in struct:seq_oss_synthinfo
|
/sound/core/seq/ |
H A D | seq_midi_emul.c | 643 p->drum_channel = 1; /* Default ch 10 as drums */ 669 int ch; local 670 for (ch = 0; ch < chset->max_channels; ch++) { 671 struct snd_midi_channel *chan = chset->channels + ch; 677 if (ch == 9)
|
/sound/core/ |
H A D | vmaster.c | 60 int err, ch; local 67 for (ch = 0; ch < slave->info.count; ch++) 68 slave->vals[ch] = uctl->value.integer.value[ch]; 135 int err, ch; local 140 for (ch = 0; ch < slave->info.count; ch 148 int err, ch, vol; local 197 int err, ch, changed = 0; local [all...] |
H A D | pcm_compat.c | 323 int err, ch, i; local 330 if ((ch = substream->runtime->channels) > 128) 336 bufs = kmalloc(sizeof(void __user *) * ch, GFP_KERNEL); 339 for (i = 0; i < ch; i++) {
|
/sound/isa/sb/ |
H A D | emu8000_callback.c | 34 static void reset_voice(struct snd_emux *emu, int ch); 51 static void snd_emu8000_tweak_voice(struct snd_emu8000 *emu, int ch); 102 EMU8000_DCYSUS_WRITE(hw, vp->ch, dcysusv); 104 EMU8000_DCYSUSV_WRITE(hw, vp->ch, dcysusv); 116 EMU8000_DCYSUSV_WRITE(hw, vp->ch, 0x807F); 152 * The channel index (vp->ch) must be initialized in this routine. 195 val = (EMU8000_CVCF_READ(hw, vp->ch) >> 16) & 0xffff; 207 val = EMU8000_CCCA_READ(hw, vp->ch) & 0xffffff; 221 vp->ch = best[i].voice; 236 int ch; local 315 int ch = vp->ch; local 335 reset_voice(struct snd_emux *emu, int ch) argument [all...] |
H A D | emu8000_pcm.c | 182 static inline int emu8k_get_curpos(struct snd_emu8k_pcm *rec, int ch) argument 184 int val = EMU8000_CCCA_READ(rec->emu, ch) & 0xfffffff; 185 val -= rec->loop_start[ch] - 1; 283 static void setup_voice(struct snd_emu8k_pcm *rec, int ch) argument 289 EMU8000_DCYSUSV_WRITE(hw, ch, 0x0080); 290 EMU8000_VTFT_WRITE(hw, ch, 0x0000FFFF); 291 EMU8000_CVCF_WRITE(hw, ch, 0x0000FFFF); 292 EMU8000_PTRX_WRITE(hw, ch, 0); 293 EMU8000_CPF_WRITE(hw, ch, 0); 296 EMU8000_IP_WRITE(hw, ch, re 336 start_voice(struct snd_emu8k_pcm *rec, int ch) argument 372 stop_voice(struct snd_emu8k_pcm *rec, int ch) argument 391 int ch; local 602 int ch; local 636 int err, i, ch; local [all...] |
H A D | emu8000.c | 109 snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode) argument 114 EMU8000_CCCA_WRITE(emu, ch, 0); 115 EMU8000_DCYSUSV_WRITE(emu, ch, 0x807F); 118 EMU8000_DCYSUSV_WRITE(emu, ch, 0x80); 119 EMU8000_VTFT_WRITE(emu, ch, 0); 120 EMU8000_CVCF_WRITE(emu, ch, 0); 121 EMU8000_PTRX_WRITE(emu, ch, 0x40000000); 122 EMU8000_CPF_WRITE(emu, ch, 0x40000000); 123 EMU8000_PSST_WRITE(emu, ch, 0); 124 EMU8000_CSL_WRITE(emu, ch, 187 int ch; local [all...] |
/sound/pci/emu10k1/ |
H A D | emu10k1_callback.c | 103 int ch; local 105 if ((ch = vp->ch) < 0) { 108 "synth_get_voice: ch < 0 (%d) ??", i); 113 vp->ch = -1; 116 return ch; 137 snd_emu10k1_ptr_write(hw, DCYSUSM, vp->ch, dcysusv); 139 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, dcysusv); 154 snd_emu10k1_ptr_write(hw, DCYSUSV, vp->ch, 0x807f | DCYSUSV_CHANNELENABLE_MASK); 176 if (hw && (vp->ch > 324 int ch; local [all...] |
H A D | emu10k1_main.c | 72 void snd_emu10k1_voice_init(struct snd_emu10k1 *emu, int ch) argument 74 snd_emu10k1_ptr_write(emu, DCYSUSV, ch, 0); 75 snd_emu10k1_ptr_write(emu, IP, ch, 0); 76 snd_emu10k1_ptr_write(emu, VTFT, ch, 0xffff); 77 snd_emu10k1_ptr_write(emu, CVCF, ch, 0xffff); 78 snd_emu10k1_ptr_write(emu, PTRX, ch, 0); 79 snd_emu10k1_ptr_write(emu, CPF, ch, 0); 80 snd_emu10k1_ptr_write(emu, CCR, ch, 0); 82 snd_emu10k1_ptr_write(emu, PSST, ch, 0); 83 snd_emu10k1_ptr_write(emu, DSL, ch, 160 int ch; local 405 int ch; local [all...] |
H A D | p16v.c | 915 int i, ch; local 919 for (ch = 0; ch < NUM_CHS; ch++) 921 *val = snd_emu10k1_ptr20_read(emu, i, ch); 926 int i, ch; local 930 for (ch = 0; ch < NUM_CHS; ch++) 932 snd_emu10k1_ptr20_write(emu, i, ch, *va [all...] |
H A D | emumixer.c | 1409 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); local 1410 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; 1425 if (mix->epcm->voices[ch]) { 1426 update_emu10k1_fxrt(emu, mix->epcm->voices[ch]->number, 1477 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); local 1478 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; 1491 if (mix->epcm->voices[ch]) { 1492 update_emu10k1_send_volume(emu, mix->epcm->voices[ch]->number, 1540 int ch = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); local 1541 struct snd_emu10k1_pcm_mixer *mix = &emu->efx_pcm_mixer[ch]; [all...] |
/sound/soc/fsl/ |
H A D | p1022_ds.c | 45 * ch: The channel on the DMA controller (0, 1, 2, or 3) 49 unsigned int co, unsigned int ch, unsigned int device) 51 unsigned int shift = 16 + (8 * (1 - co) + 2 * (3 - ch)); 76 unsigned int dma_channel_id[2]; /* 0 = ch 0, 1 = ch 1, etc*/ 48 guts_set_dmuxcr(struct ccsr_guts_85xx __iomem *guts, unsigned int co, unsigned int ch, unsigned int device) argument
|
/sound/soc/omap/ |
H A D | omap-pcm.c | 58 static void omap_pcm_dma_irq(int ch, u16 stat, void *data) argument
|
/sound/synth/emux/ |
H A D | emux_oss.c | 48 int ch, int param, int val, int atomic, int hop); 505 fake_event(struct snd_emux *emu, struct snd_emux_port *port, int ch, int param, int val, int atomic, int hop) argument 510 ev.data.control.channel = ch;
|
H A D | emux_synth.c | 103 if (vp == NULL || vp->ch < 0) 160 int ch; local 175 for (ch = 0; ch < emu->max_voices; ch++) { 176 vp = &emu->voices[ch]; 210 int ch, do_again = 0; local 213 for (ch = 0; ch < emu->max_voices; ch 239 int ch; local [all...] |
/sound/pci/ice1712/ |
H A D | se.c | 71 * A 2ch-DAC of main outputs. 85 * A 6ch-DAC for surrounds. 93 * A 2ch-ADC(with 10ch-selector) plus 2ch-DAC. 103 * 7.1ch name -- output connector color -- device (-D option) 105 * FRONT 2ch -- green -- plughw:0,0 107 * SURROUND 2ch -- orange -- plughw:0,2,1 108 * SURROUND BACK 2ch -- white -- plughw:0,2,2 180 static void se200pci_WM8766_set_volume(struct snd_ice1712 *ice, int ch, argument 365 int ch; member in struct:se200pci_control [all...] |
H A D | phase.c | 360 int ch, change = 0; local 363 for (ch = 0; ch < 2; ch++) { 364 unsigned int vol = ucontrol->value.integer.value[ch]; 367 vol |= spec->master[ch] & WM_VOL_MUTE; 368 if (vol != spec->master[ch]) { 370 spec->master[ch] = vol; 372 wm_set_vol(ice, WM_DAC_ATTEN + dac + ch, 373 spec->vol[dac + ch], [all...] |
H A D | maya44.c | 209 int ch, changed = 0; local 212 for (ch = 0; ch < 2; ch++) { 213 val = ucontrol->value.integer.value[ch]; 216 if (val == wm->volumes[idx][ch]) 223 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], 225 if (vol->mux_bits[ch]) 227 vol->mux_bits[ch], 228 val ? 0 : vol->mux_bits[ch]); [all...] |
/sound/ppc/ |
H A D | snd_ps3.c | 142 pr_info("%s: DMA ch %d is not stopped.", 169 * 5.7ms is from 16bit/sample 2ch 44.1Khz; the time next 200 static dma_addr_t v_to_bus(struct snd_ps3_card_info *card, void *paddr, int ch) argument 202 return card->dma_start_bus_addr[ch] + 203 (paddr - card->dma_start_vaddr[ch]); 212 enum snd_ps3_ch ch, size_t byte_count, 216 card->dma_last_transfer_vaddr[ch] = 217 card->dma_next_transfer_vaddr[ch]; 218 card->dma_next_transfer_vaddr[ch] += byte_count; 219 if ((card->dma_start_vaddr[ch] 211 snd_ps3_bump_buffer(struct snd_ps3_card_info *card, enum snd_ps3_ch ch, size_t byte_count, int stage) argument 233 enum snd_ps3_ch ch; local [all...] |
/sound/core/oss/ |
H A D | mixer_oss.c | 1170 int ch, idx; local 1176 for (ch = 0; ch < SNDRV_OSS_MAX_MIXERS; ch++) 1177 if (oss_mixer_names[ch] && strcmp(oss_mixer_names[ch], str) == 0) 1179 if (ch >= SNDRV_OSS_MAX_MIXERS) { 1187 mixer_slot_clear(&mixer->slots[ch]); 1198 slot = (struct slot *)mixer->slots[ch].private_data; 1208 tbl->oss_id = ch; [all...] |
/sound/firewire/ |
H A D | isight.c | 221 int ch, err, rcode, errors = 0; local 225 ch = fw_iso_resources_allocate(&isight->resources, 228 if (ch < 0) { 229 err = ch; 233 value = cpu_to_be32(ch | (isight->device->max_speed << SPEED_SHIFT));
|
/sound/mips/ |
H A D | sgio2audio.c | 365 unsigned int ch, unsigned int count) 375 struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime; 377 spin_lock_irqsave(&chip->channel[ch].lock, flags); 379 src_base = (unsigned long) chip->ring_base | (ch << CHANNEL_RING_SHIFT); 380 src_pos = readq(&mace->perif.audio.chan[ch].read_ptr); 382 dst_pos = chip->channel[ch].pos; 386 chip->channel[ch].size += (count >> 3); /* in frames */ 387 ret = chip->channel[ch].size >= runtime->period_size; 388 chip->channel[ch].size %= runtime->period_size; 403 writeq(src_pos, &mace->perif.audio.chan[ch] 364 snd_sgio2audio_dma_pull_frag(struct snd_sgio2audio *chip, unsigned int ch, unsigned int count) argument 412 snd_sgio2audio_dma_push_frag(struct snd_sgio2audio *chip, unsigned int ch, unsigned int count) argument 464 int ch = chan->idx; local 494 int count, ch; local 514 int count, ch; local 621 int ch = chan->idx; local [all...] |
/sound/pci/ca0106/ |
H A D | ca0106_main.c | 1433 int ch; local 1512 for (ch = 0; ch < 4; ch++) { 1514 snd_ca0106_ptr_write(chip, CAPTURE_VOLUME1, ch, 0x30303030); 1515 snd_ca0106_ptr_write(chip, CAPTURE_VOLUME2, ch, 0x30303030); 1517 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME1, ch, 0x40404040); 1518 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME2, ch, 0x40404040); 1519 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME1, ch, 0xffffffff); 1520 snd_ca0106_ptr_write(chip, PLAYBACK_VOLUME2, ch, [all...] |
/sound/pci/echoaudio/ |
H A D | echoaudio.c | 147 struct snd_interval ch; local 149 snd_interval_any(&ch); 153 ch.min = 1; 155 ch.max = 2; 157 ch.max = 1; 159 ch.integer = 1; 160 return snd_interval_refine(c, &ch); 164 ch.min = 1; 165 ch.max = 2; 166 ch 216 struct snd_interval ch; local [all...] |