Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 170) sorted by relevance

1234567

/sound/firewire/
Dcmp.c46 void cmp_error(struct cmp_connection *c, const char *fmt, ...) in cmp_error() argument
51 dev_err(&c->resources.unit->device, "%cPCR%u: %pV", in cmp_error()
52 (c->direction == CMP_INPUT) ? 'i' : 'o', in cmp_error()
53 c->pcr_index, &(struct va_format){ fmt, &va }); in cmp_error()
57 static u64 mpr_address(struct cmp_connection *c) in mpr_address() argument
59 if (c->direction == CMP_INPUT) in mpr_address()
65 static u64 pcr_address(struct cmp_connection *c) in pcr_address() argument
67 if (c->direction == CMP_INPUT) in pcr_address()
68 return CSR_REGISTER_BASE + CSR_IPCR(c->pcr_index); in pcr_address()
70 return CSR_REGISTER_BASE + CSR_OPCR(c->pcr_index); in pcr_address()
[all …]
Damdtp-am824.c160 unsigned int channels, remaining_frames, i, c; in write_pcm_s32() local
169 for (c = 0; c < channels; ++c) { in write_pcm_s32()
170 buffer[p->pcm_positions[c]] = in write_pcm_s32()
186 unsigned int channels, remaining_frames, i, c; in write_pcm_s16() local
195 for (c = 0; c < channels; ++c) { in write_pcm_s16()
196 buffer[p->pcm_positions[c]] = in write_pcm_s16()
212 unsigned int channels, remaining_frames, i, c; in read_pcm_s32() local
221 for (c = 0; c < channels; ++c) { in read_pcm_s32()
222 *dst = be32_to_cpu(buffer[p->pcm_positions[c]]) << 8; in read_pcm_s32()
235 unsigned int i, c, channels = p->pcm_channels; in write_pcm_silence() local
[all …]
/sound/pci/asihpi/
Dhpicmn.c334 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
335 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache_single()
336 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache_single()
337 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
342 phr->u.c.an_log_value[0] = HPI_METER_MINIMUM; in hpi_check_control_cache_single()
343 phr->u.c.an_log_value[1] = HPI_METER_MINIMUM; in hpi_check_control_cache_single()
345 phr->u.c.an_log_value[0] = in hpi_check_control_cache_single()
347 phr->u.c.an_log_value[1] = in hpi_check_control_cache_single()
354 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
355 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache_single()
[all …]
Dhpifunc.c1317 hm.u.c.attribute = attrib; in hpi_control_param_set()
1318 hm.u.c.param1 = param1; in hpi_control_param_set()
1319 hm.u.c.param2 = param2; in hpi_control_param_set()
1334 hm.u.c.attribute = attrib; in hpi_control_log_set2()
1335 hm.u.c.an_log_value[0] = sv0; in hpi_control_log_set2()
1336 hm.u.c.an_log_value[1] = sv1; in hpi_control_log_set2()
1352 hm.u.c.attribute = attrib; in hpi_control_param_get()
1353 hm.u.c.param1 = param1; in hpi_control_param_get()
1354 hm.u.c.param2 = param2; in hpi_control_param_get()
1357 *pparam1 = hr.u.c.param1; in hpi_control_param_get()
[all …]
/sound/core/
Dmemory.c45 size_t c = count; in copy_to_user_fromio()
46 if (c > sizeof(buf)) in copy_to_user_fromio()
47 c = sizeof(buf); in copy_to_user_fromio()
48 memcpy_fromio(buf, (void __iomem *)src, c); in copy_to_user_fromio()
49 if (copy_to_user(dst, buf, c)) in copy_to_user_fromio()
51 count -= c; in copy_to_user_fromio()
52 dst += c; in copy_to_user_fromio()
53 src += c; in copy_to_user_fromio()
78 size_t c = count; in copy_from_user_toio()
79 if (c > sizeof(buf)) in copy_from_user_toio()
[all …]
Dinfo.c129 if (entry->c.ops->llseek) { in snd_info_entry_llseek()
130 offset = entry->c.ops->llseek(entry, in snd_info_entry_llseek()
177 size = entry->c.ops->read(entry, data->file_private_data, in snd_info_entry_read()
198 size = entry->c.ops->write(entry, data->file_private_data, in snd_info_entry_write()
212 if (entry->c.ops->poll) in snd_info_entry_poll()
213 return entry->c.ops->poll(entry, in snd_info_entry_poll()
216 if (entry->c.ops->read) in snd_info_entry_poll()
218 if (entry->c.ops->write) in snd_info_entry_poll()
229 if (!entry->c.ops->ioctl) in snd_info_entry_ioctl()
231 return entry->c.ops->ioctl(entry, data->file_private_data, in snd_info_entry_ioctl()
[all …]
Dpcm_lib.c120 unsigned int c; in snd_pcm_playback_silence() local
123 for (c = 0; c < channels; ++c) { in snd_pcm_playback_silence()
125 err = substream->ops->silence(substream, c, ofs, transfer); in snd_pcm_playback_silence()
130 for (c = 0; c < channels; ++c) { in snd_pcm_playback_silence()
131 char *hwbuf = runtime->dma_area + (c * dma_csize) + samples_to_bytes(runtime, ofs); in snd_pcm_playback_silence()
577 unsigned int c, unsigned int *r) in muldiv32() argument
580 if (c == 0) { in muldiv32()
584 n = div_u64_rem(n, c, r); in muldiv32()
675 …nd_interval_mul(const struct snd_interval *a, const struct snd_interval *b, struct snd_interval *c) in snd_interval_mul() argument
678 snd_interval_none(c); in snd_interval_mul()
[all …]
Dpcm_drm_eld.c32 struct snd_interval *c; in eld_limit_rates() local
38 c = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS); in eld_limit_rates()
47 if (c->min <= max_channels) in eld_limit_rates()
59 struct snd_interval *c = hw_param_interval(params, rule->var); in eld_limit_channels() local
80 return snd_interval_refine(c, &t); in eld_limit_channels()
/sound/aoa/core/
Dcore.c24 static int attach_codec_to_fabric(struct aoa_codec *c) in attach_codec_to_fabric() argument
28 if (!try_module_get(c->owner)) in attach_codec_to_fabric()
33 err = fabric->found_codec(c); in attach_codec_to_fabric()
35 module_put(c->owner); in attach_codec_to_fabric()
37 c->name); in attach_codec_to_fabric()
40 c->fabric = fabric; in attach_codec_to_fabric()
43 if (c->init) in attach_codec_to_fabric()
44 err = c->init(c); in attach_codec_to_fabric()
46 printk(KERN_ERR "snd-aoa: codec %s didn't init\n", c->name); in attach_codec_to_fabric()
47 c->fabric = NULL; in attach_codec_to_fabric()
[all …]
/sound/aoa/soundbus/i2sbus/
Dcontrol.c22 int i2sbus_control_init(struct macio_dev* dev, struct i2sbus_control **c) in i2sbus_control_init() argument
24 *c = kzalloc(sizeof(struct i2sbus_control), GFP_KERNEL); in i2sbus_control_init()
25 if (!*c) in i2sbus_control_init()
28 INIT_LIST_HEAD(&(*c)->list); in i2sbus_control_init()
30 (*c)->macio = dev->bus->chip; in i2sbus_control_init()
34 void i2sbus_control_destroy(struct i2sbus_control *c) in i2sbus_control_destroy() argument
36 kfree(c); in i2sbus_control_destroy()
40 int i2sbus_control_add_dev(struct i2sbus_control *c, in i2sbus_control_add_dev() argument
69 list_add(&i2sdev->item, &c->list); in i2sbus_control_add_dev()
74 void i2sbus_control_remove_dev(struct i2sbus_control *c, in i2sbus_control_remove_dev() argument
[all …]
Di2sbus.h112 struct i2sbus_control **c);
113 extern void i2sbus_control_destroy(struct i2sbus_control *c);
114 extern int i2sbus_control_add_dev(struct i2sbus_control *c,
116 extern void i2sbus_control_remove_dev(struct i2sbus_control *c,
118 extern int i2sbus_control_enable(struct i2sbus_control *c,
120 extern int i2sbus_control_cell(struct i2sbus_control *c,
123 extern int i2sbus_control_clock(struct i2sbus_control *c,
/sound/firewire/tascam/
Damdtp-tascam.c46 unsigned int channels, remaining_frames, i, c; in write_pcm_s32() local
55 for (c = 0; c < channels; ++c) { in write_pcm_s32()
56 buffer[c] = cpu_to_be32(*src); in write_pcm_s32()
71 unsigned int channels, remaining_frames, i, c; in write_pcm_s16() local
80 for (c = 0; c < channels; ++c) { in write_pcm_s16()
81 buffer[c] = cpu_to_be32(*src << 16); in write_pcm_s16()
96 unsigned int channels, remaining_frames, i, c; in read_pcm_s32() local
108 for (c = 0; c < channels; ++c) { in read_pcm_s32()
109 *dst = be32_to_cpu(buffer[c]); in read_pcm_s32()
122 unsigned int channels, i, c; in write_pcm_silence() local
[all …]
/sound/oss/
Dmidibuf.c132 int c = midi_out_buf[dev]->queue[midi_out_buf[dev]->head]; in midi_poll() local
135 ok = midi_devs[dev]->outputc(dev, c); in midi_poll()
261 int c, n, i; in MIDIbuf_write() local
269 c = 0; in MIDIbuf_write()
271 while (c < count) in MIDIbuf_write()
280 c = -EAGAIN; in MIDIbuf_write()
287 c = -EINTR; in MIDIbuf_write()
292 if (n > (count - c)) in MIDIbuf_write()
293 n = count - c; in MIDIbuf_write()
300 if (copy_from_user((char *) &tmp_data, &(buf)[c], 1)) { in MIDIbuf_write()
[all …]
DMakefile47 clean-files := msndperm.c msndinit.c pndsperm.c pndspini.c \
60 $(obj)/msnd_classic.o: $(obj)/msndperm.c $(obj)/msndinit.c
62 $(obj)/msndperm.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_PERM_FILE)) $(obj)/bin2hex
65 $(obj)/msndinit.c: $(patsubst "%", %, $(CONFIG_MSNDCLAS_INIT_FILE)) $(obj)/bin2hex
70 $(obj)/msnd_pinnacle.o: $(obj)/pndsperm.c $(obj)/pndspini.c
72 $(obj)/pndsperm.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_PERM_FILE)) $(obj)/bin2hex
75 $(obj)/pndspini.c: $(patsubst "%", %, $(CONFIG_MSNDPIN_INIT_FILE)) $(obj)/bin2hex
Dhex2hex.c17 int l=0, c, i; in loadhex() local
19 while ((c=getc(inf))!=EOF) in loadhex()
21 if (c == ':') /* Sync with beginning of line */ in loadhex()
46 if (fscanf(inf, "%02x", &c) != 1) in loadhex()
50 buf[addr++] = c; in loadhex()
53 sum += c; in loadhex()
/sound/firewire/digi00x/
Damdtp-dot.c155 unsigned int channels, remaining_frames, i, c; in write_pcm_s32() local
165 for (c = 0; c < channels; ++c) { in write_pcm_s32()
166 buffer[c] = cpu_to_be32((*src >> 8) | 0x40000000); in write_pcm_s32()
167 dot_encode_step(&p->state, &buffer[c]); in write_pcm_s32()
181 unsigned int channels, remaining_frames, i, c; in write_pcm_s16() local
191 for (c = 0; c < channels; ++c) { in write_pcm_s16()
192 buffer[c] = cpu_to_be32((*src << 8) | 0x40000000); in write_pcm_s16()
193 dot_encode_step(&p->state, &buffer[c]); in write_pcm_s16()
207 unsigned int channels, remaining_frames, i, c; in read_pcm_s32() local
217 for (c = 0; c < channels; ++c) { in read_pcm_s32()
[all …]
/sound/drivers/
Dmts64.c147 static u8 mts64_map_midi_input(u8 c);
156 static void mts64_write_command(struct parport *p, u8 c);
157 static void mts64_write_data(struct parport *p, u8 c);
158 static void mts64_write_midi(struct mts64 *mts, u8 c, int midiport);
168 u8 c; in mts64_enable_readout() local
170 c = parport_read_control(p); in mts64_enable_readout()
171 c |= MTS64_CTL_READOUT; in mts64_enable_readout()
172 parport_write_control(p, c); in mts64_enable_readout()
181 u8 c; in mts64_disable_readout() local
183 c = parport_read_control(p); in mts64_disable_readout()
[all …]
/sound/soc/au1x/
Di2sc.c83 unsigned long c; in au1xi2s_set_fmt() local
87 c = ctx->cfg; in au1xi2s_set_fmt()
89 c &= ~CFG_FM_MASK; in au1xi2s_set_fmt()
92 c |= CFG_FM_I2S; in au1xi2s_set_fmt()
95 c |= CFG_FM_RJ; in au1xi2s_set_fmt()
98 c |= CFG_FM_LJ; in au1xi2s_set_fmt()
104 c &= ~(CFG_IC | CFG_ICK); /* IB-IF */ in au1xi2s_set_fmt()
107 c |= CFG_IC | CFG_ICK; in au1xi2s_set_fmt()
110 c |= CFG_IC; in au1xi2s_set_fmt()
113 c |= CFG_ICK; in au1xi2s_set_fmt()
[all …]
/sound/pci/echoaudio/
Dechoaudio.c121 struct snd_interval *c = hw_param_interval(params, in hw_rule_capture_format_by_channels() local
130 if (c->min == 2) { in hw_rule_capture_format_by_channels()
136 if (c->min > 2) { in hw_rule_capture_format_by_channels()
149 struct snd_interval *c = hw_param_interval(params, in hw_rule_capture_channels_by_format() local
165 return snd_interval_refine(c, &ch); in hw_rule_capture_channels_by_format()
172 return snd_interval_refine(c, &ch); in hw_rule_capture_channels_by_format()
183 struct snd_interval *c = hw_param_interval(params, in hw_rule_playback_format_by_channels() local
193 if (c->min > 2) { in hw_rule_playback_format_by_channels()
198 } else if (c->max == 1) in hw_rule_playback_format_by_channels()
202 else if (c->min == 2 && c->max == 2) in hw_rule_playback_format_by_channels()
[all …]
/sound/oss/dmasound/
Ddmasound_q40.c132 u_char c; in q40_ctx_law() local
136 if (get_user(c, userPtr++)) in q40_ctx_law()
138 data = table[c]; in q40_ctx_law()
169 u_char c; in q40_ctx_s8() local
173 if (get_user(c, userPtr++)) in q40_ctx_s8()
175 data = c ; in q40_ctx_s8()
205 u_char c; in q40_ctx_u8() local
209 if (get_user(c, userPtr++)) in q40_ctx_u8()
211 data = c ; in q40_ctx_u8()
242 u_char c; in q40_ctc_law() local
[all …]
/sound/pci/riptide/
Driptide.c244 #define SEND_GETC(p,b,c) sendcmd(p,PARM|RESP,GETC,c,RET(b)) argument
247 #define SEND_RMEM(p,b,c,d) sendcmd(p,PARM|RESP,RMEM|BYTE1(b),LONG0(c),RET(d)) /* memory acc… argument
248 #define SEND_SMEM(p,b,c) sendcmd(p,PARM,SMEM|BYTE1(b),LONG0(c),RET(0)) /* memory access f… argument
249 #define SEND_WMEM(p,b,c) sendcmd(p,PARM,WMEM|BYTE1(b),LONG0(c),RET(0)) /* memory access f… argument
250 #define SEND_SDTM(p,b,c) sendcmd(p,PARM|RESP,SDTM|TRINIB1(b),0,RET(c)) /* memory access f… argument
253 #define SEND_SSTR(p,b,c) sendcmd(p,PARM,SSTR|BYTE3(b),LONG0(c),RET(0)) /* start stream */ argument
257 #define SEND_GPOS(p,b,c,d) sendcmd(p,PARM|RESP,GPOS,BYTE3(c)|BYTE2(b),RET(d)) /* get positi… argument
258 #define SEND_SETF(p,b,c,d,e,f,g) sendcmd(p,PARM,SETF|WORD1(b)|BYTE3(c),d|BYTE1(e)|BYTE2(f)|BYTE3(… argument
259 #define SEND_GSTS(p,b,c,d) sendcmd(p,PARM|RESP,GSTS,BYTE3(c)|BYTE2(b),RET(d)) argument
260 #define SEND_NGPOS(p,b,c,d) sendcmd(p,PARM|RESP,NGPOS,BYTE3(c)|BYTE2(b),RET(d)) argument
[all …]
/sound/firewire/fireworks/
Dfireworks_proc.c133 unsigned int g, c, m, max, size; in proc_read_phys_meters() local
156 for (c = 0; c < efw->phys_out_grps[g].count; c++) { in proc_read_phys_meters()
159 name, c, linear[m++]); in proc_read_phys_meters()
169 for (c = 0; c < efw->phys_in_grps[g].count; c++) in proc_read_phys_meters()
172 name, c, linear[m++]); in proc_read_phys_meters()
/sound/aoa/codecs/
Donyx.c65 #define codec_to_onyx(c) container_of(c, struct onyx, codec) argument
313 u8 c; in onyx_snd_mute_get() local
316 onyx_read_register(onyx, ONYX_REG_DAC_CONTROL, &c); in onyx_snd_mute_get()
319 ucontrol->value.integer.value[0] = !(c & ONYX_MUTE_LEFT); in onyx_snd_mute_get()
320 ucontrol->value.integer.value[1] = !(c & ONYX_MUTE_RIGHT); in onyx_snd_mute_get()
329 u8 v = 0, c = 0; in onyx_snd_mute_put() local
337 c = v; in onyx_snd_mute_put()
338 c &= ~(ONYX_MUTE_RIGHT | ONYX_MUTE_LEFT); in onyx_snd_mute_put()
340 c |= ONYX_MUTE_LEFT; in onyx_snd_mute_put()
342 c |= ONYX_MUTE_RIGHT; in onyx_snd_mute_put()
[all …]
/sound/pcmcia/vx/
Dvxp_ops.c93 int c; in vx_check_magic() local
95 c = vx_inb(chip, CDSP); in vx_check_magic()
96 if (c == CDSP_MAGIC) in vx_check_magic()
100 snd_printk(KERN_ERR "cannot find xilinx magic word (%x)\n", c); in vx_check_magic()
152 int c; in vxp_load_xilinx_binary() local
184 c = vx_inb(chip, RXL); in vxp_load_xilinx_binary()
185 if (c != (int)data) in vxp_load_xilinx_binary()
186 snd_printk(KERN_ERR "vxpocket: load xilinx mismatch at %d: 0x%x != 0x%x\n", i, c, (int)data); in vxp_load_xilinx_binary()
200 c = (int)vx_inb(chip, RXH) << 16; in vxp_load_xilinx_binary()
201 c |= (int)vx_inb(chip, RXM) << 8; in vxp_load_xilinx_binary()
[all …]
/sound/core/seq/
Dseq_midi_event.c242 int snd_midi_event_encode_byte(struct snd_midi_event *dev, int c, in snd_midi_event_encode_byte() argument
248 c &= 0xff; in snd_midi_event_encode_byte()
250 if (c >= MIDI_CMD_COMMON_CLOCK) { in snd_midi_event_encode_byte()
252 ev->type = status_event[ST_SPECIAL + c - 0xf0].event; in snd_midi_event_encode_byte()
259 if ((c & 0x80) && in snd_midi_event_encode_byte()
260 (c != MIDI_CMD_COMMON_SYSEX_END || dev->type != ST_SYSEX)) { in snd_midi_event_encode_byte()
262 dev->buf[0] = c; in snd_midi_event_encode_byte()
263 if ((c & 0xf0) == 0xf0) /* system messages */ in snd_midi_event_encode_byte()
264 dev->type = (c & 0x0f) + ST_SPECIAL; in snd_midi_event_encode_byte()
266 dev->type = (c >> 4) & 0x07; in snd_midi_event_encode_byte()
[all …]

1234567