Lines Matching defs:h_control

1308 u16 hpi_control_param_set(const u32 h_control, const u16 attrib,
1316 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1325 static u16 hpi_control_log_set2(u32 h_control, u16 attrib, short sv0,
1333 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1343 u16 hpi_control_param_get(const u32 h_control, const u16 attrib, u32 param1,
1351 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1370 static u16 hpi_control_log_get2(u32 h_control, u16 attrib, short *sv0,
1377 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1389 u16 hpi_control_query(const u32 h_control, const u16 attrib, const u32 index,
1397 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1410 static u16 hpi_control_get_string(const u32 h_control, const u16 attribute,
1427 if (hpi_handle_indexes(h_control, &hm.adapter_index,
1480 u16 hpi_aesebu_receiver_set_format(u32 h_control, u16 format)
1482 return hpi_control_param_set(h_control, HPI_AESEBURX_FORMAT, format,
1486 u16 hpi_aesebu_receiver_get_format(u32 h_control, u16 *pw_format)
1491 err = hpi_control_param1_get(h_control, HPI_AESEBURX_FORMAT, &param);
1498 u16 hpi_aesebu_receiver_get_sample_rate(u32 h_control, u32 *psample_rate)
1500 return hpi_control_param1_get(h_control, HPI_AESEBURX_SAMPLERATE,
1504 u16 hpi_aesebu_receiver_get_user_data(u32 h_control, u16 index, u16 *pw_data)
1510 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1522 u16 hpi_aesebu_receiver_get_channel_status(u32 h_control, u16 index,
1529 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1541 u16 hpi_aesebu_receiver_get_error_status(u32 h_control, u16 *pw_error_data)
1546 err = hpi_control_param1_get(h_control, HPI_AESEBURX_ERRORSTATUS,
1553 u16 hpi_aesebu_transmitter_set_sample_rate(u32 h_control, u32 sample_rate)
1555 return hpi_control_param_set(h_control, HPI_AESEBUTX_SAMPLERATE,
1559 u16 hpi_aesebu_transmitter_set_user_data(u32 h_control, u16 index, u16 data)
1561 return hpi_control_param_set(h_control, HPI_AESEBUTX_USERDATA, index,
1565 u16 hpi_aesebu_transmitter_set_channel_status(u32 h_control, u16 index,
1568 return hpi_control_param_set(h_control, HPI_AESEBUTX_CHANNELSTATUS,
1572 u16 hpi_aesebu_transmitter_get_channel_status(u32 h_control, u16 index,
1589 u16 hpi_aesebu_transmitter_set_format(u32 h_control, u16 output_format)
1591 return hpi_control_param_set(h_control, HPI_AESEBUTX_FORMAT,
1595 u16 hpi_aesebu_transmitter_get_format(u32 h_control, u16 *pw_output_format)
1600 err = hpi_control_param1_get(h_control, HPI_AESEBUTX_FORMAT, &param);
1607 u16 hpi_bitstream_set_clock_edge(u32 h_control, u16 edge_type)
1609 return hpi_control_param_set(h_control, HPI_BITSTREAM_CLOCK_EDGE,
1613 u16 hpi_bitstream_set_data_polarity(u32 h_control, u16 polarity)
1615 return hpi_control_param_set(h_control, HPI_BITSTREAM_DATA_POLARITY,
1619 u16 hpi_bitstream_get_activity(u32 h_control, u16 *pw_clk_activity,
1626 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1648 u16 hpi_channel_mode_set(u32 h_control, u16 mode)
1650 return hpi_control_param_set(h_control, HPI_CHANNEL_MODE_MODE, mode,
1654 u16 hpi_channel_mode_get(u32 h_control, u16 *mode)
1657 u16 err = hpi_control_param1_get(h_control,
1664 u16 hpi_cobranet_hmi_write(u32 h_control, u32 hmi_address, u32 byte_count,
1673 if (hpi_handle_indexes(h_control, &hm.h.adapter_index,
1690 u16 hpi_cobranet_hmi_read(u32 h_control, u32 hmi_address, u32 max_byte_count,
1699 if (hpi_handle_indexes(h_control, &hm.h.adapter_index,
1727 u16 hpi_cobranet_hmi_get_status(u32 h_control, u32 *pstatus,
1735 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1754 u16 hpi_cobranet_get_ip_address(u32 h_control, u32 *pdw_ip_address)
1760 err = hpi_cobranet_hmi_read(h_control,
1775 u16 hpi_cobranet_set_ip_address(u32 h_control, u32 dw_ip_address)
1784 err = hpi_cobranet_hmi_write(h_control,
1791 u16 hpi_cobranet_get_static_ip_address(u32 h_control, u32 *pdw_ip_address)
1796 err = hpi_cobranet_hmi_read(h_control,
1811 u16 hpi_cobranet_set_static_ip_address(u32 h_control, u32 dw_ip_address)
1820 err = hpi_cobranet_hmi_write(h_control,
1827 u16 hpi_cobranet_get_macaddress(u32 h_control, u32 *p_mac_msbs,
1834 err = hpi_cobranet_hmi_read(h_control,
1844 err = hpi_cobranet_hmi_read(h_control,
1862 u16 hpi_compander_set_enable(u32 h_control, u32 enable)
1864 return hpi_control_param_set(h_control, HPI_GENERIC_ENABLE, enable,
1868 u16 hpi_compander_get_enable(u32 h_control, u32 *enable)
1870 return hpi_control_param1_get(h_control, HPI_GENERIC_ENABLE, enable);
1873 u16 hpi_compander_set_makeup_gain(u32 h_control, short makeup_gain0_01dB)
1875 return hpi_control_log_set2(h_control, HPI_COMPANDER_MAKEUPGAIN,
1879 u16 hpi_compander_get_makeup_gain(u32 h_control, short *makeup_gain0_01dB)
1881 return hpi_control_log_get2(h_control, HPI_COMPANDER_MAKEUPGAIN,
1885 u16 hpi_compander_set_attack_time_constant(u32 h_control, unsigned int index,
1888 return hpi_control_param_set(h_control, HPI_COMPANDER_ATTACK, attack,
1892 u16 hpi_compander_get_attack_time_constant(u32 h_control, unsigned int index,
1895 return hpi_control_param_get(h_control, HPI_COMPANDER_ATTACK, 0,
1899 u16 hpi_compander_set_decay_time_constant(u32 h_control, unsigned int index,
1902 return hpi_control_param_set(h_control, HPI_COMPANDER_DECAY, decay,
1906 u16 hpi_compander_get_decay_time_constant(u32 h_control, unsigned int index,
1909 return hpi_control_param_get(h_control, HPI_COMPANDER_DECAY, 0, index,
1914 u16 hpi_compander_set_threshold(u32 h_control, unsigned int index,
1922 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1933 u16 hpi_compander_get_threshold(u32 h_control, unsigned int index,
1941 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1952 u16 hpi_compander_set_ratio(u32 h_control, u32 index, u32 ratio100)
1954 return hpi_control_param_set(h_control, HPI_COMPANDER_RATIO, ratio100,
1958 u16 hpi_compander_get_ratio(u32 h_control, u32 index, u32 *ratio100)
1960 return hpi_control_param_get(h_control, HPI_COMPANDER_RATIO, 0, index,
1964 u16 hpi_level_query_range(u32 h_control, short *min_gain_01dB,
1972 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
1991 u16 hpi_level_set_gain(u32 h_control, short an_gain0_01dB[HPI_MAX_CHANNELS]
1994 return hpi_control_log_set2(h_control, HPI_LEVEL_GAIN,
1998 u16 hpi_level_get_gain(u32 h_control, short an_gain0_01dB[HPI_MAX_CHANNELS]
2001 return hpi_control_log_get2(h_control, HPI_LEVEL_GAIN,
2011 u16 hpi_meter_get_peak(u32 h_control, short an_peakdB[HPI_MAX_CHANNELS]
2021 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2036 u16 hpi_meter_get_rms(u32 h_control, short an_rmsdB[HPI_MAX_CHANNELS]
2046 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2062 u16 hpi_meter_set_rms_ballistics(u32 h_control, u16 attack, u16 decay)
2064 return hpi_control_param_set(h_control, HPI_METER_RMS_BALLISTICS,
2068 u16 hpi_meter_get_rms_ballistics(u32 h_control, u16 *pn_attack, u16 *pn_decay)
2074 error = hpi_control_param2_get(h_control, HPI_METER_RMS_BALLISTICS,
2085 u16 hpi_meter_set_peak_ballistics(u32 h_control, u16 attack, u16 decay)
2087 return hpi_control_param_set(h_control, HPI_METER_PEAK_BALLISTICS,
2091 u16 hpi_meter_get_peak_ballistics(u32 h_control, u16 *pn_attack,
2098 error = hpi_control_param2_get(h_control, HPI_METER_PEAK_BALLISTICS,
2109 u16 hpi_microphone_set_phantom_power(u32 h_control, u16 on_off)
2111 return hpi_control_param_set(h_control, HPI_MICROPHONE_PHANTOM_POWER,
2115 u16 hpi_microphone_get_phantom_power(u32 h_control, u16 *pw_on_off)
2119 error = hpi_control_param1_get(h_control,
2126 u16 hpi_multiplexer_set_source(u32 h_control, u16 source_node_type,
2129 return hpi_control_param_set(h_control, HPI_MULTIPLEXER_SOURCE,
2133 u16 hpi_multiplexer_get_source(u32 h_control, u16 *source_node_type,
2137 u16 err = hpi_control_param2_get(h_control,
2147 u16 hpi_multiplexer_query_source(u32 h_control, u16 index,
2154 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2168 u16 hpi_parametric_eq_get_info(u32 h_control, u16 *pw_number_of_bands,
2175 error = hpi_control_param2_get(h_control, HPI_EQUALIZER_NUM_FILTERS,
2184 u16 hpi_parametric_eq_set_state(u32 h_control, u16 on_off)
2186 return hpi_control_param_set(h_control, HPI_EQUALIZER_NUM_FILTERS,
2190 u16 hpi_parametric_eq_get_band(u32 h_control, u16 index, u16 *pn_type,
2198 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2217 u16 hpi_parametric_eq_set_band(u32 h_control, u16 index, u16 type,
2225 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2239 u16 hpi_parametric_eq_get_coeffs(u32 h_control, u16 index, short coeffs[5]
2247 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2275 u16 hpi_sample_clock_set_source(u32 h_control, u16 source)
2277 return hpi_control_param_set(h_control, HPI_SAMPLECLOCK_SOURCE,
2281 u16 hpi_sample_clock_get_source(u32 h_control, u16 *pw_source)
2285 err = hpi_control_param1_get(h_control, HPI_SAMPLECLOCK_SOURCE,
2305 u16 hpi_sample_clock_set_source_index(u32 h_control, u16 source_index)
2307 return hpi_control_param_set(h_control, HPI_SAMPLECLOCK_SOURCE_INDEX,
2311 u16 hpi_sample_clock_get_source_index(u32 h_control, u16 *pw_source_index)
2315 err = hpi_control_param1_get(h_control, HPI_SAMPLECLOCK_SOURCE_INDEX,
2330 u16 hpi_sample_clock_set_local_rate(u32 h_control, u32 sample_rate)
2332 return hpi_control_param_set(h_control,
2336 u16 hpi_sample_clock_get_local_rate(u32 h_control, u32 *psample_rate)
2340 err = hpi_control_param1_get(h_control,
2348 u16 hpi_sample_clock_get_sample_rate(u32 h_control, u32 *psample_rate)
2352 err = hpi_control_param1_get(h_control, HPI_SAMPLECLOCK_SAMPLERATE,
2360 u16 hpi_sample_clock_set_auto(u32 h_control, u32 enable)
2362 return hpi_control_param_set(h_control, HPI_SAMPLECLOCK_AUTO, enable,
2366 u16 hpi_sample_clock_get_auto(u32 h_control, u32 *penable)
2368 return hpi_control_param1_get(h_control, HPI_SAMPLECLOCK_AUTO,
2372 u16 hpi_sample_clock_set_local_rate_lock(u32 h_control, u32 lock)
2374 return hpi_control_param_set(h_control, HPI_SAMPLECLOCK_LOCAL_LOCK,
2378 u16 hpi_sample_clock_get_local_rate_lock(u32 h_control, u32 *plock)
2380 return hpi_control_param1_get(h_control, HPI_SAMPLECLOCK_LOCAL_LOCK,
2384 u16 hpi_tone_detector_get_frequency(u32 h_control, u32 index, u32 *frequency)
2386 return hpi_control_param_get(h_control, HPI_TONEDETECTOR_FREQUENCY,
2390 u16 hpi_tone_detector_get_state(u32 h_control, u32 *state)
2392 return hpi_control_param1_get(h_control, HPI_TONEDETECTOR_STATE,
2396 u16 hpi_tone_detector_set_enable(u32 h_control, u32 enable)
2398 return hpi_control_param_set(h_control, HPI_GENERIC_ENABLE, enable,
2402 u16 hpi_tone_detector_get_enable(u32 h_control, u32 *enable)
2404 return hpi_control_param1_get(h_control, HPI_GENERIC_ENABLE, enable);
2407 u16 hpi_tone_detector_set_event_enable(u32 h_control, u32 event_enable)
2409 return hpi_control_param_set(h_control, HPI_GENERIC_EVENT_ENABLE,
2413 u16 hpi_tone_detector_get_event_enable(u32 h_control, u32 *event_enable)
2415 return hpi_control_param1_get(h_control, HPI_GENERIC_EVENT_ENABLE,
2419 u16 hpi_tone_detector_set_threshold(u32 h_control, int threshold)
2421 return hpi_control_param_set(h_control, HPI_TONEDETECTOR_THRESHOLD,
2425 u16 hpi_tone_detector_get_threshold(u32 h_control, int *threshold)
2427 return hpi_control_param1_get(h_control, HPI_TONEDETECTOR_THRESHOLD,
2431 u16 hpi_silence_detector_get_state(u32 h_control, u32 *state)
2433 return hpi_control_param1_get(h_control, HPI_SILENCEDETECTOR_STATE,
2437 u16 hpi_silence_detector_set_enable(u32 h_control, u32 enable)
2439 return hpi_control_param_set(h_control, HPI_GENERIC_ENABLE, enable,
2443 u16 hpi_silence_detector_get_enable(u32 h_control, u32 *enable)
2445 return hpi_control_param1_get(h_control, HPI_GENERIC_ENABLE, enable);
2448 u16 hpi_silence_detector_set_event_enable(u32 h_control, u32 event_enable)
2450 return hpi_control_param_set(h_control, HPI_GENERIC_EVENT_ENABLE,
2454 u16 hpi_silence_detector_get_event_enable(u32 h_control, u32 *event_enable)
2456 return hpi_control_param1_get(h_control, HPI_GENERIC_EVENT_ENABLE,
2460 u16 hpi_silence_detector_set_delay(u32 h_control, u32 delay)
2462 return hpi_control_param_set(h_control, HPI_SILENCEDETECTOR_DELAY,
2466 u16 hpi_silence_detector_get_delay(u32 h_control, u32 *delay)
2468 return hpi_control_param1_get(h_control, HPI_SILENCEDETECTOR_DELAY,
2472 u16 hpi_silence_detector_set_threshold(u32 h_control, int threshold)
2474 return hpi_control_param_set(h_control, HPI_SILENCEDETECTOR_THRESHOLD,
2478 u16 hpi_silence_detector_get_threshold(u32 h_control, int *threshold)
2480 return hpi_control_param1_get(h_control,
2494 u16 hpi_tuner_set_band(u32 h_control, u16 band)
2496 return hpi_control_param_set(h_control, HPI_TUNER_BAND, band, 0);
2499 u16 hpi_tuner_get_band(u32 h_control, u16 *pw_band)
2504 error = hpi_control_param1_get(h_control, HPI_TUNER_BAND, &band);
2516 u16 hpi_tuner_set_frequency(u32 h_control, u32 freq_ink_hz)
2518 return hpi_control_param_set(h_control, HPI_TUNER_FREQ, freq_ink_hz,
2522 u16 hpi_tuner_get_frequency(u32 h_control, u32 *pw_freq_ink_hz)
2524 return hpi_control_param1_get(h_control, HPI_TUNER_FREQ,
2538 u16 hpi_tuner_set_gain(u32 h_control, short gain)
2540 return hpi_control_param_set(h_control, HPI_TUNER_GAIN, gain, 0);
2543 u16 hpi_tuner_get_gain(u32 h_control, short *pn_gain)
2548 error = hpi_control_param1_get(h_control, HPI_TUNER_GAIN, &gain);
2554 u16 hpi_tuner_get_rf_level(u32 h_control, short *pw_level)
2561 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2570 u16 hpi_tuner_get_raw_rf_level(u32 h_control, short *pw_level)
2577 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2593 u16 hpi_tuner_set_deemphasis(u32 h_control, u32 deemphasis)
2595 return hpi_control_param_set(h_control, HPI_TUNER_DEEMPHASIS,
2599 u16 hpi_tuner_get_deemphasis(u32 h_control, u32 *pdeemphasis)
2601 return hpi_control_param1_get(h_control, HPI_TUNER_DEEMPHASIS,
2611 u16 hpi_tuner_set_program(u32 h_control, u32 program)
2613 return hpi_control_param_set(h_control, HPI_TUNER_PROGRAM, program,
2617 u16 hpi_tuner_get_program(u32 h_control, u32 *pprogram)
2619 return hpi_control_param1_get(h_control, HPI_TUNER_PROGRAM, pprogram);
2622 u16 hpi_tuner_get_hd_radio_dsp_version(u32 h_control, char *psz_dsp_version,
2625 return hpi_control_get_string(h_control,
2629 u16 hpi_tuner_get_hd_radio_sdk_version(u32 h_control, char *psz_sdk_version,
2632 return hpi_control_get_string(h_control,
2636 u16 hpi_tuner_get_status(u32 h_control, u16 *pw_status_mask, u16 *pw_status)
2641 error = hpi_control_param1_get(h_control, HPI_TUNER_STATUS, &status);
2654 u16 hpi_tuner_set_mode(u32 h_control, u32 mode, u32 value)
2656 return hpi_control_param_set(h_control, HPI_TUNER_MODE, mode, value);
2659 u16 hpi_tuner_get_mode(u32 h_control, u32 mode, u32 *pn_value)
2661 return hpi_control_param_get(h_control, HPI_TUNER_MODE, mode, 0,
2665 u16 hpi_tuner_get_hd_radio_signal_quality(u32 h_control, u32 *pquality)
2667 return hpi_control_param1_get(h_control,
2671 u16 hpi_tuner_get_hd_radio_signal_blend(u32 h_control, u32 *pblend)
2673 return hpi_control_param1_get(h_control, HPI_TUNER_HDRADIO_BLEND,
2677 u16 hpi_tuner_set_hd_radio_signal_blend(u32 h_control, const u32 blend)
2679 return hpi_control_param_set(h_control, HPI_TUNER_HDRADIO_BLEND,
2683 u16 hpi_tuner_get_rds(u32 h_control, char *p_data)
2690 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2702 u16 hpi_pad_get_channel_name(u32 h_control, char *psz_string,
2705 return hpi_control_get_string(h_control, HPI_PAD_CHANNEL_NAME,
2709 u16 hpi_pad_get_artist(u32 h_control, char *psz_string, const u32 data_length)
2711 return hpi_control_get_string(h_control, HPI_PAD_ARTIST, psz_string,
2715 u16 hpi_pad_get_title(u32 h_control, char *psz_string, const u32 data_length)
2717 return hpi_control_get_string(h_control, HPI_PAD_TITLE, psz_string,
2721 u16 hpi_pad_get_comment(u32 h_control, char *psz_string,
2724 return hpi_control_get_string(h_control, HPI_PAD_COMMENT, psz_string,
2728 u16 hpi_pad_get_program_type(u32 h_control, u32 *ppTY)
2730 return hpi_control_param1_get(h_control, HPI_PAD_PROGRAM_TYPE, ppTY);
2733 u16 hpi_pad_get_rdsPI(u32 h_control, u32 *ppI)
2735 return hpi_control_param1_get(h_control, HPI_PAD_PROGRAM_ID, ppI);
2744 u16 hpi_volume_set_gain(u32 h_control, short an_log_gain[HPI_MAX_CHANNELS]
2747 return hpi_control_log_set2(h_control, HPI_VOLUME_GAIN,
2751 u16 hpi_volume_get_gain(u32 h_control, short an_log_gain[HPI_MAX_CHANNELS]
2754 return hpi_control_log_get2(h_control, HPI_VOLUME_GAIN,
2758 u16 hpi_volume_set_mute(u32 h_control, u32 mute)
2760 return hpi_control_param_set(h_control, HPI_VOLUME_MUTE, mute, 0);
2763 u16 hpi_volume_get_mute(u32 h_control, u32 *mute)
2765 return hpi_control_param1_get(h_control, HPI_VOLUME_MUTE, mute);
2768 u16 hpi_volume_query_range(u32 h_control, short *min_gain_01dB,
2776 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2795 u16 hpi_volume_auto_fade_profile(u32 h_control,
2804 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2819 u16 hpi_volume_auto_fade(u32 h_control,
2822 return hpi_volume_auto_fade_profile(h_control, an_stop_gain0_01dB,
2836 u16 hpi_vox_set_threshold(u32 h_control, short an_gain0_01dB)
2842 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
2853 u16 hpi_vox_get_threshold(u32 h_control, short *an_gain0_01dB)
2859 if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))