/Linux-v4.19/sound/pci/hda/ |
D | hda_codec.c | 40 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument 41 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument 42 #define codec_has_epss(codec) \ argument 44 #define codec_has_clkstop(codec) \ argument 53 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local 92 void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) in snd_hda_sequence_write() 109 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list() 119 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list() 134 static void remove_conn_list(struct hda_codec *codec) in remove_conn_list() 145 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns() [all …]
|
D | hda_bind.c | 22 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() local 43 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() local 54 int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) in snd_hda_codec_set_name() 79 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_probe() local 135 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_remove() local 146 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_shutdown() local 175 static inline bool codec_probed(struct hda_codec *codec) in codec_probed() 181 static void request_codec_module(struct hda_codec *codec) in request_codec_module() 210 static void codec_bind_module(struct hda_codec *codec) in codec_bind_module() 221 static bool is_likely_hdmi_codec(struct hda_codec *codec) in is_likely_hdmi_codec() [all …]
|
D | patch_via.c | 113 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec() 137 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) in get_codec_type() 192 #define hp_detect_with_aa(codec) \ argument 196 static void vt1708_stop_hp_work(struct hda_codec *codec) in vt1708_stop_hp_work() 209 static void vt1708_update_hp_work(struct hda_codec *codec) in vt1708_update_hp_work() 234 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_get() local 244 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_put() local 289 static int auto_parse_beep(struct hda_codec *codec) in auto_parse_beep() 300 #define auto_parse_beep(codec) 0 argument 304 static bool is_aa_path_mute(struct hda_codec *codec) in is_aa_path_mute() [all …]
|
D | hda_generic.c | 111 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() 211 #define update_pin_ctl(codec, pin, val) \ argument 216 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl() 222 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target() 234 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets() 262 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path() 293 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx() 314 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx() 325 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used() 339 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path() [all …]
|
D | patch_realtek.c | 133 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx() 143 #define alc_read_coef_idx(codec, coef_idx) \ argument 146 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx() 153 #define alc_write_coef_idx(codec, coef_idx, coef_val) \ argument 156 static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_update_coefex_idx() 167 #define alc_update_coef_idx(codec, coef_idx, mask, bits_set) \ argument 171 static unsigned int alc_get_coef0(struct hda_codec *codec) in alc_get_coef0() 194 static void alc_process_coef_fw(struct hda_codec *codec, in alc_process_coef_fw() 211 static void alc_setup_gpio(struct hda_codec *codec, unsigned int mask) in alc_setup_gpio() 220 static void alc_write_gpio_data(struct hda_codec *codec) in alc_write_gpio_data() [all …]
|
D | hda_jack.c | 33 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable() 50 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid) in read_pin_sense() 74 snd_hda_jack_tbl_get(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_get() 94 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, unsigned char tag) in snd_hda_jack_tbl_get_from_tag() 114 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_tbl_new() 128 void snd_hda_jack_tbl_clear(struct hda_codec *codec) in snd_hda_jack_tbl_clear() 151 static void jack_detect_update(struct hda_codec *codec, in jack_detect_update() 186 void snd_hda_jack_set_dirty_all(struct hda_codec *codec) in snd_hda_jack_set_dirty_all() 205 u32 snd_hda_pin_sense(struct hda_codec *codec, hda_nid_t nid) in snd_hda_pin_sense() 224 int snd_hda_jack_detect_state(struct hda_codec *codec, hda_nid_t nid) in snd_hda_jack_detect_state() [all …]
|
D | patch_analog.c | 62 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls() 84 #define create_beep_ctls(codec) 0 argument 88 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write() 99 static void ad198x_power_eapd(struct hda_codec *codec) in ad198x_power_eapd() 127 static void ad198x_shutup(struct hda_codec *codec) in ad198x_shutup() 134 static int ad198x_suspend(struct hda_codec *codec) in ad198x_suspend() 144 struct hda_codec *codec = private_data; in ad_vmaster_eapd_hook() local 160 static int ad198x_auto_build_controls(struct hda_codec *codec) in ad198x_auto_build_controls() 187 static int ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) in ad198x_parse_auto_config() 215 static int alloc_ad_spec(struct hda_codec *codec) in alloc_ad_spec() [all …]
|
D | patch_conexant.c | 87 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep() 98 #define cx_auto_parse_beep(codec) 0 argument 106 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd() 131 static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, in cx_auto_turn_eapd() 146 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook() local 155 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook_mute_led() local 163 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init() 175 static void cx_auto_reboot_notify(struct hda_codec *codec) in cx_auto_reboot_notify() 198 static void cx_auto_free(struct hda_codec *codec) in cx_auto_free() 249 static void cxt_fixup_stereo_dmic(struct hda_codec *codec, in cxt_fixup_stereo_dmic() [all …]
|
D | patch_hdmi.c | 52 #define is_haswell(codec) ((codec)->core.vendor_id == 0x80862807) argument 53 #define is_broadwell(codec) ((codec)->core.vendor_id == 0x80862808) argument 54 #define is_skylake(codec) ((codec)->core.vendor_id == 0x80862809) argument 55 #define is_broxton(codec) ((codec)->core.vendor_id == 0x8086280a) argument 56 #define is_kabylake(codec) ((codec)->core.vendor_id == 0x8086280b) argument 57 #define is_geminilake(codec) (((codec)->core.vendor_id == 0x8086280d) || \ argument 59 #define is_cannonlake(codec) ((codec)->core.vendor_id == 0x8086280c) argument 60 #define is_haswell_plus(codec) (is_haswell(codec) || is_broadwell(codec) \ argument 64 #define is_valleyview(codec) ((codec)->core.vendor_id == 0x80862882) argument 65 #define is_cherryview(codec) ((codec)->core.vendor_id == 0x80862883) argument [all …]
|
D | patch_sigmatel.c | 253 struct hda_codec *codec, in stac_playback_pcm_hook() 263 struct hda_codec *codec, in stac_capture_pcm_hook() 300 static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, in stac_gpio_set() 335 static void stac_capture_led_update(struct hda_codec *codec) in stac_capture_led_update() 346 static int stac_vrefout_set(struct hda_codec *codec, in stac_vrefout_set() 371 static unsigned int stac_vref_led_power_filter(struct hda_codec *codec, in stac_vref_led_power_filter() 381 static void stac_update_led_status(struct hda_codec *codec, int enabled) in stac_update_led_status() 414 static void stac_update_outputs(struct hda_codec *codec) in stac_update_outputs() 439 static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, in stac_toggle_power_map() 470 static void jack_update_power(struct hda_codec *codec, in jack_update_power() [all …]
|
D | patch_cirrus.c | 142 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get() 151 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set() 167 static void cs_automute(struct hda_codec *codec) in cs_automute() 188 static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) in is_active_pin() 195 static void init_input_coef(struct hda_codec *codec) in init_input_coef() 294 static void init_digital_coef(struct hda_codec *codec) in init_digital_coef() 308 static int cs_init(struct hda_codec *codec) in cs_init() 339 static int cs_build_controls(struct hda_codec *codec) in cs_build_controls() 360 static int cs_parse_auto_config(struct hda_codec *codec) in cs_parse_auto_config() 507 static void cs420x_fixup_gpio_13(struct hda_codec *codec, in cs420x_fixup_gpio_13() [all …]
|
D | patch_ca0132.c | 960 struct hda_codec *codec; member 1078 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() 1088 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() 1095 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() 1107 static int chipio_send(struct hda_codec *codec, in chipio_send() 1129 static int chipio_write_address(struct hda_codec *codec, in chipio_write_address() 1156 static int chipio_write_data(struct hda_codec *codec, unsigned int data) in chipio_write_data() 1180 static int chipio_write_data_multiple(struct hda_codec *codec, in chipio_write_data_multiple() 1201 static int chipio_read_data(struct hda_codec *codec, unsigned int *data) in chipio_read_data() 1232 static int chipio_write(struct hda_codec *codec, in chipio_write() [all …]
|
D | hda_proc.c | 36 #define param_read(codec, nid, parm) \ argument 62 struct hda_codec *codec, hda_nid_t nid, in print_nid_array() 89 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms() 108 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps() 126 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps() 148 struct hda_codec *codec, hda_nid_t nid, in print_amp_vals() 214 struct hda_codec *codec, hda_nid_t nid) in print_pcm_caps() 319 struct hda_codec *codec, hda_nid_t nid, in print_pin_caps() 415 struct hda_codec *codec, hda_nid_t nid, in print_pin_ctls() 453 struct hda_codec *codec, hda_nid_t nid) in print_vol_knob() [all …]
|
D | hda_sysfs.c | 33 struct hda_codec *codec = dev_get_drvdata(dev); in power_on_acct_show() local 42 struct hda_codec *codec = dev_get_drvdata(dev); in power_off_acct_show() local 79 static ssize_t pin_configs_show(struct hda_codec *codec, in pin_configs_show() 98 struct hda_codec *codec = dev_get_drvdata(dev); in init_pin_configs_show() local 106 struct hda_codec *codec = dev_get_drvdata(dev); in driver_pin_configs_show() local 116 static int clear_codec(struct hda_codec *codec) in clear_codec() 129 static int reconfig_codec(struct hda_codec *codec) in reconfig_codec() 219 struct hda_codec *codec = dev_get_drvdata(dev); in init_verbs_show() local 232 static int parse_init_verbs(struct hda_codec *codec, const char *buf) in parse_init_verbs() 258 struct hda_codec *codec = dev_get_drvdata(dev); in init_verbs_store() local [all …]
|
D | hda_auto_parser.c | 60 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin() 106 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity() 127 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic() 170 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg() 482 static const char *hda_get_input_pin_label(struct hda_codec *codec, in hda_get_input_pin_label() 534 static int check_mic_location_need(struct hda_codec *codec, in check_mic_location_need() 571 const char *hda_get_autocfg_input_label(struct hda_codec *codec, in hda_get_autocfg_input_label() 622 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx() 637 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index() 654 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name() [all …]
|
D | hda_beep.c | 26 struct hda_codec *codec = beep->codec; in generate_tone() local 143 struct hda_codec *codec = beep->codec; in snd_hda_do_attach() local 173 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device() 203 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device() 244 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device() 260 int snd_hda_register_beep_device(struct hda_codec *codec) in snd_hda_register_beep_device() 283 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute() local 298 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep() local 317 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep() local
|
D | patch_si3054.c | 78 #define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) argument 79 #define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) argument 80 #define SET_REG_CACHE(codec,reg,val) \ argument 102 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get() local 112 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put() local 139 static int si3054_build_controls(struct hda_codec *codec) in si3054_build_controls() 150 struct hda_codec *codec, in si3054_pcm_prepare() 169 struct hda_codec *codec, in si3054_pcm_open() 199 static int si3054_build_pcms(struct hda_codec *codec) in si3054_build_pcms() 219 static int si3054_init(struct hda_codec *codec) in si3054_init() [all …]
|
D | thinkpad_helper.c | 14 static bool is_thinkpad(struct hda_codec *codec) in is_thinkpad() 30 static void update_tpacpi_micmute(struct hda_codec *codec) in update_tpacpi_micmute() 37 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi() 75 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi()
|
/Linux-v4.19/sound/hda/ |
D | hdac_regmap.c | 24 static int codec_pm_lock(struct hdac_device *codec) in codec_pm_lock() 29 static void codec_pm_unlock(struct hdac_device *codec, int lock) in codec_pm_unlock() 39 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_volatile_reg() local 66 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_writeable_reg() local 115 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_readable_reg() local 155 static int hda_reg_read_stereo_amp(struct hdac_device *codec, in hda_reg_read_stereo_amp() 173 static int hda_reg_write_stereo_amp(struct hdac_device *codec, in hda_reg_write_stereo_amp() 203 static int hda_reg_read_coef(struct hdac_device *codec, unsigned int reg, in hda_reg_read_coef() 221 static int hda_reg_write_coef(struct hdac_device *codec, unsigned int reg, in hda_reg_write_coef() 241 struct hdac_device *codec = context; in hda_reg_read() local [all …]
|
D | hdac_device.c | 39 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() 124 void snd_hdac_device_exit(struct hdac_device *codec) in snd_hdac_device_exit() 137 int snd_hdac_device_register(struct hdac_device *codec) in snd_hdac_device_register() 158 void snd_hdac_device_unregister(struct hdac_device *codec) in snd_hdac_device_unregister() 175 int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name) in snd_hdac_device_set_chip_name() 198 int snd_hdac_codec_modalias(struct hdac_device *codec, char *buf, size_t size) in snd_hdac_codec_modalias() 215 unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd() 248 int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd, in snd_hdac_exec_verb() 268 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read() 282 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm() [all …]
|
D | hdac_sysfs.c | 114 struct hdac_device *codec; in widget_attr_show() local 130 struct hdac_device *codec; in widget_attr_store() local 161 static ssize_t caps_show(struct hdac_device *codec, hda_nid_t nid, in caps_show() 167 static ssize_t pin_caps_show(struct hdac_device *codec, hda_nid_t nid, in pin_caps_show() 176 static ssize_t pin_cfg_show(struct hdac_device *codec, hda_nid_t nid, in pin_cfg_show() 188 static bool has_pcm_cap(struct hdac_device *codec, hda_nid_t nid) in has_pcm_cap() 201 static ssize_t pcm_caps_show(struct hdac_device *codec, hda_nid_t nid, in pcm_caps_show() 210 static ssize_t pcm_formats_show(struct hdac_device *codec, hda_nid_t nid, in pcm_formats_show() 219 static ssize_t amp_in_caps_show(struct hdac_device *codec, hda_nid_t nid, in amp_in_caps_show() 228 static ssize_t amp_out_caps_show(struct hdac_device *codec, hda_nid_t nid, in amp_out_caps_show() [all …]
|
/Linux-v4.19/sound/pci/ali5451/ |
D | ali5451.c | 156 #define ALI_REG(codec, x) ((codec)->port + x) argument 195 struct snd_ali *codec; member 281 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() 287 static inline void snd_ali_5451_poke(struct snd_ali *codec, in snd_ali_5451_poke() 294 static int snd_ali_codec_ready(struct snd_ali *codec, in snd_ali_codec_ready() 316 static int snd_ali_stimer_ready(struct snd_ali *codec) in snd_ali_stimer_ready() 337 static void snd_ali_codec_poke(struct snd_ali *codec,int secondary, in snd_ali_codec_poke() 369 static unsigned short snd_ali_codec_peek(struct snd_ali *codec, in snd_ali_codec_peek() 408 struct snd_ali *codec = ac97->private_data; in snd_ali_codec_write() local 424 struct snd_ali *codec = ac97->private_data; in snd_ali_codec_read() local [all …]
|
/Linux-v4.19/drivers/staging/greybus/ |
D | audio_codec.c | 33 find_dai_stream_params(struct gbaudio_codec_info *codec, int id, int stream) in find_dai_stream_params() 44 static int gbaudio_module_enable_tx(struct gbaudio_codec_info *codec, in gbaudio_module_enable_tx() 179 static int gbaudio_module_enable_rx(struct gbaudio_codec_info *codec, in gbaudio_module_enable_rx() 314 int gbaudio_module_update(struct gbaudio_codec_info *codec, in gbaudio_module_update() 362 struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); in gbcodec_startup() local 390 struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); in gbcodec_shutdown() local 419 struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); in gbcodec_hw_params() local 520 struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); in gbcodec_prepare() local 587 struct gbaudio_codec_info *codec = dev_get_drvdata(dai->dev); in gbcodec_mute_stream() local 712 struct snd_soc_codec *codec) in gbaudio_init_jack() [all …]
|
/Linux-v4.19/include/sound/ |
D | hda_regmap.h | 76 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_write() 94 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update() 112 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_read() 133 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp() 157 snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp() 178 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp_stereo() 202 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp_stereo() 216 snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) in snd_hdac_regmap_sync_node()
|
/Linux-v4.19/drivers/staging/media/zoran/ |
D | videocodec.c | 55 struct videocodec *codec; member 60 const struct videocodec *codec; member 77 struct videocodec *codec; in videocodec_attach() local 166 videocodec_detach (struct videocodec *codec) in videocodec_detach() 231 videocodec_register (const struct videocodec *codec) in videocodec_register() 266 videocodec_unregister (const struct videocodec *codec) in videocodec_unregister()
|