/sound/firewire/bebob/ |
D | bebob_command.c | 13 u8 *buf; in avc_audio_set_selector() local 16 buf = kzalloc(12, GFP_KERNEL); in avc_audio_set_selector() 17 if (buf == NULL) in avc_audio_set_selector() 20 buf[0] = 0x00; /* AV/C CONTROL */ in avc_audio_set_selector() 21 buf[1] = 0x08 | (0x07 & subunit_id); /* AUDIO SUBUNIT ID */ in avc_audio_set_selector() 22 buf[2] = 0xb8; /* FUNCTION BLOCK */ in avc_audio_set_selector() 23 buf[3] = 0x80; /* type is 'selector'*/ in avc_audio_set_selector() 24 buf[4] = 0xff & fb_id; /* function block id */ in avc_audio_set_selector() 25 buf[5] = 0x10; /* control attribute is CURRENT */ in avc_audio_set_selector() 26 buf[6] = 0x02; /* selector length is 2 */ in avc_audio_set_selector() [all …]
|
D | bebob.h | 122 snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) in snd_bebob_read_block() argument 126 buf, size, 0); in snd_bebob_read_block() 130 snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) in snd_bebob_read_quad() argument 134 (void *)buf, sizeof(u32), 0); in snd_bebob_read_quad() 172 avc_bridgeco_fill_unit_addr(u8 buf[AVC_BRIDGECO_ADDR_BYTES], in avc_bridgeco_fill_unit_addr() 177 buf[0] = 0xff; /* Unit */ in avc_bridgeco_fill_unit_addr() 178 buf[1] = dir; in avc_bridgeco_fill_unit_addr() 179 buf[2] = AVC_BRIDGECO_PLUG_MODE_UNIT; in avc_bridgeco_fill_unit_addr() 180 buf[3] = unit; in avc_bridgeco_fill_unit_addr() 181 buf[4] = 0xff & pid; in avc_bridgeco_fill_unit_addr() [all …]
|
D | bebob_maudio.c | 138 get_meter(struct snd_bebob *bebob, void *buf, unsigned int size) in get_meter() argument 142 buf, size, 0); in get_meter() 149 u8 *buf; in check_clk_sync() local 151 buf = kmalloc(size, GFP_KERNEL); in check_clk_sync() 152 if (buf == NULL) in check_clk_sync() 155 err = get_meter(bebob, buf, size); in check_clk_sync() 160 *sync = (buf[size - 2] != 0xff); in check_clk_sync() 162 kfree(buf); in check_clk_sync() 177 u8 *buf; in avc_maudio_set_special_clk() local 183 buf = kmalloc(12, GFP_KERNEL); in avc_maudio_set_special_clk() [all …]
|
D | bebob_focusrite.c | 62 u32 *buf, unsigned int size) in saffire_read_block() argument 66 __be32 *tmp = (__be32 *)buf; in saffire_read_block() 75 buf[i] = be32_to_cpu(tmp[i]); in saffire_read_block() 232 saffire_meter_get(struct snd_bebob *bebob, u32 *buf, unsigned int size) in saffire_meter_get() argument 248 err = saffire_read_block(bebob, offset, buf, size); in saffire_meter_get() 250 swap(buf[1], buf[3]); in saffire_meter_get() 251 swap(buf[2], buf[3]); in saffire_meter_get() 252 swap(buf[3], buf[4]); in saffire_meter_get() 254 swap(buf[7], buf[10]); in saffire_meter_get() 255 swap(buf[8], buf[10]); in saffire_meter_get() [all …]
|
/sound/firewire/oxfw/ |
D | oxfw-command.c | 13 u8 *buf; in avc_stream_set_format() local 16 buf = kmalloc(len + 10, GFP_KERNEL); in avc_stream_set_format() 17 if (buf == NULL) in avc_stream_set_format() 20 buf[0] = 0x00; /* CONTROL */ in avc_stream_set_format() 21 buf[1] = 0xff; /* UNIT */ in avc_stream_set_format() 22 buf[2] = 0xbf; /* EXTENDED STREAM FORMAT INFORMATION */ in avc_stream_set_format() 23 buf[3] = 0xc0; /* SINGLE subfunction */ in avc_stream_set_format() 24 buf[4] = dir; /* Plug Direction */ in avc_stream_set_format() 25 buf[5] = 0x00; /* UNIT */ in avc_stream_set_format() 26 buf[6] = 0x00; /* PCR (Isochronous Plug) */ in avc_stream_set_format() [all …]
|
D | oxfw-spkr.c | 31 u8 *buf; in avc_audio_feature_mute() local 35 buf = kmalloc(11, GFP_KERNEL); in avc_audio_feature_mute() 36 if (!buf) in avc_audio_feature_mute() 40 buf[0] = 0x01; /* AV/C, STATUS */ in avc_audio_feature_mute() 43 buf[0] = 0x00; /* AV/C, CONTROL */ in avc_audio_feature_mute() 46 buf[1] = 0x08; /* audio unit 0 */ in avc_audio_feature_mute() 47 buf[2] = 0xb8; /* FUNCTION BLOCK */ in avc_audio_feature_mute() 48 buf[3] = 0x81; /* function block type: feature */ in avc_audio_feature_mute() 49 buf[4] = fb_id; /* function block ID */ in avc_audio_feature_mute() 50 buf[5] = 0x10; /* control attribute: current */ in avc_audio_feature_mute() [all …]
|
/sound/usb/caiaq/ |
D | input.c | 191 int axis, const unsigned char *buf, in snd_caiaq_input_report_abs() argument 195 (buf[offset * 2] << 8) | buf[offset * 2 + 1]); in snd_caiaq_input_report_abs() 199 const unsigned char *buf, in snd_caiaq_input_read_analog() argument 206 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 2); in snd_caiaq_input_read_analog() 207 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 0); in snd_caiaq_input_read_analog() 208 snd_caiaq_input_report_abs(cdev, ABS_Z, buf, 1); in snd_caiaq_input_read_analog() 213 snd_caiaq_input_report_abs(cdev, ABS_X, buf, 0); in snd_caiaq_input_read_analog() 214 snd_caiaq_input_report_abs(cdev, ABS_Y, buf, 1); in snd_caiaq_input_read_analog() 215 snd_caiaq_input_report_abs(cdev, ABS_Z, buf, 2); in snd_caiaq_input_read_analog() 218 snd_caiaq_input_report_abs(cdev, ABS_HAT0X, buf, 4); in snd_caiaq_input_read_analog() [all …]
|
/sound/firewire/ |
D | fcp.c | 33 u8 *buf; in avc_general_set_sig_fmt() local 47 buf = kzalloc(8, GFP_KERNEL); in avc_general_set_sig_fmt() 48 if (buf == NULL) in avc_general_set_sig_fmt() 51 buf[0] = 0x00; /* AV/C CONTROL */ in avc_general_set_sig_fmt() 52 buf[1] = 0xff; /* UNIT */ in avc_general_set_sig_fmt() 54 buf[2] = 0x19; /* INPUT PLUG SIGNAL FORMAT */ in avc_general_set_sig_fmt() 56 buf[2] = 0x18; /* OUTPUT PLUG SIGNAL FORMAT */ in avc_general_set_sig_fmt() 57 buf[3] = 0xff & pid; /* plug id */ in avc_general_set_sig_fmt() 58 buf[4] = 0x90; /* EOH_1, Form_1, FMT. AM824 */ in avc_general_set_sig_fmt() 59 buf[5] = 0x07 & sfc; /* FDF-hi. AM824, frequency */ in avc_general_set_sig_fmt() [all …]
|
/sound/firewire/dice/ |
D | dice-proc.c | 114 } buf; in dice_proc_read() local 125 quadlets = min_t(u32, sections[1], sizeof(buf.global) / 4); in dice_proc_read() 126 if (dice_proc_read_mem(dice, &buf.global, sections[0], quadlets) < 0) in dice_proc_read() 130 buf.global.owner_hi >> 16, in dice_proc_read() 131 buf.global.owner_hi & 0xffff, buf.global.owner_lo); in dice_proc_read() 132 snd_iprintf(buffer, " notification: %08x\n", buf.global.notification); in dice_proc_read() 133 dice_proc_fixup_string(buf.global.nick_name, NICK_NAME_SIZE); in dice_proc_read() 134 snd_iprintf(buffer, " nick name: %s\n", buf.global.nick_name); in dice_proc_read() 137 buf.global.clock_select & CLOCK_SOURCE_MASK), in dice_proc_read() 139 (buf.global.clock_select & CLOCK_RATE_MASK) in dice_proc_read() [all …]
|
D | dice.h | 128 void *buf, unsigned int len); 131 void *buf, unsigned int len); 135 void *buf, unsigned int len) in snd_dice_transaction_write_global() argument 139 buf, len); in snd_dice_transaction_write_global() 143 void *buf, unsigned int len) in snd_dice_transaction_read_global() argument 147 buf, len); in snd_dice_transaction_read_global() 151 void *buf, unsigned int len) in snd_dice_transaction_write_tx() argument 154 buf, len); in snd_dice_transaction_write_tx() 158 void *buf, unsigned int len) in snd_dice_transaction_read_tx() argument 161 buf, len); in snd_dice_transaction_read_tx() [all …]
|
/sound/core/seq/ |
D | seq_midi_event.c | 39 static void note_decode(struct snd_seq_event *ev, unsigned char *buf); 40 static void one_param_decode(struct snd_seq_event *ev, unsigned char *buf); 41 static void pitchbend_decode(struct snd_seq_event *ev, unsigned char *buf); 42 static void two_param_decode(struct snd_seq_event *ev, unsigned char *buf); 43 static void songpos_decode(struct snd_seq_event *ev, unsigned char *buf); 52 void (*decode)(struct snd_seq_event *ev, unsigned char *buf); 83 static int extra_decode_ctrl14(struct snd_midi_event *dev, unsigned char *buf, int len, 85 static int extra_decode_xrpn(struct snd_midi_event *dev, unsigned char *buf, int count, 90 int (*decode)(struct snd_midi_event *dev, unsigned char *buf, int len, 111 dev->buf = kmalloc(bufsize, GFP_KERNEL); in snd_midi_event_new() [all …]
|
/sound/pci/hda/ |
D | hda_eld.c | 135 #define GRAB_BITS(buf, byte, lowbit, bits) \ argument 141 (buf[byte] >> (lowbit)) & ((1 << (bits)) - 1); \ 146 const unsigned char *buf) in hdmi_update_short_audio_desc() argument 151 val = GRAB_BITS(buf, 1, 0, 7); in hdmi_update_short_audio_desc() 157 a->channels = GRAB_BITS(buf, 0, 0, 3); in hdmi_update_short_audio_desc() 163 a->format = GRAB_BITS(buf, 0, 3, 4); in hdmi_update_short_audio_desc() 170 val = GRAB_BITS(buf, 2, 0, 3); in hdmi_update_short_audio_desc() 183 a->max_bitrate = GRAB_BITS(buf, 2, 0, 8); in hdmi_update_short_audio_desc() 203 a->profile = GRAB_BITS(buf, 2, 0, 3); in hdmi_update_short_audio_desc() 207 a->format = GRAB_BITS(buf, 2, 3, 5); in hdmi_update_short_audio_desc() [all …]
|
D | hda_sysfs.c | 32 char *buf) in power_on_acct_show() argument 36 return sprintf(buf, "%u\n", jiffies_to_msecs(codec->power_on_acct)); in power_on_acct_show() 41 char *buf) in power_off_acct_show() argument 45 return sprintf(buf, "%u\n", jiffies_to_msecs(codec->power_off_acct)); in power_off_acct_show() 55 char *buf) \ 58 return sprintf(buf, "0x%x\n", codec->field); \ 64 char *buf) \ 67 return sprintf(buf, "%s\n", \ 82 char *buf) in pin_configs_show() argument 88 len += sprintf(buf + len, "0x%02x 0x%08x\n", in pin_configs_show() [all …]
|
/sound/synth/emux/ |
D | emux_proc.c | 16 struct snd_info_buffer *buf) in snd_emux_proc_info_read() argument 24 snd_iprintf(buf, "Device: %s\n", emu->name); in snd_emux_proc_info_read() 25 snd_iprintf(buf, "Ports: %d\n", emu->num_ports); in snd_emux_proc_info_read() 26 snd_iprintf(buf, "Addresses:"); in snd_emux_proc_info_read() 28 snd_iprintf(buf, " %d:%d", emu->client, emu->ports[i]); in snd_emux_proc_info_read() 29 snd_iprintf(buf, "\n"); in snd_emux_proc_info_read() 30 snd_iprintf(buf, "Use Counter: %d\n", emu->used); in snd_emux_proc_info_read() 31 snd_iprintf(buf, "Max Voices: %d\n", emu->max_voices); in snd_emux_proc_info_read() 32 snd_iprintf(buf, "Allocated Voices: %d\n", emu->num_voices); in snd_emux_proc_info_read() 34 snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); in snd_emux_proc_info_read() [all …]
|
/sound/soc/codecs/ |
D | sigmadsp-i2c.c | 19 uint8_t *buf; in sigmadsp_write_i2c() local 22 buf = kzalloc(2 + len, GFP_KERNEL | GFP_DMA); in sigmadsp_write_i2c() 23 if (!buf) in sigmadsp_write_i2c() 26 put_unaligned_be16(addr, buf); in sigmadsp_write_i2c() 27 memcpy(buf + 2, data, len); in sigmadsp_write_i2c() 29 ret = i2c_master_send(control_data, buf, len + 2); in sigmadsp_write_i2c() 31 kfree(buf); in sigmadsp_write_i2c() 44 uint8_t buf[2]; in sigmadsp_read_i2c() local 47 put_unaligned_be16(addr, buf); in sigmadsp_read_i2c() 50 msgs[0].len = sizeof(buf); in sigmadsp_read_i2c() [all …]
|
D | rt5514-spi.c | 81 u8 buf[8]; in rt5514_spi_copy_work() local 101 rt5514_spi_burst_read(RT5514_BUFFER_VOICE_WP, (u8 *)&buf, in rt5514_spi_copy_work() 102 sizeof(buf)); in rt5514_spi_copy_work() 103 cur_wp = buf[0] | buf[1] << 8 | buf[2] << 16 | in rt5514_spi_copy_work() 104 buf[3] << 24; in rt5514_spi_copy_work() 157 u8 buf[8]; in rt5514_schedule_copy() local 169 rt5514_spi_burst_read(RT5514_BUFFER_VOICE_BASE, (u8 *)&buf, in rt5514_schedule_copy() 170 sizeof(buf)); in rt5514_schedule_copy() 171 rt5514_dsp->buf_base = buf[0] | buf[1] << 8 | buf[2] << 16 | in rt5514_schedule_copy() 172 buf[3] << 24; in rt5514_schedule_copy() [all …]
|
D | wm_adsp.c | 313 void *buf; member 319 struct wm_adsp_buf *buf = kzalloc(sizeof(*buf), GFP_KERNEL); in wm_adsp_buf_alloc() local 321 if (buf == NULL) in wm_adsp_buf_alloc() 324 buf->buf = vmalloc(len); in wm_adsp_buf_alloc() 325 if (!buf->buf) { in wm_adsp_buf_alloc() 326 kfree(buf); in wm_adsp_buf_alloc() 329 memcpy(buf->buf, src, len); in wm_adsp_buf_alloc() 332 list_add_tail(&buf->list, list); in wm_adsp_buf_alloc() 334 return buf; in wm_adsp_buf_alloc() 340 struct wm_adsp_buf *buf = list_first_entry(list, in wm_adsp_buf_free() local [all …]
|
/sound/drivers/opl4/ |
D | opl4_proc.c | 44 char* buf; in snd_opl4_mem_proc_read() local 46 buf = vmalloc(count); in snd_opl4_mem_proc_read() 47 if (!buf) in snd_opl4_mem_proc_read() 49 snd_opl4_read_memory(opl4, buf, pos, count); in snd_opl4_mem_proc_read() 50 if (copy_to_user(_buf, buf, count)) { in snd_opl4_mem_proc_read() 51 vfree(buf); in snd_opl4_mem_proc_read() 54 vfree(buf); in snd_opl4_mem_proc_read() 65 char *buf; in snd_opl4_mem_proc_write() local 67 buf = vmalloc(count); in snd_opl4_mem_proc_write() 68 if (!buf) in snd_opl4_mem_proc_write() [all …]
|
/sound/soc/intel/skylake/ |
D | skl-debug.c | 31 static ssize_t skl_print_pins(struct skl_module_pin *m_pin, char *buf, in skl_print_pins() argument 38 ret += scnprintf(buf + size, MOD_BUF - size, in skl_print_pins() 53 static ssize_t skl_print_fmt(struct skl_module_fmt *fmt, char *buf, in skl_print_fmt() argument 56 return scnprintf(buf + size, MOD_BUF - size, in skl_print_fmt() 73 char *buf; in module_read() local 76 buf = kzalloc(MOD_BUF, GFP_KERNEL); in module_read() 77 if (!buf) in module_read() 80 ret = scnprintf(buf, MOD_BUF, "Module:\n\tUUID %pUL\n\tModule id %d\n" in module_read() 85 ret += scnprintf(buf + ret, MOD_BUF - ret, in module_read() 89 ret += scnprintf(buf + ret, MOD_BUF - ret, in module_read() [all …]
|
/sound/hda/ |
D | hdac_sysfs.c | 22 char *buf) \ 25 return sprintf(buf, "0x%x\n", codec->type); \ 32 char *buf) \ 35 return sprintf(buf, "%s\n", \ 50 char *buf) in modalias_show() argument 52 return snd_hdac_codec_modalias(dev_to_hdac_dev(dev), buf, 256); in modalias_show() 90 struct widget_attribute *attr, char *buf); 93 const char *buf, size_t count); 110 char *buf) in widget_attr_show() argument 122 return wid_attr->show(codec, nid, wid_attr, buf); in widget_attr_show() [all …]
|
/sound/core/ |
D | memory.c | 28 char buf[256]; in copy_to_user_fromio() 31 if (c > sizeof(buf)) in copy_to_user_fromio() 32 c = sizeof(buf); in copy_to_user_fromio() 33 memcpy_fromio(buf, (void __iomem *)src, c); in copy_to_user_fromio() 34 if (copy_to_user(dst, buf, c)) in copy_to_user_fromio() 60 char buf[256]; in copy_from_user_toio() 63 if (c > sizeof(buf)) in copy_from_user_toio() 64 c = sizeof(buf); in copy_from_user_toio() 65 if (copy_from_user(buf, src, c)) in copy_from_user_toio() 67 memcpy_toio(dst, buf, c); in copy_from_user_toio()
|
D | jack.c | 177 char buf[128]; in sw_inject_enable_read() local 179 len = scnprintf(buf, sizeof(buf), "%s: %s\t\t%s: %i\n", "Jack", jack_kctl->kctl->id.name, in sw_inject_enable_read() 181 ret = simple_read_from_buffer(to, count, ppos, buf, len); in sw_inject_enable_read() 192 char buf[8] = { 0 }; in sw_inject_enable_write() local 194 ret = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, from, count); in sw_inject_enable_write() 195 err = kstrtoul(buf, 0, &enable); in sw_inject_enable_write() 216 char buf[8] = { 0 }; in jackin_inject_write() local 221 ret = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, from, count); in jackin_inject_write() 222 err = kstrtoul(buf, 0, &enable); in jackin_inject_write() 235 char buf[64]; in jack_kctl_id_read() local [all …]
|
/sound/soc/fsl/ |
D | imx-audmux.c | 61 char *buf; in audmux_read_file() local 77 buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in audmux_read_file() 78 if (!buf) in audmux_read_file() 81 ret = scnprintf(buf, PAGE_SIZE, "PDCR: %08x\nPTCR: %08x\n", in audmux_read_file() 85 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file() 89 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file() 93 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file() 97 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file() 100 ret += scnprintf(buf + ret, PAGE_SIZE - ret, "\n"); in audmux_read_file() 103 ret += scnprintf(buf + ret, PAGE_SIZE - ret, in audmux_read_file() [all …]
|
/sound/usb/ |
D | mixer_us16x08.c | 152 unsigned char *buf, int size) in snd_us16x08_recv_urb() argument 159 SND_US16X08_URB_METER_REQUESTTYPE, 0, 0, buf, size); in snd_us16x08_recv_urb() 167 static int snd_us16x08_send_urb(struct snd_usb_audio *chip, char *buf, int size) in snd_us16x08_send_urb() argument 171 0, 0, buf, size); in snd_us16x08_send_urb() 198 char buf[sizeof(route_msg)]; in snd_us16x08_route_put() local 209 memcpy(buf, route_msg, sizeof(route_msg)); in snd_us16x08_route_put() 214 buf[2] = 0x02; in snd_us16x08_route_put() 217 buf[2] = 0x03; in snd_us16x08_route_put() 222 buf[5] = (unsigned char) (val_org & 0x0f) + 1; in snd_us16x08_route_put() 224 buf[13] = index + 1; in snd_us16x08_route_put() [all …]
|
/sound/usb/line6/ |
D | pod.c | 180 const unsigned char *buf = pod->line6.buffer_message; in line6_pod_process_message() local 182 if (memcmp(buf, pod_version_header, sizeof(pod_version_header)) == 0) { in line6_pod_process_message() 183 pod->firmware_version = buf[13] * 100 + buf[14] * 10 + buf[15]; in line6_pod_process_message() 184 pod->device_id = ((int)buf[8] << 16) | ((int)buf[9] << 8) | in line6_pod_process_message() 185 (int) buf[10]; in line6_pod_process_message() 194 if (buf[0] != (LINE6_SYSEX_BEGIN | LINE6_CHANNEL_DEVICE) && in line6_pod_process_message() 195 buf[0] != (LINE6_SYSEX_BEGIN | LINE6_CHANNEL_UNKNOWN)) { in line6_pod_process_message() 198 if (memcmp(buf + 1, line6_midi_id, sizeof(line6_midi_id)) != 0) in line6_pod_process_message() 201 if (buf[5] == POD_SYSEX_SYSTEM && buf[6] == POD_MONITOR_LEVEL) { in line6_pod_process_message() 202 short value = ((int)buf[7] << 12) | ((int)buf[8] << 8) | in line6_pod_process_message() [all …]
|