Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 57) sorted by relevance

123

/sound/usb/
Dmixer_s1810c.c86 u32 b; member
136 u32 b, u32 c, u32 d, u32 e) in snd_s1810c_send_ctl_packet() argument
145 pkt.b = b; in snd_s1810c_send_ctl_packet()
216 u32 a, b, c, e, n, off; in snd_s1810c_init_mixer_maps() local
224 for (b = off, c = 0; b < 18 + off; b++) { in snd_s1810c_init_mixer_maps()
227 snd_s1810c_send_ctl_packet(dev, a, b, c, 0, e); in snd_s1810c_init_mixer_maps()
228 snd_s1810c_send_ctl_packet(dev, a, b, c, 1, e); in snd_s1810c_init_mixer_maps()
231 snd_s1810c_send_ctl_packet(dev, a, b, 0, 0, e); in snd_s1810c_init_mixer_maps()
232 snd_s1810c_send_ctl_packet(dev, a, b, 0, 1, e); in snd_s1810c_init_mixer_maps()
244 for (b = 1; b < 3; b++) { in snd_s1810c_init_mixer_maps()
[all …]
Dmidi.c542 uint8_t b, struct urb *urb) in snd_usbmidi_transmit_byte() argument
548 if (b >= 0xf8) { in snd_usbmidi_transmit_byte()
549 output_packet(urb, p0 | 0x0f, b, 0, 0); in snd_usbmidi_transmit_byte()
550 } else if (b >= 0xf0) { in snd_usbmidi_transmit_byte()
551 switch (b) { in snd_usbmidi_transmit_byte()
553 port->data[0] = b; in snd_usbmidi_transmit_byte()
558 port->data[0] = b; in snd_usbmidi_transmit_byte()
562 port->data[0] = b; in snd_usbmidi_transmit_byte()
590 } else if (b >= 0x80) { in snd_usbmidi_transmit_byte()
591 port->data[0] = b; in snd_usbmidi_transmit_byte()
[all …]
/sound/firewire/
Dpackets-buffer.c21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, in iso_packets_buffer_init() argument
30 b->packets = kmalloc_array(count, sizeof(*b->packets), GFP_KERNEL); in iso_packets_buffer_init()
31 if (!b->packets) { in iso_packets_buffer_init()
44 err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, in iso_packets_buffer_init()
51 p = page_address(b->iso_buffer.pages[page_index]); in iso_packets_buffer_init()
53 b->packets[i].buffer = p + offset_in_page; in iso_packets_buffer_init()
54 b->packets[i].offset = page_index * PAGE_SIZE + offset_in_page; in iso_packets_buffer_init()
60 kfree(b->packets); in iso_packets_buffer_init()
71 void iso_packets_buffer_destroy(struct iso_packets_buffer *b, in iso_packets_buffer_destroy() argument
74 fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); in iso_packets_buffer_destroy()
[all …]
Damdtp-am824.c302 u8 *b; in write_midi_messages() local
305 b = (u8 *)&buffer[p->midi_position]; in write_midi_messages()
311 snd_rawmidi_transmit(p->midi[port], &b[1], 1) == 1) { in write_midi_messages()
313 b[0] = 0x81; in write_midi_messages()
315 b[0] = 0x80; in write_midi_messages()
316 b[1] = 0; in write_midi_messages()
318 b[2] = 0; in write_midi_messages()
319 b[3] = 0; in write_midi_messages()
330 u8 *b; in read_midi_messages() local
339 b = (u8 *)&buffer[p->midi_position]; in read_midi_messages()
[all …]
Dpackets-buffer.h21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit,
24 void iso_packets_buffer_destroy(struct iso_packets_buffer *b,
/sound/firewire/digi00x/
Damdtp-dot.c254 u8 *b; in write_midi_messages() local
258 b = (u8 *)&buffer[0]; in write_midi_messages()
264 len = snd_rawmidi_transmit(p->midi[port], b + 1, 2); in write_midi_messages()
274 b[3] = 0xe0; in write_midi_messages()
276 b[3] = 0x20; in write_midi_messages()
278 b[3] = 0x00; in write_midi_messages()
279 b[3] |= len; in write_midi_messages()
282 b[1] = 0; in write_midi_messages()
283 b[2] = 0; in write_midi_messages()
284 b[3] = 0; in write_midi_messages()
[all …]
/sound/pci/riptide/
Driptide.c228 #define SEND_GETV(p,b) sendcmd(p,RESP,GETV,0,RET(b)) /* get version */ argument
229 #define SEND_GETC(p,b,c) sendcmd(p,PARM|RESP,GETC,c,RET(b)) argument
230 #define SEND_GUNS(p,b) sendcmd(p,RESP,GUNS,0,RET(b)) argument
231 #define SEND_SCID(p,b) sendcmd(p,RESP,SCID,0,RET(b)) argument
232 #define SEND_RMEM(p,b,c,d) sendcmd(p,PARM|RESP,RMEM|BYTE1(b),LONG0(c),RET(d)) /* memory acc… argument
233 #define SEND_SMEM(p,b,c) sendcmd(p,PARM,SMEM|BYTE1(b),LONG0(c),RET(0)) /* memory access f… argument
234 #define SEND_WMEM(p,b,c) sendcmd(p,PARM,WMEM|BYTE1(b),LONG0(c),RET(0)) /* memory access f… argument
235 #define SEND_SDTM(p,b,c) sendcmd(p,PARM|RESP,SDTM|TRINIB1(b),0,RET(c)) /* memory access f… argument
236 #define SEND_GOTO(p,b) sendcmd(p,PARM,GOTO,LONG0(b),RET(0)) /* memory access for firmwa… argument
238 #define SEND_SSTR(p,b,c) sendcmd(p,PARM,SSTR|BYTE3(b),LONG0(c),RET(0)) /* start stream */ argument
[all …]
/sound/pci/au88x0/
Dau88x0_eq.c99 static void vortex_EqHw_SetLeftStates(vortex_t *vortex, const u16 a[], const u16 b[]) in vortex_EqHw_SetLeftStates() argument
108 hwwrite(vortex->mmio, 0x2b014 + (i * 0xc), b[i]); in vortex_EqHw_SetLeftStates()
109 hwwrite(vortex->mmio, 0x2b018 + (i * 0xc), b[1 + i]); in vortex_EqHw_SetLeftStates()
110 hwwrite(vortex->mmio, 0x2b01c + (i * 0xc), b[2 + i]); in vortex_EqHw_SetLeftStates()
111 hwwrite(vortex->mmio, 0x2b020 + (i * 0xc), b[3 + i]); in vortex_EqHw_SetLeftStates()
116 static void vortex_EqHw_SetRightStates(vortex_t *vortex, const u16 a[], const u16 b[]) in vortex_EqHw_SetRightStates() argument
125 hwwrite(vortex->mmio, 0x2b1f4 + (i * 0xc), b[i]); in vortex_EqHw_SetRightStates()
126 hwwrite(vortex->mmio, 0x2b1f8 + (i * 0xc), b[1 + i]); in vortex_EqHw_SetRightStates()
127 hwwrite(vortex->mmio, 0x2b1fc + (i * 0xc), b[2 + i]); in vortex_EqHw_SetRightStates()
128 hwwrite(vortex->mmio, 0x2b200 + (i * 0xc), b[3 + i]); in vortex_EqHw_SetRightStates()
[all …]
Dau88x0_a3d.c47 a3dsrc_SetAtmosTarget(a3dsrc_t * a, short aa, short b, short c, short d, in a3dsrc_SetAtmosTarget() argument
56 (b << 0x10) | aa); in a3dsrc_SetAtmosTarget()
62 a3dsrc_SetAtmosCurrent(a3dsrc_t * a, short aa, short b, short c, short d, in a3dsrc_SetAtmosCurrent() argument
71 (b << 0x10) | aa); in a3dsrc_SetAtmosCurrent()
88 a3dsrc_GetAtmosTarget(a3dsrc_t * a, short *aa, short *b, short *c,
124 a3dsrc_SetHrtfTarget(a3dsrc_t * a, a3d_Hrtf_t const aa, a3d_Hrtf_t const b) in a3dsrc_SetHrtfTarget() argument
133 (b[i] << 0x10) | aa[i]); in a3dsrc_SetHrtfTarget()
137 a3dsrc_SetHrtfCurrent(a3dsrc_t * a, a3d_Hrtf_t const aa, a3d_Hrtf_t const b) in a3dsrc_SetHrtfCurrent() argument
146 (b[i] << 0x10) | aa[i]); in a3dsrc_SetHrtfCurrent()
150 a3dsrc_SetHrtfState(a3dsrc_t * a, a3d_Hrtf_t const aa, a3d_Hrtf_t const b) in a3dsrc_SetHrtfState() argument
[all …]
/sound/core/seq/
Dseq_timer.h66 static inline int snd_seq_compare_tick_time(snd_seq_tick_time_t *a, snd_seq_tick_time_t *b) in snd_seq_compare_tick_time() argument
69 return (*a >= *b); in snd_seq_compare_tick_time()
72 static inline int snd_seq_compare_real_time(snd_seq_real_time_t *a, snd_seq_real_time_t *b) in snd_seq_compare_real_time() argument
75 if (a->tv_sec > b->tv_sec) in snd_seq_compare_real_time()
77 if ((a->tv_sec == b->tv_sec) && (a->tv_nsec >= b->tv_nsec)) in snd_seq_compare_real_time()
Dseq_prioq.c87 struct snd_seq_event *b) in compare_timestamp() argument
91 return (snd_seq_compare_tick_time(&a->time.tick, &b->time.tick)); in compare_timestamp()
94 return (snd_seq_compare_real_time(&a->time.time, &b->time.time)); in compare_timestamp()
104 struct snd_seq_event *b) in compare_timestamp_rel() argument
108 if (a->time.tick > b->time.tick) in compare_timestamp_rel()
110 else if (a->time.tick == b->time.tick) in compare_timestamp_rel()
116 if (a->time.time.tv_sec > b->time.time.tv_sec) in compare_timestamp_rel()
118 else if (a->time.time.tv_sec == b->time.time.tv_sec) { in compare_timestamp_rel()
119 if (a->time.time.tv_nsec > b->time.time.tv_nsec) in compare_timestamp_rel()
121 else if (a->time.time.tv_nsec == b->time.time.tv_nsec) in compare_timestamp_rel()
/sound/soc/intel/catpt/
Dregisters.h94 #define LPT_VDRTCTL0_DSRAMPGE(b) BIT(16 + (b)) argument
96 #define LPT_VDRTCTL0_ISRAMPGE(b) BIT(6 + (b)) argument
104 #define WPT_VDRTCTL0_DSRAMPGE(b) BIT(12 + (b)) argument
106 #define WPT_VDRTCTL0_ISRAMPGE(b) BIT(2 + (b)) argument
/sound/core/
Dpcm_local.h14 const struct snd_interval *b, struct snd_interval *c);
16 const struct snd_interval *b, struct snd_interval *c);
18 const struct snd_interval *b,
21 const struct snd_interval *b, struct snd_interval *c);
Dpcm_lib.c513 static inline unsigned int div32(unsigned int a, unsigned int b, in div32() argument
516 if (b == 0) { in div32()
520 *r = a % b; in div32()
521 return a / b; in div32()
524 static inline unsigned int div_down(unsigned int a, unsigned int b) in div_down() argument
526 if (b == 0) in div_down()
528 return a / b; in div_down()
531 static inline unsigned int div_up(unsigned int a, unsigned int b) in div_up() argument
535 if (b == 0) in div_up()
537 q = div32(a, b, &r); in div_up()
[all …]
/sound/firewire/motu/
Damdtp-motu.c216 u8 *b; in write_midi_messages() local
220 b = (u8 *)buffer; in write_midi_messages()
223 snd_rawmidi_transmit(midi, b + p->midi_byte_offset, 1) == 1) { in write_midi_messages()
224 b[p->midi_flag_offset] = 0x01; in write_midi_messages()
226 b[p->midi_byte_offset] = 0x00; in write_midi_messages()
227 b[p->midi_flag_offset] = 0x00; in write_midi_messages()
242 u8 *b; in read_midi_messages() local
246 b = (u8 *)buffer; in read_midi_messages()
249 if (midi && (b[p->midi_flag_offset] & 0x01)) in read_midi_messages()
250 snd_rawmidi_receive(midi, b + p->midi_byte_offset, 1); in read_midi_messages()
/sound/soc/fsl/
Dfsl_asrc.h121 #define ASRCNCR_ANCi_SHIFT(i, b) (b * i) argument
122 #define ASRCNCR_ANCi_MASK(i, b) (((1 << b) - 1) << ASRCNCR_ANCi_SHIFT(i, b)) argument
123 #define ASRCNCR_ANCi(i, v, b) ((v << ASRCNCR_ANCi_SHIFT(i, b)) & ASRCNCR_ANCi_MASK(i, b)) argument
/sound/firewire/tascam/
Dtascam-transaction.c256 u8 *b; in handle_midi_tx() local
264 b = (u8 *)(buf + i * 2); in handle_midi_tx()
266 port = b[0] >> 4; in handle_midi_tx()
272 bytes = calculate_message_bytes(b[1]); in handle_midi_tx()
277 if (b[bytes] == 0xf7) in handle_midi_tx()
286 snd_rawmidi_receive(substream, b + 1, bytes); in handle_midi_tx()
/sound/soc/samsung/
Ds3c24xx-i2s.h26 #define S3C24XX_PRESCALE(a,b) \ argument
27 (((a - 1) << S3C2410_IISPSR_INTSHIFT) | ((b - 1) << S3C2410_IISPSR_EXTSHFIT))
/sound/soc/codecs/
Dcs42l51.h26 #define CS42L51_MK_CHIP_REV(a, b) ((a)<<3|(b)) argument
/sound/pci/hda/
Dhda_auto_parser.c37 const struct auto_out_pin *b = bp; in compare_seq() local
38 return (int)(a->seq - b->seq); in compare_seq()
71 const struct auto_pin_cfg_item *b = bp; in compare_input_type() local
72 if (a->type != b->type) in compare_input_type()
73 return (int)(a->type - b->type); in compare_input_type()
76 if (a->is_headset_mic && b->is_headphone_mic) in compare_input_type()
78 else if (a->is_headphone_mic && b->is_headset_mic) in compare_input_type()
83 return (int)(b->has_boost_on_pin - a->has_boost_on_pin); in compare_input_type()
/sound/sparc/
Ddbri.c577 static __u32 reverse_bytes(__u32 b, int len) in reverse_bytes() argument
581 b = ((b & 0xffff0000) >> 16) | ((b & 0x0000ffff) << 16); in reverse_bytes()
584 b = ((b & 0xff00ff00) >> 8) | ((b & 0x00ff00ff) << 8); in reverse_bytes()
587 b = ((b & 0xf0f0f0f0) >> 4) | ((b & 0x0f0f0f0f) << 4); in reverse_bytes()
590 b = ((b & 0xcccccccc) >> 2) | ((b & 0x33333333) << 2); in reverse_bytes()
593 b = ((b & 0xaaaaaaaa) >> 1) | ((b & 0x55555555) << 1); in reverse_bytes()
601 return b; in reverse_bytes()
/sound/pci/cs46xx/
Dcs46xx_dsp_scb_types.h19 #define ___DSP_DUAL_16BIT_ALLOC(a,b) u16 a; u16 b; argument
21 #define ___DSP_DUAL_16BIT_ALLOC(a,b) u16 b; u16 a; argument
/sound/isa/msnd/
Dmsnd_pinnacle_mixer.c150 #define update_volm(a, b) \ argument
154 dev->SMA + SMA_##b##Left); \
157 dev->SMA + SMA_##b##Right); \
/sound/drivers/vx/
Dvx_mixer.c43 struct b { struct
48 } b; member
54 struct b { struct
59 } b; member
63 #define SET_CDC_DATA_SEL(di,s) ((di).b.mh = (u8) (s))
64 #define SET_CDC_DATA_REG(di,r) ((di).b.ml = (u8) (r))
65 #define SET_CDC_DATA_VAL(di,d) ((di).b.ll = (u8) (d))
/sound/pci/ctxfi/
Dctatc.c198 int b; in atc_get_pitch() local
205 for (b = 31; ((b >= 0) && !(input_rate >> b)); ) in atc_get_pitch()
206 b--; in atc_get_pitch()
208 if (b >= 0) { in atc_get_pitch()
209 input_rate <<= (31 - b); in atc_get_pitch()
211 b = 24 - (31 - b); in atc_get_pitch()
212 if (b >= 0) in atc_get_pitch()
213 input_rate <<= b; in atc_get_pitch()
215 input_rate >>= -b; in atc_get_pitch()

123