Home
last modified time | relevance | path

Searched defs:codec (Results 26 – 50 of 278) sorted by relevance

12345678910>>...12

/linux/sound/hda/codecs/cirrus/
H A Dcs421x.c105 static inline int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs_vendor_coef_get()
115 static inline void cs_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs_vendor_coef_set()
132 static void cs_automute(struct hda_codec *codec) in cs_automute()
153 static bool is_active_pin(struct hda_codec *codec, hda_nid_t nid) in is_active_pin()
161 static struct cs_spec *cs_alloc_spec(struct hda_codec *codec, int vendor_nid) in cs_alloc_spec()
221 static void cs421x_fixup_sense_b(struct hda_codec *codec, in cs421x_fixup_sense_b()
321 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cs421x_boost_vol_get() local
331 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cs421x_boost_vol_put() local
360 static void cs4210_pinmux_init(struct hda_codec *codec) in cs4210_pinmux_init()
393 static void cs4210_spdif_automute(struct hda_codec *codec, in cs4210_spdif_automute()
[all …]
/linux/sound/hda/codecs/
H A Dsi3054.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 …]
H A Dcm9825.c44 struct hda_codec *codec; member
148 static void hp_callback(struct hda_codec *codec, struct hda_jack_callback *cb) in hp_callback()
165 static void cm9825_setup_unsol(struct hda_codec *codec) in cm9825_setup_unsol()
174 static int cm9825_init(struct hda_codec *codec) in cm9825_init()
182 static void cm9825_remove(struct hda_codec *codec) in cm9825_remove()
190 static int cm9825_suspend(struct hda_codec *codec) in cm9825_suspend()
201 static int cm9825_resume(struct hda_codec *codec) in cm9825_resume()
241 static int cm9825_probe(struct hda_codec *codec, const struct hda_device_id *id) in cm9825_probe()
/linux/sound/hda/common/
H A Dauto_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()
486 static const char *hda_get_input_pin_label(struct hda_codec *codec, in hda_get_input_pin_label()
538 static int check_mic_location_need(struct hda_codec *codec, in check_mic_location_need()
575 const char *hda_get_autocfg_input_label(struct hda_codec *codec, in hda_get_autocfg_input_label()
626 static const char *check_output_pfx(struct hda_codec *codec, hda_nid_t nid) in check_output_pfx()
641 static int get_hp_label_index(struct hda_codec *codec, hda_nid_t nid, in get_hp_label_index()
658 static int fill_audio_out_name(struct hda_codec *codec, hda_nid_t nid, in fill_audio_out_name()
[all …]
H A Dhda_local.h119 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument
137 #define snd_hda_add_vmaster(codec, name, tlv, followers, suffix, access) \ argument
142 #define snd_hda_regmap_sync(codec) snd_hdac_regmap_sync(&(codec)->core) argument
151 struct hda_codec *codec; member
169 #define snd_hda_create_spdif_out_ctls(codec, anid, cnid) \ argument
257 static inline int snd_hda_codec_proc_new(struct hda_codec *codec) { return 0; } in snd_hda_codec_proc_new()
324 unsigned int codec; /* Codec vendor/device ID */ member
442 snd_hda_set_pin_ctl(struct hda_codec *codec, hda_nid_t pin, unsigned int val) in snd_hda_set_pin_ctl()
456 snd_hda_set_pin_ctl_cache(struct hda_codec *codec, hda_nid_t pin, in snd_hda_set_pin_ctl_cache()
466 #define for_each_hda_codec_node(nid, codec) \ argument
[all …]
H A Dbeep.c26 struct hda_codec *codec = beep->codec; in generate_tone() local
144 int snd_hda_enable_beep_device(struct hda_codec *codec, int enable) in snd_hda_enable_beep_device()
205 int snd_hda_attach_beep_device(struct hda_codec *codec, int nid) in snd_hda_attach_beep_device()
280 void snd_hda_detach_beep_device(struct hda_codec *codec) in snd_hda_detach_beep_device()
289 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute() local
304 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep() local
327 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep() local
H A Dhwdep.c21 static int verb_write_ioctl(struct hda_codec *codec, in verb_write_ioctl()
35 static int get_wcap_ioctl(struct hda_codec *codec, in get_wcap_ioctl()
63 struct hda_codec *codec = hw->private_data; in hda_hwdep_ioctl() local
92 int snd_hda_create_hwdep(struct hda_codec *codec) in snd_hda_create_hwdep()
/linux/sound/soc/codecs/
H A Dhda.c16 static int hda_codec_create_dais(struct hda_codec *codec, int pcm_count, in hda_codec_create_dais()
83 static int hda_codec_register_dais(struct hda_codec *codec, struct snd_soc_component *component) in hda_codec_register_dais()
124 static void hda_codec_unregister_dais(struct hda_codec *codec, in hda_codec_unregister_dais()
146 int hda_codec_probe_complete(struct hda_codec *codec) in hda_codec_probe_complete()
174 struct hda_codec *codec = dev_to_hda_codec(component->dev); in hda_codec_probe() local
269 struct hda_codec *codec = dev_to_hda_codec(component->dev); in hda_codec_remove() local
346 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); in hda_hdev_attach() local
378 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); in hda_hdev_detach() local
H A Dcs40l50-codec.c77 static int cs40l50_swap_ext_clk(struct cs40l50_codec *codec, const unsigned int clk_src) in cs40l50_swap_ext_clk()
120 struct cs40l50_codec *codec = snd_soc_component_get_drvdata(comp); in cs40l50_clk_en() local
168 struct cs40l50_codec *codec = snd_soc_component_get_drvdata(codec_dai->component); in cs40l50_set_dai_fmt() local
207 struct cs40l50_codec *codec = snd_soc_component_get_drvdata(dai->component); in cs40l50_hw_params() local
229 struct cs40l50_codec *codec = snd_soc_component_get_drvdata(dai->component); in cs40l50_set_dai_bclk_ratio() local
259 struct cs40l50_codec *codec = snd_soc_component_get_drvdata(component); in cs40l50_codec_probe() local
277 struct cs40l50_codec *codec; in cs40l50_codec_driver_probe() local
H A Djz4760.c169 static int jz4760_codec_set_bias_level(struct snd_soc_component *codec, in jz4760_codec_set_bias_level()
199 struct snd_soc_component *codec = dai->component; in jz4760_codec_startup() local
216 struct snd_soc_component *codec = dai->component; in jz4760_codec_shutdown() local
227 struct snd_soc_component *codec = dai->component; in jz4760_codec_pcm_trigger() local
251 struct snd_soc_component *codec = dai->component; in jz4760_codec_mute_stream() local
329 struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm); in hpout_event() local
549 static void jz4760_codec_codec_init_regs(struct snd_soc_component *codec) in jz4760_codec_codec_init_regs()
602 static int jz4760_codec_codec_probe(struct snd_soc_component *codec) in jz4760_codec_codec_probe()
613 static void jz4760_codec_codec_remove(struct snd_soc_component *codec) in jz4760_codec_codec_remove()
644 struct jz_codec *codec = snd_soc_component_get_drvdata(dai->component); in jz4760_codec_hw_params() local
[all …]
H A Djz4770.c185 static int jz4770_codec_set_bias_level(struct snd_soc_component *codec, in jz4770_codec_set_bias_level()
219 struct snd_soc_component *codec = dai->component; in jz4770_codec_startup() local
236 struct snd_soc_component *codec = dai->component; in jz4770_codec_shutdown() local
247 struct snd_soc_component *codec = dai->component; in jz4770_codec_pcm_trigger() local
272 struct snd_soc_component *codec = dai->component; in jz4770_codec_mute_stream() local
348 struct snd_soc_component *codec = snd_soc_dapm_to_component(w->dapm); in hpout_event() local
572 static void jz4770_codec_codec_init_regs(struct snd_soc_component *codec) in jz4770_codec_codec_init_regs()
635 static int jz4770_codec_codec_probe(struct snd_soc_component *codec) in jz4770_codec_codec_probe()
646 static void jz4770_codec_codec_remove(struct snd_soc_component *codec) in jz4770_codec_codec_remove()
677 struct jz_codec *codec = snd_soc_component_get_drvdata(dai->component); in jz4770_codec_hw_params() local
[all …]
H A Dhda-dai.c15 struct hda_codec *codec; in hda_codec_dai_startup() local
41 struct hda_codec *codec; in hda_codec_dai_shutdown() local
62 struct hda_codec *codec; in hda_codec_dai_hw_free() local
77 struct hda_codec *codec; in hda_codec_dai_prepare() local
/linux/sound/soc/tegra/
H A Dtegra186_dspk.c31 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_get_fifo_th() local
42 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_put_fifo_th() local
57 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_get_osr_val() local
68 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_put_osr_val() local
83 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_get_pol_sel() local
94 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_put_pol_sel() local
109 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_get_ch_sel() local
120 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_put_ch_sel() local
135 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_get_mono_to_stereo() local
146 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in tegra186_dspk_put_mono_to_stereo() local
[all …]
/linux/sound/hda/codecs/realtek/
H A Dalc260.c10 static int alc260_parse_auto_config(struct hda_codec *codec) in alc260_parse_auto_config()
34 static void alc260_gpio1_automute(struct hda_codec *codec) in alc260_gpio1_automute()
41 static void alc260_fixup_gpio1_toggle(struct hda_codec *codec, in alc260_fixup_gpio1_toggle()
59 static void alc260_fixup_kn1(struct hda_codec *codec, in alc260_fixup_kn1()
87 static void alc260_fixup_fsc_s7020(struct hda_codec *codec, in alc260_fixup_fsc_s7020()
95 static void alc260_fixup_fsc_s7020_jwse(struct hda_codec *codec, in alc260_fixup_fsc_s7020_jwse()
214 static int alc260_probe(struct hda_codec *codec, const struct hda_device_id *id) in alc260_probe()
H A Dalc861vd.c12 static int alc861vd_parse_auto_config(struct hda_codec *codec) in alc861vd_parse_auto_config()
25 static void alc861vd_fixup_dallas(struct hda_codec *codec, in alc861vd_fixup_dallas()
35 static void alc660vd_fixup_asus_gpio1(struct hda_codec *codec, in alc660vd_fixup_asus_gpio1()
65 static int alc861vd_probe(struct hda_codec *codec, const struct hda_device_id *id) in alc861vd_probe()
/linux/include/sound/
H A 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()
H A Dhda_codec.h95 #define hda_codec_to_driver(codec) \ argument
172 struct hda_codec *codec; member
325 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_read()
333 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags, in snd_hda_codec_write()
339 #define snd_hda_param_read(codec, nid, param) \ argument
341 #define snd_hda_get_sub_nodes(codec, nid, start_nid) \ argument
346 snd_hda_get_num_conns(struct hda_codec *codec, hda_nid_t nid) in snd_hda_get_num_conns()
351 #define snd_hda_get_raw_connections(codec, nid, list, max_conns) \ argument
353 #define snd_hda_get_num_raw_conns(codec, nid) \ argument
379 snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid, in snd_hda_codec_write_cache()
[all …]
/linux/sound/hda/codecs/hdmi/
H A Dnvhdmi-mcp.c50 static int nvhdmi_mcp_init(struct hda_codec *codec) in nvhdmi_mcp_init()
61 static void nvhdmi_8ch_7x_set_info_frame_parameters(struct hda_codec *codec, in nvhdmi_8ch_7x_set_info_frame_parameters()
96 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_close()
122 struct hda_codec *codec, in nvhdmi_8ch_7x_pcm_prepare()
237 static int nvhdmi_mcp_build_pcms(struct hda_codec *codec) in nvhdmi_mcp_build_pcms()
251 static int nvhdmi_mcp_build_controls(struct hda_codec *codec) in nvhdmi_mcp_build_controls()
305 static int nvhdmi_mcp_probe(struct hda_codec *codec, in nvhdmi_mcp_probe()
H A Dtegrahdmi.c66 static void tegra_hdmi_set_format(struct hda_codec *codec, in tegra_hdmi_set_format()
134 struct hda_codec *codec, in tegra_hdmi_pcm_prepare()
153 struct hda_codec *codec, in tegra_hdmi_pcm_cleanup()
162 static struct hda_pcm *hda_find_pcm_by_type(struct hda_codec *codec, int type) in hda_find_pcm_by_type()
177 static int tegra_hdmi_build_pcms(struct hda_codec *codec) in tegra_hdmi_build_pcms()
230 static int tegra_hdmi_init(struct hda_codec *codec) in tegra_hdmi_init()
261 static int tegrahdmi_probe(struct hda_codec *codec, in tegrahdmi_probe()
H A Datihdmi.c17 #define is_amdhdmi_rev3_or_later(codec) \ argument
20 #define has_amd_full_remap_support(codec) is_amdhdmi_rev3_or_later(codec) argument
93 static int get_eld_ati(struct hda_codec *codec, hda_nid_t nid, in get_eld_ati()
230 static int atihdmi_pin_get_eld(struct hda_codec *codec, hda_nid_t nid, in atihdmi_pin_get_eld()
239 static void atihdmi_pin_setup_infoframe(struct hda_codec *codec, in atihdmi_pin_setup_infoframe()
314 struct hda_codec *codec = hdac_to_hda_codec(hdac); in atihdmi_pin_set_slot_channel() local
351 struct hda_codec *codec = hdac_to_hda_codec(hdac); in atihdmi_pin_get_slot_channel() local
434 static int atihdmi_pin_hbr_setup(struct hda_codec *codec, hda_nid_t pin_nid, in atihdmi_pin_hbr_setup()
466 static int atihdmi_setup_stream(struct hda_codec *codec, hda_nid_t cvt_nid, in atihdmi_setup_stream()
484 static int atihdmi_init(struct hda_codec *codec) in atihdmi_init()
[all …]
H A Dnvhdmi.c57 static int nvhdmi_port2pin(struct hda_codec *codec, int port) in nvhdmi_port2pin()
69 static int probe_generic(struct hda_codec *codec) in probe_generic()
103 static int probe_legacy(struct hda_codec *codec) in probe_legacy()
125 static int nvhdmi_probe(struct hda_codec *codec, const struct hda_device_id *id) in nvhdmi_probe()
/linux/drivers/media/pci/zoran/
H A Dvideocodec.c20 struct videocodec *codec; member
25 const struct videocodec *codec; member
42 struct videocodec *codec; in videocodec_attach() local
109 int videocodec_detach(struct videocodec *codec) in videocodec_detach()
167 int videocodec_register(const struct videocodec *codec) in videocodec_register()
202 int videocodec_unregister(const struct videocodec *codec) in videocodec_unregister()
/linux/sound/soc/codecs/aw88395/
H A Daw88395.c176 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_profile_info() local
213 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_profile_get() local
224 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_profile_set() local
250 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_volume_get() local
262 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_volume_set() local
286 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_get_fade_step() local
297 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_set_fade_step() local
318 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_re_get() local
330 struct snd_soc_component *codec = snd_soc_kcontrol_component(kcontrol); in aw88395_re_set() local
/linux/sound/hda/codecs/helpers/
H A Dideapad_hotkey_led.c12 static bool is_ideapad(struct hda_codec *codec) in is_ideapad()
18 static void hda_fixup_ideapad_acpi(struct hda_codec *codec, in hda_fixup_ideapad_acpi()
31 static void hda_fixup_ideapad_acpi(struct hda_codec *codec, in hda_fixup_ideapad_acpi()
H A Dthinkpad.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()

12345678910>>...12