Home
last modified time | relevance | path

Searched defs:codec (Results 1 – 25 of 216) sorted by relevance

123456789

/Linux-v5.10/sound/pci/hda/
Dhda_bind.c23 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match() local
44 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event() local
59 int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) in snd_hda_codec_set_name()
84 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_probe() local
147 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_remove() local
164 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_shutdown() local
193 static inline bool codec_probed(struct hda_codec *codec) in codec_probed()
199 static void request_codec_module(struct hda_codec *codec) in request_codec_module()
228 static void codec_bind_module(struct hda_codec *codec) in codec_bind_module()
239 static bool is_likely_hdmi_codec(struct hda_codec *codec) in is_likely_hdmi_codec()
[all …]
Dpatch_via.c100 static struct via_spec *via_new_spec(struct hda_codec *codec) in via_new_spec()
124 static enum VIA_HDA_CODEC get_codec_type(struct hda_codec *codec) in get_codec_type()
179 #define hp_detect_with_aa(codec) \ argument
183 static void vt1708_stop_hp_work(struct hda_codec *codec) in vt1708_stop_hp_work()
196 static void vt1708_update_hp_work(struct hda_codec *codec) in vt1708_update_hp_work()
221 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_get() local
231 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_put() local
276 static int auto_parse_beep(struct hda_codec *codec) in auto_parse_beep()
287 #define auto_parse_beep(codec) 0 argument
291 static bool is_aa_path_mute(struct hda_codec *codec) in is_aa_path_mute()
[all …]
Dhda_codec.c27 #define codec_in_pm(codec) snd_hdac_is_in_pm(&codec->core) argument
28 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core) argument
29 #define codec_has_epss(codec) \ argument
31 #define codec_has_clkstop(codec) \ argument
40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb() local
79 void snd_hda_sequence_write(struct hda_codec *codec, const struct hda_verb *seq) in snd_hda_sequence_write()
96 lookup_conn_list(struct hda_codec *codec, hda_nid_t nid) in lookup_conn_list()
106 static int add_conn_list(struct hda_codec *codec, hda_nid_t nid, int len, in add_conn_list()
121 static void remove_conn_list(struct hda_codec *codec) in remove_conn_list()
132 static int read_and_add_raw_conns(struct hda_codec *codec, hda_nid_t nid) in read_and_add_raw_conns()
[all …]
Dpatch_realtek.c136 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx()
146 #define alc_read_coef_idx(codec, coef_idx) \ argument
149 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx()
156 #define alc_write_coef_idx(codec, coef_idx, coef_val) \ argument
159 static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_update_coefex_idx()
170 #define alc_update_coef_idx(codec, coef_idx, mask, bits_set) \ argument
174 static unsigned int alc_get_coef0(struct hda_codec *codec) in alc_get_coef0()
197 static void alc_process_coef_fw(struct hda_codec *codec, in alc_process_coef_fw()
214 static void alc_setup_gpio(struct hda_codec *codec, unsigned int mask) in alc_setup_gpio()
223 static void alc_write_gpio_data(struct hda_codec *codec) in alc_write_gpio_data()
[all …]
Dhda_generic.c99 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints()
199 #define update_pin_ctl(codec, pin, val) \ argument
204 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl()
210 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target()
222 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets()
250 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path()
281 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx()
302 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx()
313 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used()
327 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path()
[all …]
Dpatch_analog.c50 static int create_beep_ctls(struct hda_codec *codec) in create_beep_ctls()
72 #define create_beep_ctls(codec) 0 argument
76 static void ad198x_power_eapd_write(struct hda_codec *codec, hda_nid_t front, in ad198x_power_eapd_write()
87 static void ad198x_power_eapd(struct hda_codec *codec) in ad198x_power_eapd()
115 static void ad198x_shutup(struct hda_codec *codec) in ad198x_shutup()
122 static int ad198x_suspend(struct hda_codec *codec) in ad198x_suspend()
132 struct hda_codec *codec = private_data; in ad_vmaster_eapd_hook() local
148 static int ad198x_auto_build_controls(struct hda_codec *codec) in ad198x_auto_build_controls()
175 static int ad198x_parse_auto_config(struct hda_codec *codec, bool indep_hp) in ad198x_parse_auto_config()
203 static int alloc_ad_spec(struct hda_codec *codec) in alloc_ad_spec()
[all …]
Dpatch_conexant.c74 static int cx_auto_parse_beep(struct hda_codec *codec) in cx_auto_parse_beep()
85 #define cx_auto_parse_beep(codec) 0 argument
93 static void cx_auto_parse_eapd(struct hda_codec *codec) in cx_auto_parse_eapd()
118 static void cx_auto_turn_eapd(struct hda_codec *codec, int num_pins, in cx_auto_turn_eapd()
133 struct hda_codec *codec = private_data; in cx_auto_vmaster_hook() local
143 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in cx_auto_vmaster_mute_led() local
152 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init()
164 static void cx_auto_reboot_notify(struct hda_codec *codec) in cx_auto_reboot_notify()
174 static void cx_auto_free(struct hda_codec *codec) in cx_auto_free()
225 static void cxt_fixup_stereo_dmic(struct hda_codec *codec, in cxt_fixup_stereo_dmic()
[all …]
Dhda_jack.c29 bool is_jack_detectable(struct hda_codec *codec, hda_nid_t nid) in is_jack_detectable()
46 static u32 read_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in read_pin_sense()
71 snd_hda_jack_tbl_get_mst(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_tbl_get_mst()
92 snd_hda_jack_tbl_get_from_tag(struct hda_codec *codec, in snd_hda_jack_tbl_get_from_tag()
108 any_jack_tbl_get_from_nid(struct hda_codec *codec, hda_nid_t nid) in any_jack_tbl_get_from_nid()
128 snd_hda_jack_tbl_new(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_tbl_new()
161 void snd_hda_jack_tbl_clear(struct hda_codec *codec) in snd_hda_jack_tbl_clear()
184 static void jack_detect_update(struct hda_codec *codec, in jack_detect_update()
222 void snd_hda_jack_set_dirty_all(struct hda_codec *codec) in snd_hda_jack_set_dirty_all()
242 u32 snd_hda_jack_pin_sense(struct hda_codec *codec, hda_nid_t nid, int dev_id) in snd_hda_jack_pin_sense()
[all …]
Dpatch_hdmi.c73 struct hda_codec *codec; member
119 struct hda_codec *codec; member
180 static inline bool codec_has_acomp(struct hda_codec *codec) in codec_has_acomp()
186 #define codec_has_acomp(codec) false argument
234 static int pin_id_to_pin_index(struct hda_codec *codec, in pin_id_to_pin_index()
259 static int hinfo_to_pcm_index(struct hda_codec *codec, in hinfo_to_pcm_index()
273 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index()
306 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index()
322 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_info() local
349 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_get() local
[all …]
Dpatch_sigmatel.c241 struct hda_codec *codec, in stac_playback_pcm_hook()
251 struct hda_codec *codec, in stac_capture_pcm_hook()
288 static void stac_gpio_set(struct hda_codec *codec, unsigned int mask, in stac_gpio_set()
326 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in stac_capture_led_update() local
337 static int stac_vrefout_set(struct hda_codec *codec, in stac_vrefout_set()
362 static unsigned int stac_vref_led_power_filter(struct hda_codec *codec, in stac_vref_led_power_filter()
372 static void stac_update_led_status(struct hda_codec *codec, bool muted) in stac_update_led_status()
401 struct hda_codec *codec = dev_to_hda_codec(led_cdev->dev->parent); in stac_vmaster_hook() local
408 static void stac_update_outputs(struct hda_codec *codec) in stac_update_outputs()
433 static void stac_toggle_power_map(struct hda_codec *codec, hda_nid_t nid, in stac_toggle_power_map()
[all …]
Dpatch_ca0132.c1101 struct hda_codec *codec; member
1478 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command()
1488 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format()
1495 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel()
1507 static int chipio_send(struct hda_codec *codec, in chipio_send()
1529 static int chipio_write_address(struct hda_codec *codec, in chipio_write_address()
1556 static int chipio_write_data(struct hda_codec *codec, unsigned int data) in chipio_write_data()
1580 static int chipio_write_data_multiple(struct hda_codec *codec, in chipio_write_data_multiple()
1601 static int chipio_read_data(struct hda_codec *codec, unsigned int *data) in chipio_read_data()
1632 static int chipio_write(struct hda_codec *codec, in chipio_write()
[all …]
Dpatch_cirrus.c129 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get()
138 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set()
154 static void cs_automute(struct hda_codec *codec) in cs_automute()
175 static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) in is_active_pin()
182 static void init_input_coef(struct hda_codec *codec) in init_input_coef()
281 static void init_digital_coef(struct hda_codec *codec) in init_digital_coef()
295 static int cs_init(struct hda_codec *codec) in cs_init()
326 static int cs_build_controls(struct hda_codec *codec) in cs_build_controls()
347 static int cs_parse_auto_config(struct hda_codec *codec) in cs_parse_auto_config()
494 static void cs420x_fixup_gpio_13(struct hda_codec *codec, in cs420x_fixup_gpio_13()
[all …]
Dhda_proc.c22 #define param_read(codec, nid, parm) \ argument
48 struct hda_codec *codec, hda_nid_t nid, in print_nid_array()
75 struct hda_codec *codec, hda_nid_t nid) in print_nid_pcms()
94 struct hda_codec *codec, hda_nid_t nid, int dir) in print_amp_caps()
112 static bool is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, in is_stereo_amps()
134 struct hda_codec *codec, hda_nid_t nid, in print_amp_vals()
200 struct hda_codec *codec, hda_nid_t nid) in print_pcm_caps()
305 struct hda_codec *codec, hda_nid_t nid, in print_pin_caps()
401 struct hda_codec *codec, hda_nid_t nid, in print_pin_ctls()
439 struct hda_codec *codec, hda_nid_t nid) in print_vol_knob()
[all …]
Dhda_sysfs.c34 struct hda_codec *codec = dev_get_drvdata(dev); in power_on_acct_show() local
43 struct hda_codec *codec = dev_get_drvdata(dev); in power_off_acct_show() local
80 static ssize_t pin_configs_show(struct hda_codec *codec, in pin_configs_show()
99 struct hda_codec *codec = dev_get_drvdata(dev); in init_pin_configs_show() local
107 struct hda_codec *codec = dev_get_drvdata(dev); in driver_pin_configs_show() local
117 static int clear_codec(struct hda_codec *codec) in clear_codec()
130 static int reconfig_codec(struct hda_codec *codec) in reconfig_codec()
220 struct hda_codec *codec = dev_get_drvdata(dev); in init_verbs_show() local
233 static int parse_init_verbs(struct hda_codec *codec, const char *buf) in parse_init_verbs()
259 struct hda_codec *codec = dev_get_drvdata(dev); in init_verbs_store() local
[all …]
Dhda_auto_parser.c56 static void add_auto_cfg_input_pin(struct hda_codec *codec, struct auto_pin_cfg *cfg, in add_auto_cfg_input_pin()
108 static bool check_pincap_validity(struct hda_codec *codec, hda_nid_t pin, in check_pincap_validity()
129 static bool can_be_headset_mic(struct hda_codec *codec, in can_be_headset_mic()
172 int snd_hda_parse_pin_defcfg(struct hda_codec *codec, in snd_hda_parse_pin_defcfg()
484 static const char *hda_get_input_pin_label(struct hda_codec *codec, in hda_get_input_pin_label()
536 static int check_mic_location_need(struct hda_codec *codec, in check_mic_location_need()
573 const char *hda_get_autocfg_input_label(struct hda_codec *codec, in hda_get_autocfg_input_label()
624 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx()
639 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index()
656 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name()
[all …]
Dpatch_si3054.c64 #define GET_REG(codec,reg) (snd_hda_codec_read(codec,reg,0,SI3054_VERB_READ_NODE,0)) argument
65 #define SET_REG(codec,reg,val) (snd_hda_codec_write(codec,reg,0,SI3054_VERB_WRITE_NODE,val)) argument
66 #define SET_REG_CACHE(codec,reg,val) \ argument
88 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get() local
98 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put() local
125 static int si3054_build_controls(struct hda_codec *codec) in si3054_build_controls()
136 struct hda_codec *codec, in si3054_pcm_prepare()
155 struct hda_codec *codec, in si3054_pcm_open()
185 static int si3054_build_pcms(struct hda_codec *codec) in si3054_build_pcms()
205 static int si3054_init(struct hda_codec *codec) in si3054_init()
[all …]
Dhda_beep.c26 struct hda_codec *codec = beep->codec; in generate_tone() local
135 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device()
193 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
267 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
276 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute() local
291 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep() local
314 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep() local
Dhda_local.h117 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument
135 #define snd_hda_add_vmaster(codec, name, tlv, followers, suffix) \ argument
141 #define snd_hda_regmap_sync(codec) snd_hdac_regmap_sync(&(codec)->core) argument
157 struct hda_codec *codec; member
176 #define snd_hda_create_spdif_out_ctls(codec, anid, cnid) \ argument
264 static inline int snd_hda_codec_proc_new(struct hda_codec *codec) { return 0; } in snd_hda_codec_proc_new()
305 unsigned int codec; /* Codec vendor/device ID */ member
422 snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val) in snd_hda_set_pin_ctl()
436 snd_hda_set_pin_ctl_cache(struct hda_codec *codec, hda_nid_t pin, in snd_hda_set_pin_ctl_cache()
446 #define for_each_hda_codec_node(nid, codec) \ argument
[all …]
Dthinkpad_helper.c11 static bool is_thinkpad(struct hda_codec *codec) in is_thinkpad()
18 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi()
31 static void hda_fixup_thinkpad_acpi(struct hda_codec *codec, in hda_fixup_thinkpad_acpi()
/Linux-v5.10/sound/hda/
Dhdac_regmap.c26 static int codec_pm_lock(struct hdac_device *codec) in codec_pm_lock()
31 static void codec_pm_unlock(struct hdac_device *codec, int lock) in codec_pm_unlock()
41 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_volatile_reg() local
68 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_writeable_reg() local
117 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_readable_reg() local
157 static int hda_reg_read_stereo_amp(struct hdac_device *codec, in hda_reg_read_stereo_amp()
175 static int hda_reg_write_stereo_amp(struct hdac_device *codec, in hda_reg_write_stereo_amp()
205 static int hda_reg_read_coef(struct hdac_device *codec, unsigned int reg, in hda_reg_read_coef()
223 static int hda_reg_write_coef(struct hdac_device *codec, unsigned int reg, in hda_reg_write_coef()
243 struct hdac_device *codec = context; in hda_reg_read() local
[all …]
Dhdac_device.c40 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init()
127 void snd_hdac_device_exit(struct hdac_device *codec) in snd_hdac_device_exit()
142 int snd_hdac_device_register(struct hdac_device *codec) in snd_hdac_device_register()
165 void snd_hdac_device_unregister(struct hdac_device *codec) in snd_hdac_device_unregister()
184 int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name) in snd_hdac_device_set_chip_name()
207 int snd_hdac_codec_modalias(struct hdac_device *codec, char *buf, size_t size) in snd_hdac_codec_modalias()
224 static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd()
256 int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd, in snd_hdac_exec_verb()
275 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read()
293 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm()
[all …]
Dhdac_sysfs.c114 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-v5.10/sound/pci/ali5451/
Dali5451.c142 #define ALI_REG(codec, x) ((codec)->port + x) argument
181 struct snd_ali *codec; member
267 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek()
273 static inline void snd_ali_5451_poke(struct snd_ali *codec, in snd_ali_5451_poke()
280 static int snd_ali_codec_ready(struct snd_ali *codec, in snd_ali_codec_ready()
302 static int snd_ali_stimer_ready(struct snd_ali *codec) in snd_ali_stimer_ready()
323 static void snd_ali_codec_poke(struct snd_ali *codec,int secondary, in snd_ali_codec_poke()
355 static unsigned short snd_ali_codec_peek(struct snd_ali *codec, in snd_ali_codec_peek()
394 struct snd_ali *codec = ac97->private_data; in snd_ali_codec_write() local
410 struct snd_ali *codec = ac97->private_data; in snd_ali_codec_read() local
[all …]
/Linux-v5.10/include/sound/
Dhda_regmap.h79 snd_hdac_regmap_write(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_write()
97 snd_hdac_regmap_update(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update()
115 snd_hdac_regmap_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_read()
136 snd_hdac_regmap_get_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp()
160 snd_hdac_regmap_update_amp(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp()
181 snd_hdac_regmap_get_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_get_amp_stereo()
205 snd_hdac_regmap_update_amp_stereo(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_regmap_update_amp_stereo()
219 snd_hdac_regmap_sync_node(struct hdac_device *codec, hda_nid_t nid) in snd_hdac_regmap_sync_node()
/Linux-v5.10/drivers/staging/media/zoran/
Dvideocodec.c40 struct videocodec *codec; member
45 const struct videocodec *codec; member
61 struct videocodec *codec; in videocodec_attach() local
132 int videocodec_detach(struct videocodec *codec) in videocodec_detach()
188 int videocodec_register(const struct videocodec *codec) in videocodec_register()
221 int videocodec_unregister(const struct videocodec *codec) in videocodec_unregister()

123456789