/linux/sound/pci/hda/ |
H A D | hda_codec.c | 27 #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 …]
|
H A D | hda_generic.c | 105 static void parse_user_hints(struct hda_codec *codec) in parse_user_hints() 205 #define update_pin_ctl(codec, pin, val) \ argument 210 static inline void restore_pin_ctl(struct hda_codec *codec, hda_nid_t pin) in restore_pin_ctl() 216 static void set_pin_target(struct hda_codec *codec, hda_nid_t pin, in set_pin_target() 228 static void set_pin_targets(struct hda_codec *codec, int num_pins, in set_pin_targets() 256 static struct nid_path *get_nid_path(struct hda_codec *codec, in get_nid_path() 287 int snd_hda_get_path_idx(struct hda_codec *codec, struct nid_path *path) in snd_hda_get_path_idx() 308 struct nid_path *snd_hda_get_path_from_idx(struct hda_codec *codec, int idx) in snd_hda_get_path_from_idx() 319 static bool is_dac_already_used(struct hda_codec *codec, hda_nid_t nid) in is_dac_already_used() 333 static bool is_reachable_path(struct hda_codec *codec, in is_reachable_path() [all …]
|
H A D | patch_conexant.c | 74 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 void cxt_init_gpio_led(struct hda_codec *codec) in cxt_init_gpio_led() 167 static void cx_fixup_headset_recog(struct hda_codec *codec) in cx_fixup_headset_recog() 188 static int cx_auto_init(struct hda_codec *codec) in cx_auto_init() 204 static void cx_auto_shutdown(struct hda_codec *codec) in cx_auto_shutdown() [all …]
|
H A D | patch_realtek.c | 146 static void coef_mutex_lock(struct hda_codec *codec) in coef_mutex_lock() 154 static void coef_mutex_unlock(struct hda_codec *codec) in coef_mutex_unlock() 162 static int __alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_read_coefex_idx() 172 static int alc_read_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_read_coefex_idx() 183 #define alc_read_coef_idx(codec, coef_idx) \ argument 186 static void __alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_write_coefex_idx() 193 static void alc_write_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_write_coefex_idx() 201 #define alc_write_coef_idx(codec, coef_idx, coef_val) \ argument 204 static void __alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in __alc_update_coefex_idx() 215 static void alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid, in alc_update_coefex_idx() [all …]
|
H A D | patch_cs8409.c | 22 static int cs8409_parse_auto_config(struct hda_codec *codec) in cs8409_parse_auto_config() 55 static struct cs8409_spec *cs8409_alloc_spec(struct hda_codec *codec) in cs8409_alloc_spec() 72 static inline int cs8409_vendor_coef_get(struct hda_codec *codec, unsigned int idx) in cs8409_vendor_coef_get() 78 static inline void cs8409_vendor_coef_set(struct hda_codec *codec, unsigned int idx, in cs8409_vendor_coef_set() 91 static void cs8409_disable_i2c_clock(struct hda_codec *codec) in cs8409_disable_i2c_clock() 120 static void cs8409_enable_i2c_clock(struct hda_codec *codec) in cs8409_enable_i2c_clock() 146 static int cs8409_i2c_wait_complete(struct hda_codec *codec) in cs8409_i2c_wait_complete() 159 static void cs8409_set_i2c_dev_addr(struct hda_codec *codec, unsigned int addr) in cs8409_set_i2c_dev_addr() 178 struct hda_codec *codec = scodec->codec; in cs8409_i2c_set_page() local 199 struct hda_codec *codec = scodec->codec; in cs8409_i2c_read() local [all …]
|
H A D | hda_bind.c | 23 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 63 int snd_hda_codec_set_name(struct hda_codec *codec, const char *name) in snd_hda_codec_set_name() 88 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_probe() local 152 struct hda_codec *codec = dev_to_hda_codec(dev); in hda_codec_driver_remove() local 202 static inline bool codec_probed(struct hda_codec *codec) in codec_probed() 208 static void request_codec_module(struct hda_codec *codec) in request_codec_module() 237 static void codec_bind_module(struct hda_codec *codec) in codec_bind_module() 248 static bool is_likely_hdmi_codec(struct hda_codec *codec) in is_likely_hdmi_codec() 274 #define is_likely_hdmi_codec(codec) false argument [all …]
|
H A D | hda_jack.c | 29 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_disconnect(struct hda_codec *codec) in snd_hda_jack_tbl_disconnect() 172 void snd_hda_jack_tbl_clear(struct hda_codec *codec) in snd_hda_jack_tbl_clear() 195 static void jack_detect_update(struct hda_codec *codec, in jack_detect_update() 233 void snd_hda_jack_set_dirty_all(struct hda_codec *codec) in snd_hda_jack_set_dirty_all() [all …]
|
H A D | patch_hdmi.c | 78 struct hda_codec *codec; member 132 struct hda_codec *codec; member 197 static inline bool codec_has_acomp(struct hda_codec *codec) in codec_has_acomp() 203 #define codec_has_acomp(codec) false argument 251 static int pin_id_to_pin_index(struct hda_codec *codec, in pin_id_to_pin_index() 276 static int hinfo_to_pcm_index(struct hda_codec *codec, in hinfo_to_pcm_index() 290 static int hinfo_to_pin_index(struct hda_codec *codec, in hinfo_to_pin_index() 323 static int cvt_nid_to_cvt_index(struct hda_codec *codec, hda_nid_t cvt_nid) in cvt_nid_to_cvt_index() 339 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_info() local 366 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in hdmi_eld_ctl_get() local [all …]
|
H A D | patch_ca0132.c | 1135 struct hda_codec *codec; member 1527 static unsigned int codec_send_command(struct hda_codec *codec, hda_nid_t nid, in codec_send_command() 1537 static int codec_set_converter_format(struct hda_codec *codec, hda_nid_t nid, in codec_set_converter_format() 1544 static int codec_set_converter_stream_channel(struct hda_codec *codec, in codec_set_converter_stream_channel() 1556 static int chipio_send(struct hda_codec *codec, in chipio_send() 1578 static int chipio_write_address(struct hda_codec *codec, in chipio_write_address() 1605 static int chipio_write_data(struct hda_codec *codec, unsigned int data) in chipio_write_data() 1629 static int chipio_write_data_multiple(struct hda_codec *codec, in chipio_write_data_multiple() 1650 static int chipio_read_data(struct hda_codec *codec, unsigned int *data) in chipio_read_data() 1681 static int chipio_write(struct hda_codec *codec, in chipio_write() [all …]
|
H A D | hda_proc.c | 22 #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 …]
|
H A D | patch_senarytech.c | 63 static int senary_auto_parse_beep(struct hda_codec *codec) in senary_auto_parse_beep() 75 #define senary_auto_parse_beep(codec) 0 argument 79 static void senary_auto_parse_eapd(struct hda_codec *codec) in senary_auto_parse_eapd() 95 static void senary_auto_turn_eapd(struct hda_codec *codec, int num_pins, in senary_auto_turn_eapd() 111 struct hda_codec *codec = private_data; in senary_auto_vmaster_hook() local 117 static void senary_init_gpio_led(struct hda_codec *codec) in senary_init_gpio_led() 132 static int senary_auto_init(struct hda_codec *codec) in senary_auto_init() 141 static void senary_auto_shutdown(struct hda_codec *codec) in senary_auto_shutdown() 151 static void senary_auto_free(struct hda_codec *codec) in senary_auto_free() 157 static int senary_auto_suspend(struct hda_codec *codec) in senary_auto_suspend() [all …]
|
H A D | hda_auto_parser.c | 56 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 D | patch_si3054.c | 64 #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 D | patch_cmedia.c | 48 struct hda_codec *codec; member 152 static void hp_callback(struct hda_codec *codec, struct hda_jack_callback *cb) in hp_callback() 169 static void cm9825_setup_unsol(struct hda_codec *codec) in cm9825_setup_unsol() 178 static int cm9825_init(struct hda_codec *codec) in cm9825_init() 186 static void cm9825_free(struct hda_codec *codec) in cm9825_free() 194 static int cm9825_suspend(struct hda_codec *codec) in cm9825_suspend() 205 static int cm9825_resume(struct hda_codec *codec) in cm9825_resume() 256 static int patch_cm9825(struct hda_codec *codec) in patch_cm9825() 303 static int patch_cmi9880(struct hda_codec *codec) in patch_cmi9880() 332 static int patch_cmi8888(struct hda_codec *codec) in patch_cmi8888()
|
H A D | hda_local.h | 119 #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 …]
|
/linux/sound/hda/ |
H A D | hdac_regmap.c | 25 static int codec_pm_lock(struct hdac_device *codec) in codec_pm_lock() 30 static void codec_pm_unlock(struct hdac_device *codec, int lock) in codec_pm_unlock() 40 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_volatile_reg() local 67 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_writeable_reg() local 116 struct hdac_device *codec = dev_to_hdac_dev(dev); in hda_readable_reg() local 156 static int hda_reg_read_stereo_amp(struct hdac_device *codec, in hda_reg_read_stereo_amp() 174 static int hda_reg_write_stereo_amp(struct hdac_device *codec, in hda_reg_write_stereo_amp() 204 static int hda_reg_read_coef(struct hdac_device *codec, unsigned int reg, in hda_reg_read_coef() 222 static int hda_reg_write_coef(struct hdac_device *codec, unsigned int reg, in hda_reg_write_coef() 242 struct hdac_device *codec = context; in hda_reg_read() local [all …]
|
H A D | hdac_device.c | 41 int snd_hdac_device_init(struct hdac_device *codec, struct hdac_bus *bus, in snd_hdac_device_init() 128 void snd_hdac_device_exit(struct hdac_device *codec) in snd_hdac_device_exit() 143 int snd_hdac_device_register(struct hdac_device *codec) in snd_hdac_device_register() 166 void snd_hdac_device_unregister(struct hdac_device *codec) in snd_hdac_device_unregister() 185 int snd_hdac_device_set_chip_name(struct hdac_device *codec, const char *name) in snd_hdac_device_set_chip_name() 208 int snd_hdac_codec_modalias(const struct hdac_device *codec, char *buf, size_t size) in snd_hdac_codec_modalias() 225 static unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd() 257 int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd, in snd_hdac_exec_verb() 276 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read() 294 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm() [all …]
|
H A 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/sound/pci/ali5451/ |
H A D | ali5451.c | 141 #define ALI_REG(codec, x) ((codec)->port + x) argument 180 struct snd_ali *codec; member 264 static inline unsigned int snd_ali_5451_peek(struct snd_ali *codec, in snd_ali_5451_peek() 270 static inline void snd_ali_5451_poke(struct snd_ali *codec, in snd_ali_5451_poke() 277 static int snd_ali_codec_ready(struct snd_ali *codec, in snd_ali_codec_ready() 299 static int snd_ali_stimer_ready(struct snd_ali *codec) in snd_ali_stimer_ready() 320 static void snd_ali_codec_poke(struct snd_ali *codec,int secondary, in snd_ali_codec_poke() 352 static unsigned short snd_ali_codec_peek(struct snd_ali *codec, in snd_ali_codec_peek() 391 struct snd_ali *codec = ac97->private_data; in snd_ali_codec_write() local 407 struct snd_ali *codec = ac97->private_data; in snd_ali_codec_read() local [all …]
|
/linux/sound/soc/codecs/ |
H A D | hda.c | 16 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() 175 struct hda_codec *codec = dev_to_hda_codec(component->dev); in hda_codec_probe() local 273 struct hda_codec *codec = dev_to_hda_codec(component->dev); in hda_codec_remove() local 350 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); in hda_hdev_attach() local 382 struct hda_codec *codec = dev_to_hda_codec(&hdev->dev); in hda_hdev_detach() local
|
H A D | cs40l50-codec.c | 77 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 D | hda-dai.c | 15 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/include/sound/ |
H A D | hda_regmap.h | 79 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/drivers/media/pci/zoran/ |
H A D | videocodec.c | 20 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 D | aw88395.c | 176 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
|