Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | sound/pci/asihpi/asihpi.c |
static snd_pcm_uframes_t
snd_card_asihpi_playback_pointer(struct snd_pcm_substream *substream) {
struct snd_pcm_runtime *runtime = substream->runtime;
struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
snd_pcm_uframes_t ptr;
char name[16];
snd_pcm_debug_name(substream, name, sizeof(name));
ptr = by... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c | static u64 snd_card_asihpi_playback_formats(struct snd_card_asihpi *asihpi,
u32 h_stream) {
struct hpi_format hpi_format;
u16 format;
u16 err;
u32 h_control;
u32 sample_rate = 48000;
u64 formats = 0;
err = hpi_mixer_get_control(asihpi->h_mixer, HPI_SOURCENODE_C... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_card_asihpi_playback_close(struct snd_pcm_substream *substream) {
struct snd_pcm_runtime *runtime = substream->runtime;
struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
hpi_handle_error(hpi_outstream_close(dpcm->h_stream));
snd_printdd("playback close\n");
return 0;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_card_asihpi_capture_close(struct snd_pcm_substream *substream) {
struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data;
hpi_handle_error(hpi_instream_close(dpcm->h_stream));
return 0;
} | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c | static int snd_asihpi_volume_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo) {
u32 h_control = kcontrol->private_value;
u32 count;
u16 err;
short min_gain_mB;
short max_gain_mB;
short step_gain_mB;
err = hpi_volume_query_range(h_control, &min_gain_m... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_asihpi_volume_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) {
u32 h_control = kcontrol->private_value;
short an_gain_mB[HPI_MAX_CHANNELS];
hpi_handle_error(hpi_volume_get_gain(h_control, an_gain_mB));
ucontrol->value.integer.value[0] = ... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_asihpi_volume_mute_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) {
u32 h_control = kcontrol->private_value;
u32 mute;
hpi_handle_error(hpi_volume_get_mute(h_control, &mute));
ucontrol->value.integer.value[0] = mute ? 0 : 1;
retu... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int
snd_asihpi_aesebu_rx_format_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) {
return snd_asihpi_aesebu_format_put(kcontrol, ucontrol,
hpi_aesebu_receiver_set_format);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int
snd_asihpi_aesebu_tx_format_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) {
return snd_asihpi_aesebu_format_put(kcontrol, ucontrol,
hpi_aesebu_transmitter_set_format);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_asihpi_aesebu_tx_add(struct snd_card_asihpi *asihpi,
struct hpi_control *hpi_ctl) {
struct snd_card *card = asihpi->card;
struct snd_kcontrol_new snd_control;
asihpi_ctl_init(&snd_control, hpi_ctl, "Format");
snd_control.access = SNDRV_CTL_ELEM_ACCESS_READWR... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c | static int snd_asihpi_tuner_band_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) {
u32 h_control = kcontrol->private_value;
u16 band, idx;
u16 tuner_bands[HPI_TUNER_BAND_LAST];
__always_unused u32 num_bands;
num_bands =
asihpi_tuner_band_que... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c | static int snd_asihpi_tuner_band_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) {
u32 h_control = kcontrol->private_value;
unsigned int idx;
u16 band;
u16 tuner_bands[HPI_TUNER_BAND_LAST];
__always_unused u32 num_bands;
num_bands =
asihpi... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_asihpi_mux_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo) {
u16 src_node_type, src_node_index;
u32 h_control = kcontrol->private_value;
uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
uinfo->count = 1;
uinfo->value.enumerated.items = snd_card... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_asihpi_cmode_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) {
u32 h_control = kcontrol->private_value;
u16 mode;
if (hpi_channel_mode_get(h_control, &mode))
mode = 1;
ucontrol->value.enumerated.item[0] = mode - 1;
return 0;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c | static int snd_asihpi_clklocal_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo) {
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
uinfo->count = 1;
uinfo->value.integer.min = 8000;
uinfo->value.integer.max = 192000;
uinfo->value.integer.step = 100;
return ... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_asihpi_clklocal_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol) {
u32 h_control = kcontrol->private_value;
u32 rate;
u16 e;
e = hpi_sample_clock_get_local_rate(h_control, &rate);
if (!e)
ucontrol->value.integer.value[0] = rate;
... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c |
static int snd_asihpi_hpi_release(struct snd_hwdep *hw, struct file *file) {
if (enable_hpi_hwdep)
return asihpi_hpi_release(file);
else
return -ENODEV;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/asihpi.c | static int snd_asihpi_hpi_new(struct snd_card_asihpi *asihpi, int device) {
struct snd_hwdep *hw;
int err;
err = snd_hwdep_new(asihpi->card, "HPI", device, &hw);
if (err < 0)
return err;
strcpy(hw->name, "asihpi (HPI)");
hw->iface = SNDRV_HWDEP_IFACE_LAST;
hw->ops.open = snd_asihpi_hpi_open;
hw->op... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6000.c | static void instream_message(struct hpi_adapter_obj *pao,
struct hpi_message *phm,
struct hpi_response *phr) {
switch (phm->function) {
case HPI_ISTREAM_HOSTBUFFER_ALLOC:
case HPI_ISTREAM_HOSTBUFFER_FREE:
phr->error = HPI_ERROR_INVALID_FUNC;
brea... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6000.c | static void subsys_create_adapter(struct hpi_message *phm,
struct hpi_response *phr) {
struct hpi_adapter_obj ao;
struct hpi_adapter_obj *pao;
u32 os_error_code;
u16 err = 0;
u32 dsp_index = 0;
HPI_DEBUG_LOG(VERBOSE, "subsys_create_adapter\n");
memset(&ao, 0, sizeof(ao... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6000.c |
static void adapter_delete(struct hpi_adapter_obj *pao, struct hpi_message *phm,
struct hpi_response *phr) {
delete_adapter_obj(pao);
hpi_delete_adapter(pao);
phr->error = 0;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6000.c | static void hpi_write_word(struct dsp_obj *pdo, u32 address, u32 data) {
if (hpi_set_address(pdo, address))
return;
iowrite32(data, pdo->prHPI_data);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6000.c | /* write a block of 32bit words to the DSP HPI port using auto-inc mode */
static void hpi_write_block(struct dsp_obj *pdo, u32 address, u32 *pdata,
u32 length) {
u16 length16 = length - 1;
if (length == 0)
return;
if (hpi_set_address(pdo, address))
return;
iowrite32_rep(p... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6000.c | static void hpi_read_block(struct dsp_obj *pdo, u32 address, u32 *pdata,
u32 length) {
u16 length16 = length - 1;
if (length == 0)
return;
if (hpi_set_address(pdo, address))
return;
ioread32_rep(pdo->prHPI_data_auto_inc, pdata, length16);
/* take care of errata in revB D... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6000.c |
static u16 hpi6000_dsp_block_read32(struct hpi_adapter_obj *pao, u16 dsp_index,
u32 hpi_address, u32 *dest, u32 count) {
struct hpi_hw_obj *phw = pao->priv;
struct dsp_obj *pdo = &phw->ado[dsp_index];
u32 time_out = PCI_TIMEOUT;
int c6711_burst_size = 16;
u32 local_hpi_add... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c | static void subsys_message(struct hpi_adapter_obj *pao, struct hpi_message *phm,
struct hpi_response *phr) {
switch (phm->function) {
case HPI_SUBSYS_CREATE_ADAPTER:
subsys_create_adapter(phm, phr);
break;
default:
phr->error = HPI_ERROR_INVALID_FUNC;
break;
}
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c | static void _HPI_6205(struct hpi_adapter_obj *pao, struct hpi_message *phm,
struct hpi_response *phr) {
if (pao && (pao->dsp_crashed >= 10) &&
(phm->function != HPI_ADAPTER_DEBUG_READ)) {
hpi_init_response(phr, phm->object, phm->function, HPI_ERROR_DSP_HARDWARE);
HPI_DEBUG_LOG(WAR... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c | void HPI_6205(struct hpi_message *phm, struct hpi_response *phr) {
struct hpi_adapter_obj *pao = NULL;
if (phm->object != HPI_OBJ_SUBSYSTEM) {
pao = hpi_find_adapter(phm->adapter_index);
} else {
/* subsys messages don't address an adapter */
_HPI_6205(NULL, phm, phr);
return;
}
if (pao)
... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c | static void adapter_delete(struct hpi_adapter_obj *pao, struct hpi_message *phm,
struct hpi_response *phr) {
struct hpi_hw_obj *phw;
if (!pao) {
phr->error = HPI_ERROR_INVALID_OBJ_INDEX;
return;
}
phw = pao->priv;
/* Reset C6713 #1 */
boot_loader_write_mem32(pao, 0, C620... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c | static void outstream_host_buffer_free(struct hpi_adapter_obj *pao,
struct hpi_message *phm,
struct hpi_response *phr) {
struct hpi_hw_obj *phw = pao->priv;
u32 command = phm->u.d.u.buffer.command;
if (phw->outstream_host_buffer_size[p... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c |
static void outstream_start(struct hpi_adapter_obj *pao,
struct hpi_message *phm, struct hpi_response *phr) {
hw_message(pao, phm, phr);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c | static u16 boot_loader_test_internal_memory(struct hpi_adapter_obj *pao,
int dsp_index) {
int err = 0;
if (dsp_index == 0) {
/* 64K prog mem */
err = boot_loader_test_memory(pao, dsp_index, 0x00000000, 0x10000);
if (!err)
/* 64K data mem */
err = ... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c | static u16 boot_loader_test_external_memory(struct hpi_adapter_obj *pao,
int dsp_index) {
u32 dRAM_start_address = 0;
u32 dRAM_size = 0;
if (dsp_index == 0) {
if (pao->pci.pci_dev->subsystem_device == 0x5000) {
/* DSP 0 is always C6205 */
dRAM_start_ad... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpi6205.c | static void hw_message(struct hpi_adapter_obj *pao, struct hpi_message *phm,
struct hpi_response *phr) {
u16 err = 0;
hpios_dsplock_lock(pao);
err = message_response_sequence(pao, phm, phr);
if (err) {
/* something failed in the HPI/DSP interface */
if (err >= HPI_ERROR_BACKEN... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpicmn.c |
void hpi_delete_adapter(struct hpi_adapter_obj *pao) {
if (!pao->type) {
HPI_DEBUG_LOG(ERROR, "removing null adapter?\n");
return;
}
hpios_alistlock_lock(&adapters);
if (adapters.adapter[pao->index].type)
adapters.gw_num_adapters--;
memset(&adapters.adapter[pao->index], 0, sizeof(adapters.adapte... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpicmn.c | static void subsys_get_adapter(struct hpi_message *phm,
struct hpi_response *phr) {
int count = phm->obj_index;
u16 index = 0;
for (index = 0; index < HPI_MAX_ADAPTERS; index++) {
if (adapters.adapter[index].type) {
if (!count)
break;
count--;
}
}
i... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpicmn.c |
short hpi_check_control_cache(struct hpi_control_cache *p_cache,
struct hpi_message *phm,
struct hpi_response *phr) {
struct hpi_control_cache_info *pI;
if (!find_control(phm->obj_index, p_cache, &pI)) {
HPI_DEBUG_LOG(VERBOSE, "HPICMN find_control() ... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpicmn.c | struct hpi_control_cache *hpi_alloc_control_cache(const u32 control_count,
const u32 size_in_bytes,
u8 *p_dsp_control_buffer) {
struct hpi_control_cache *p_cache = kmalloc(sizeof(*p_cache), GFP_KERNEL);
if (!p_cache)... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpicmn.c |
void hpi_free_control_cache(struct hpi_control_cache *p_cache) {
if (p_cache) {
kfree(p_cache->p_info);
kfree(p_cache);
}
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpicmn.c |
static void subsys_message(struct hpi_message *phm, struct hpi_response *phr) {
hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, phm->function, 0);
switch (phm->function) {
case HPI_SUBSYS_OPEN:
case HPI_SUBSYS_CLOSE:
case HPI_SUBSYS_DRIVER_UNLOAD:
break;
case HPI_SUBSYS_DRIVER_LOAD:
wipe_adapter_list();... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpidebug.c |
void hpi_debug_data(u16 *pdata, u32 len) {
u32 i;
int j;
int k;
int lines;
int cols = 8;
lines = DIV_ROUND_UP(len, cols);
if (lines > 8)
lines = 8;
for (i = 0, j = 0; j < lines; j++) {
printk(KERN_DEBUG "%p:", (pdata + i));
for (k = 0; k < cols && i < len; i++, k++)
printk(KERN_CON... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpidspcd.c | void hpi_dsp_code_close(struct dsp_code *dsp_code) {
HPI_DEBUG_LOG(DEBUG, "dsp code closed\n");
release_firmware(dsp_code->pvt->firmware);
kfree(dsp_code->pvt);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
static void hpi_msg_to_format(struct hpi_format *pF,
struct hpi_msg_format *pMF) {
pF->sample_rate = pMF->sample_rate;
pF->bit_rate = pMF->bit_rate;
pF->attributes = pMF->attributes;
pF->channels = pMF->channels;
pF->format = pMF->format;
pF->mode_legacy = 0;
pF->unused = 0;... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
void hpi_stream_response_to_legacy(struct hpi_stream_res *pSR) {
pSR->u.legacy_stream_info.auxiliary_data_available =
pSR->u.stream_info.auxiliary_data_available;
pSR->u.legacy_stream_info.state = pSR->u.stream_info.state;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_subsys_get_adapter(int iterator, u32 *padapter_index,
u16 *pw_adapter_type) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM,
HPI_SUBSYS_GET_ADAPTER);
hm.obj_index = (u16)iterator;
hpi_send_re... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_adapter_set_mode(u16 adapter_index, u32 adapter_mode) {
return hpi_adapter_set_mode_ex(adapter_index, adapter_mode,
HPI_ADAPTER_MODE_SET);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_adapter_get_module_by_index(u16 adapter_index, u16 module_index,
u16 *pw_num_outputs, u16 *pw_num_inputs,
u16 *pw_version, u32 *pserial_number,
u16 *pw_module_type, u32 *ph_module) {
struct hpi_message... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_adapter_set_property(u16 adapter_index, u16 property, u16 parameter1,
u16 parameter2) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_ADAPTER,
HPI_ADAPTER_SET_PROPERTY);
hm.adapter_index = adapter_inde... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_outstream_start(u32 h_outstream) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, HPI_OSTREAM_START);
if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index))
return HPI_ERROR_INVALID_HANDLE;
hpi_send_recv(&hm, &hr);
return hr... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_outstream_wait_start(u32 h_outstream) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM, HPI_OSTREAM_WAIT_START);
if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index))
return HPI_ERROR_INVALID_HANDLE;
hpi_send_recv(&hm, &hr);
... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_outstream_set_velocity(u32 h_outstream, short velocity) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
HPI_OSTREAM_SET_VELOCITY);
if (hpi_handle_indexes(h_outstream, &hm.adapter_index, &hm.obj_index))
return HPI_ERR... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_outstream_group_get_map(u32 h_outstream, u32 *poutstream_map,
u32 *pinstream_map) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_OSTREAM,
HPI_OSTREAM_GROUP_GETMAP);
if (hpi_handle_indexes(h_outstr... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_instream_get_info_ex(u32 h_instream, u16 *pw_state, u32 *pbuffer_size,
u32 *pdata_recorded, u32 *psamples_recorded,
u32 *pauxiliary_data_recorded) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_instream_ancillary_write(u32 h_instream,
const struct hpi_anc_frame *p_anc_frame_buffer,
u32 anc_frame_buffer_size_in_bytes,
u32 number_of_ancillary_frames_to_write) {
struct hpi_message hm;
struct hpi_respon... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_instream_host_buffer_get_info(
u32 h_instream, u8 **pp_buffer, struct hpi_hostbuffer_status **pp_status) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM,
HPI_ISTREAM_HOSTBUFFER_GET_INFO);
if (hpi_handle_indexes(h_inst... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_instream_group_add(u32 h_instream, u32 h_stream) {
struct hpi_message hm;
struct hpi_response hr;
u16 adapter;
char c_obj_type;
hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, HPI_ISTREAM_GROUP_ADD);
hr.error = 0;
if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index))
re... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_mixer_get_control_by_index(u32 h_mixer, u16 control_index,
u16 *pw_src_node_type,
u16 *pw_src_node_index,
u16 *pw_dst_node_type,
u16 *pw_dst_node_index, u16 *pw_control_ty... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
static u16 hpi_control_param_set(const u32 h_control, const u16 attrib,
const u32 param1, const u32 param2) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, HPI_CONTROL_SET_STATE);
if (hpi_handle_indexes(h_control, &hm.adapt... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
static u16 hpi_control_log_set2(u32 h_control, u16 attrib, short sv0,
short sv1) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, HPI_CONTROL_SET_STATE);
if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
static u16 hpi_control_query(const u32 h_control, const u16 attrib,
const u32 index, const u32 param, u32 *psetting) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, HPI_CONTROL_GET_INFO);
if (hpi_handle_indexes(h_control, &hm.a... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_aesebu_receiver_query_format(const u32 h_aes_rx, const u32 index,
u16 *pw_format) {
u32 qr;
u16 err;
err = hpi_control_query(h_aes_rx, HPI_AESEBURX_FORMAT, index, 0, &qr);
*pw_format = (u16)qr;
return err;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_aesebu_receiver_get_format(u32 h_control, u16 *pw_format) {
u16 err;
u32 param;
err = hpi_control_param1_get(h_control, HPI_AESEBURX_FORMAT, ¶m);
if (!err && pw_format)
*pw_format = (u16)param;
return err;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_aesebu_receiver_get_sample_rate(u32 h_control, u32 *psample_rate) {
return hpi_control_param1_get(h_control, HPI_AESEBURX_SAMPLERATE,
psample_rate);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_aesebu_receiver_get_user_data(u32 h_control, u16 index, u16 *pw_data) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, HPI_CONTROL_GET_STATE);
if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
return HPI_ERROR_INVALID_HANDLE;
... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_aesebu_transmitter_set_sample_rate(u32 h_control, u32 sample_rate) {
return hpi_control_param_set(h_control, HPI_AESEBUTX_SAMPLERATE, sample_rate,
0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_aesebu_transmitter_set_channel_status(u32 h_control, u16 index,
u16 data) {
return hpi_control_param_set(h_control, HPI_AESEBUTX_CHANNELSTATUS, index,
data);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_aesebu_transmitter_query_format(const u32 h_aes_tx, const u32 index,
u16 *pw_format) {
u32 qr;
u16 err;
err = hpi_control_query(h_aes_tx, HPI_AESEBUTX_FORMAT, index, 0, &qr);
*pw_format = (u16)qr;
return err;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_aesebu_transmitter_set_format(u32 h_control, u16 output_format) {
return hpi_control_param_set(h_control, HPI_AESEBUTX_FORMAT, output_format,
0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_bitstream_set_clock_edge(u32 h_control, u16 edge_type) {
return hpi_control_param_set(h_control, HPI_BITSTREAM_CLOCK_EDGE, edge_type,
0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_bitstream_set_data_polarity(u32 h_control, u16 polarity) {
return hpi_control_param_set(h_control, HPI_BITSTREAM_DATA_POLARITY, polarity,
0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_bitstream_get_activity(u32 h_control, u16 *pw_clk_activity,
u16 *pw_data_activity) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, HPI_CONTROL_GET_STATE);
if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_in... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_cobranet_hmi_read(u32 h_control, u32 hmi_address, u32 max_byte_count,
u32 *pbyte_count, u8 *pb_data) {
struct hpi_msg_cobranet_hmiread hm;
struct hpi_res_cobranet_hmiread hr;
hpi_init_message_responseV1(&hm.h, sizeof(hm), &hr.h, sizeof(hr),
HPI_OBJ... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_compander_get_enable(u32 h_control, u32 *enable) {
return hpi_control_param1_get(h_control, HPI_GENERIC_ENABLE, enable);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_compander_get_makeup_gain(u32 h_control, short *makeup_gain0_01dB) {
return hpi_control_log_get2(h_control, HPI_COMPANDER_MAKEUPGAIN,
makeup_gain0_01dB, NULL);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_compander_set_decay_time_constant(u32 h_control, unsigned int index,
u32 decay) {
return hpi_control_param_set(h_control, HPI_COMPANDER_DECAY, decay, index);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_compander_set_ratio(u32 h_control, u32 index, u32 ratio100) {
return hpi_control_param_set(h_control, HPI_COMPANDER_RATIO, ratio100, index);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_meter_set_peak_ballistics(u32 h_control, u16 attack, u16 decay) {
return hpi_control_param_set(h_control, HPI_METER_PEAK_BALLISTICS, attack,
decay);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_microphone_set_phantom_power(u32 h_control, u16 on_off) {
return hpi_control_param_set(h_control, HPI_MICROPHONE_PHANTOM_POWER,
(u32)on_off, 0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_multiplexer_get_source(u32 h_control, u16 *source_node_type,
u16 *source_node_index) {
u32 node, index;
u16 err =
hpi_control_param2_get(h_control, HPI_MULTIPLEXER_SOURCE, &node, &index);
if (source_node_type)
*source_node_type = (u16)node;
if (source_node_index... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_multiplexer_query_source(u32 h_control, u16 index,
u16 *source_node_type,
u16 *source_node_index) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, HPI_CONTROL_GET_STATE);
if (hpi_handl... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_parametric_eq_get_info(u32 h_control, u16 *pw_number_of_bands,
u16 *pw_on_off) {
u32 oB = 0;
u32 oO = 0;
u16 error = 0;
error =
hpi_control_param2_get(h_control, HPI_EQUALIZER_NUM_FILTERS, &oO, &oB);
if (pw_number_of_bands)
*pw_number_of_bands = (u16)oB;
if... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_sample_clock_set_source(u32 h_control, u16 source) {
return hpi_control_param_set(h_control, HPI_SAMPLECLOCK_SOURCE, source, 0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_sample_clock_query_local_rate(const u32 h_clock, const u32 index,
u32 *prate) {
return hpi_control_query(h_clock, HPI_SAMPLECLOCK_LOCAL_SAMPLERATE, index, 0,
prate);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_sample_clock_get_sample_rate(u32 h_control, u32 *psample_rate) {
u16 err = 0;
u32 sample_rate = 0;
err = hpi_control_param1_get(h_control, HPI_SAMPLECLOCK_SAMPLERATE,
&sample_rate);
if (!err)
if (psample_rate)
*psample_rate = sample_rate;
return err;
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_tone_detector_set_event_enable(u32 h_control, u32 event_enable) {
return hpi_control_param_set(h_control, HPI_GENERIC_EVENT_ENABLE,
(u32)event_enable, 0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_silence_detector_get_state(u32 h_control, u32 *state) {
return hpi_control_param1_get(h_control, HPI_SILENCEDETECTOR_STATE, state);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_silence_detector_set_event_enable(u32 h_control, u32 event_enable) {
return hpi_control_param_set(h_control, HPI_GENERIC_EVENT_ENABLE,
event_enable, 0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_silence_detector_set_threshold(u32 h_control, int threshold) {
return hpi_control_param_set(h_control, HPI_SILENCEDETECTOR_THRESHOLD,
threshold, 0);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_tuner_get_frequency(u32 h_control, u32 *pw_freq_ink_hz) {
return hpi_control_param1_get(h_control, HPI_TUNER_FREQ, pw_freq_ink_hz);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_tuner_get_rf_level(u32 h_control, short *pw_level) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, HPI_CONTROL_GET_STATE);
if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
return HPI_ERROR_INVALID_HANDLE;
hm.u.cu.attribute... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_tuner_query_deemphasis(const u32 h_tuner, const u32 index,
const u16 band, u32 *pdeemphasis) {
return hpi_control_query(h_tuner, HPI_TUNER_DEEMPHASIS, index, band,
pdeemphasis);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_tuner_get_hd_radio_signal_quality(u32 h_control, u32 *pquality) {
return hpi_control_param1_get(h_control, HPI_TUNER_HDRADIO_SIGNAL_QUALITY,
pquality);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_tuner_get_rds(u32 h_control, char *p_data) {
struct hpi_message hm;
struct hpi_response hr;
hpi_init_message_response(&hm, &hr, HPI_OBJ_CONTROL, HPI_CONTROL_GET_STATE);
if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
return HPI_ERROR_INVALID_HANDLE;
hm.u.c.attribute = HPI_TU... | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_pad_get_comment(u32 h_control, char *psz_string,
const u32 data_length) {
return hpi_control_get_string(h_control, HPI_PAD_COMMENT, psz_string,
data_length);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_pad_get_rdsPI(u32 h_control, u32 *ppI) {
return hpi_control_param1_get(h_control, HPI_PAD_PROGRAM_ID, ppI);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_volume_set_gain(u32 h_control, short an_log_gain[HPI_MAX_CHANNELS]) {
return hpi_control_log_set2(h_control, HPI_VOLUME_GAIN, an_log_gain[0],
an_log_gain[1]);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpifunc.c |
u16 hpi_volume_get_gain(u32 h_control, short an_log_gain[HPI_MAX_CHANNELS]) {
return hpi_control_log_get2(h_control, HPI_VOLUME_GAIN, &an_log_gain[0],
&an_log_gain[1]);
} | [
0,
0
] |
Linux Kernel | sound/pci/asihpi/hpimsginit.c | static void hpi_init_message(struct hpi_message *phm, u16 object,
u16 function) {
u16 size;
if ((object > 0) && (object <= HPI_OBJ_MAXINDEX)) {
object = array_index_nospec(object, HPI_OBJ_MAXINDEX + 1);
size = msg_size[object];
} else {
size = sizeof(*phm);
}
memset(... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpimsginit.c | void hpi_init_response(struct hpi_response *phr, u16 object, u16 function,
u16 error) {
u16 size;
if ((object > 0) && (object <= HPI_OBJ_MAXINDEX)) {
object = array_index_nospec(object, HPI_OBJ_MAXINDEX + 1);
size = res_size[object];
} else {
size = sizeof(*phr);
}
memset(... | [
1,
0
] |
Linux Kernel | sound/pci/asihpi/hpimsginit.c | void hpi_init_message_response(struct hpi_message *phm,
struct hpi_response *phr, u16 object,
u16 function) {
hpi_init_message(phm, object, function);
hpi_init_response(phr, object, function, HPI_ERROR_PROCESSING_MESSAGE);
} | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.