Home
last modified time | relevance | path

Searched refs:ac97 (Results 1 - 25 of 219) sorted by relevance

123456789

/kernel/linux/linux-6.6/sound/pci/ac97/
H A Dac97_codec.c49 int (*patch)(struct snd_ac97 *ac97);
50 int (*mpatch)(struct snd_ac97 *ac97);
194 static void update_power_regs(struct snd_ac97 *ac97);
196 #define ac97_is_power_save_mode(ac97) \
197 ((ac97->scaps & AC97_SCAP_POWER_SAVE) && power_save)
199 #define ac97_is_power_save_mode(ac97) 0
202 #define ac97_err(ac97, fmt, args...) \
203 dev_err((ac97)->bus->card->dev, fmt, ##args)
204 #define ac97_warn(ac97, fmt, args...) \
205 dev_warn((ac97)
213 snd_ac97_valid_reg(struct snd_ac97 *ac97, unsigned short reg) snd_ac97_valid_reg() argument
271 snd_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) snd_ac97_write() argument
296 snd_ac97_read(struct snd_ac97 *ac97, unsigned short reg) snd_ac97_read() argument
304 snd_ac97_read_cache(struct snd_ac97 *ac97, unsigned short reg) snd_ac97_read_cache() argument
325 snd_ac97_write_cache(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) snd_ac97_write_cache() argument
350 snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) snd_ac97_update() argument
382 snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value) snd_ac97_update_bits() argument
397 snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value) snd_ac97_update_bits_nolock() argument
414 snd_ac97_ad18xx_update_pcm_bits(struct snd_ac97 *ac97, int codec, unsigned short mask, unsigned short value) snd_ac97_ad18xx_update_pcm_bits() argument
458 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_get_enum_double() local
475 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_put_enum_double() local
496 snd_ac97_page_save(struct snd_ac97 *ac97, int reg, struct snd_kcontrol *kcontrol) snd_ac97_page_save() argument
510 snd_ac97_page_restore(struct snd_ac97 *ac97, int page_save) snd_ac97_page_restore() argument
536 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_get_volsw() local
560 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_put_volsw() local
679 set_inv_eapd(struct snd_ac97 *ac97, struct snd_kcontrol *kctl) set_inv_eapd() argument
717 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_spdif_default_get() local
730 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_spdif_default_put() local
804 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_put_spsa() local
873 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_info_bits() local
890 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_get_bits() local
904 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_put_bits() local
936 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_get_volume() local
948 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_put_volume() local
1001 snd_ac97_free(struct snd_ac97 *ac97) snd_ac97_free() argument
1019 struct snd_ac97 *ac97 = device->device_data; snd_ac97_dev_free() local
1024 snd_ac97_try_volume_mix(struct snd_ac97 * ac97, int reg) snd_ac97_try_volume_mix() argument
1074 check_volume_resolution(struct snd_ac97 *ac97, int reg, unsigned char *lo_max, unsigned char *hi_max) check_volume_resolution() argument
1114 snd_ac97_try_bit(struct snd_ac97 * ac97, int reg, int bit) snd_ac97_try_bit() argument
1128 snd_ac97_change_volume_params2(struct snd_ac97 * ac97, int reg, int shift, unsigned char *max) snd_ac97_change_volume_params2() argument
1154 snd_ac97_cnew(const struct snd_kcontrol_new *_template, struct snd_ac97 * ac97) snd_ac97_cnew() argument
1166 snd_ac97_cmute_new_stereo(struct snd_card *card, char *name, int reg, int check_stereo, int check_amix, struct snd_ac97 *ac97) snd_ac97_cmute_new_stereo() argument
1236 snd_ac97_cvol_new(struct snd_card *card, char *name, int reg, unsigned int lo_max, unsigned int hi_max, struct snd_ac97 *ac97) snd_ac97_cvol_new() argument
1275 snd_ac97_cmix_new_stereo(struct snd_card *card, const char *pfx, int reg, int check_stereo, int check_amix, struct snd_ac97 *ac97) snd_ac97_cmix_new_stereo() argument
1311 snd_ac97_mixer_build(struct snd_ac97 * ac97) snd_ac97_mixer_build() argument
1708 snd_ac97_modem_build(struct snd_card *card, struct snd_ac97 * ac97) snd_ac97_modem_build() argument
1739 snd_ac97_test_rate(struct snd_ac97 *ac97, int reg, int shadow_reg, int rate) snd_ac97_test_rate() argument
1752 snd_ac97_determine_rates(struct snd_ac97 *ac97, int reg, int shadow_reg, unsigned int *r_result) snd_ac97_determine_rates() argument
1812 snd_ac97_determine_spdif_rates(struct snd_ac97 *ac97) snd_ac97_determine_spdif_rates() argument
1843 snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name, int modem) snd_ac97_get_name() argument
1883 snd_ac97_get_short_name(struct snd_ac97 *ac97) snd_ac97_get_short_name() argument
1898 ac97_reset_wait(struct snd_ac97 *ac97, int timeout, int with_modem) ac97_reset_wait() argument
1999 struct snd_ac97 *ac97 = device->device_data; snd_ac97_dev_register() local
2021 struct snd_ac97 *ac97 = device->device_data; snd_ac97_dev_disconnect() local
2060 struct snd_ac97 *ac97; snd_ac97_mixer() local
2365 snd_ac97_powerdown(struct snd_ac97 *ac97) snd_ac97_powerdown() argument
2437 snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup) snd_ac97_update_power() argument
2477 update_power_regs(struct snd_ac97 *ac97) update_power_regs() argument
2529 snd_ac97_suspend(struct snd_ac97 *ac97) snd_ac97_suspend() argument
2546 snd_ac97_restore_status(struct snd_ac97 *ac97) snd_ac97_restore_status() argument
2567 snd_ac97_restore_iec958(struct snd_ac97 *ac97) snd_ac97_restore_iec958() argument
2590 snd_ac97_resume(struct snd_ac97 *ac97) snd_ac97_resume() argument
2671 snd_ac97_remove_ctl(struct snd_ac97 *ac97, const char *name, const char *suffix) snd_ac97_remove_ctl() argument
2681 ctl_find(struct snd_ac97 *ac97, const char *name, const char *suffix) ctl_find() argument
2691 snd_ac97_rename_ctl(struct snd_ac97 *ac97, const char *src, const char *dst, const char *suffix) snd_ac97_rename_ctl() argument
2706 snd_ac97_rename_vol_ctl(struct snd_ac97 *ac97, const char *src, const char *dst) snd_ac97_rename_vol_ctl() argument
2714 snd_ac97_swap_ctl(struct snd_ac97 *ac97, const char *s1, const char *s2, const char *suffix) snd_ac97_swap_ctl() argument
2749 tune_hp_only(struct snd_ac97 *ac97) tune_hp_only() argument
2764 tune_hp_only(struct snd_ac97 *ac97) tune_hp_only() argument
2776 tune_swap_hp(struct snd_ac97 *ac97) tune_swap_hp() argument
2786 tune_swap_surround(struct snd_ac97 *ac97) tune_swap_surround() argument
2795 tune_ad_sharing(struct snd_ac97 *ac97) tune_ad_sharing() argument
2812 tune_alc_jack(struct snd_ac97 *ac97) tune_alc_jack() argument
2827 tune_inv_eapd(struct snd_ac97 *ac97) tune_inv_eapd() argument
2840 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); master_mute_sw_put() local
2856 tune_mute_led(struct snd_ac97 *ac97) tune_mute_led() argument
2876 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); hp_master_mute_sw_put() local
2891 tune_hp_mute_led(struct snd_ac97 *ac97) tune_hp_mute_led() argument
2927 apply_quirk(struct snd_ac97 *ac97, int type) apply_quirk() argument
2939 apply_quirk_str(struct snd_ac97 *ac97, const char *typestr) apply_quirk_str() argument
2968 snd_ac97_tune_hardware(struct snd_ac97 *ac97, const struct ac97_quirk *quirk, const char *override) snd_ac97_tune_hardware() argument
[all...]
H A Dac97_patch.c18 static struct snd_kcontrol *snd_ac97_find_mixer_ctl(struct snd_ac97 *ac97,
20 static int snd_ac97_add_vmaster(struct snd_ac97 *ac97, char *name,
28 static int patch_build_controls(struct snd_ac97 * ac97, const struct snd_kcontrol_new *controls, int count) in patch_build_controls() argument
33 err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&controls[idx], ac97)); in patch_build_controls()
41 static void reset_tlv(struct snd_ac97 *ac97, const char *name, in reset_tlv() argument
49 kctl = snd_ctl_find_id(ac97->bus->card, &sid); in reset_tlv()
55 static int ac97_update_bits_page(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value, unsigned short page) in ac97_update_bits_page() argument
60 mutex_lock(&ac97->page_mutex); in ac97_update_bits_page()
61 page_save = snd_ac97_read(ac97, AC97_INT_PAGIN in ac97_update_bits_page()
81 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); ac97_surround_jack_mode_get() local
89 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); ac97_surround_jack_mode_put() local
110 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); ac97_channel_mode_get() local
118 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); ac97_channel_mode_put() local
172 is_surround_on(struct snd_ac97 *ac97) is_surround_on() argument
177 is_clfe_on(struct snd_ac97 *ac97) is_clfe_on() argument
183 is_shared_surrout(struct snd_ac97 *ac97) is_shared_surrout() argument
189 is_shared_clfeout(struct snd_ac97 *ac97) is_shared_clfeout() argument
195 is_shared_linein(struct snd_ac97 *ac97) is_shared_linein() argument
201 is_shared_micin(struct snd_ac97 *ac97) is_shared_micin() argument
206 alc850_is_aux_back_surround(struct snd_ac97 *ac97) alc850_is_aux_back_surround() argument
230 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf7x3_get_speaker() local
244 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf7x3_put_speaker() local
275 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf7x3_spdif_source_get() local
286 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf7x3_spdif_source_put() local
295 patch_yamaha_ymf7x3_3d(struct snd_ac97 *ac97) patch_yamaha_ymf7x3_3d() argument
331 patch_yamaha_ymf743_build_spdif(struct snd_ac97 *ac97) patch_yamaha_ymf743_build_spdif() argument
353 patch_yamaha_ymf743(struct snd_ac97 *ac97) patch_yamaha_ymf743() argument
376 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf753_spdif_output_pin_get() local
386 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf753_spdif_output_pin_put() local
417 patch_yamaha_ymf753_post_spdif(struct snd_ac97 * ac97) patch_yamaha_ymf753_post_spdif() argument
432 patch_yamaha_ymf753(struct snd_ac97 * ac97) patch_yamaha_ymf753() argument
458 patch_wolfson_wm9703_specific(struct snd_ac97 * ac97) patch_wolfson_wm9703_specific() argument
479 patch_wolfson03(struct snd_ac97 * ac97) patch_wolfson03() argument
494 patch_wolfson_wm9704_specific(struct snd_ac97 * ac97) patch_wolfson_wm9704_specific() argument
511 patch_wolfson04(struct snd_ac97 * ac97) patch_wolfson04() argument
518 patch_wolfson05(struct snd_ac97 * ac97) patch_wolfson05() argument
634 patch_wolfson_wm9711_specific(struct snd_ac97 * ac97) patch_wolfson_wm9711_specific() argument
656 patch_wolfson11(struct snd_ac97 * ac97) patch_wolfson11() argument
802 patch_wolfson_wm9713_3d(struct snd_ac97 * ac97) patch_wolfson_wm9713_3d() argument
814 patch_wolfson_wm9713_specific(struct snd_ac97 * ac97) patch_wolfson_wm9713_specific() argument
834 patch_wolfson_wm9713_suspend(struct snd_ac97 * ac97) patch_wolfson_wm9713_suspend() argument
840 patch_wolfson_wm9713_resume(struct snd_ac97 * ac97) patch_wolfson_wm9713_resume() argument
857 patch_wolfson13(struct snd_ac97 * ac97) patch_wolfson13() argument
877 patch_tritech_tr28028(struct snd_ac97 * ac97) patch_tritech_tr28028() argument
889 patch_sigmatel_stac9700_3d(struct snd_ac97 * ac97) patch_sigmatel_stac9700_3d() argument
903 patch_sigmatel_stac9708_3d(struct snd_ac97 * ac97) patch_sigmatel_stac9708_3d() argument
938 patch_sigmatel_stac97xx_specific(struct snd_ac97 * ac97) patch_sigmatel_stac97xx_specific() argument
971 patch_sigmatel_stac9700(struct snd_ac97 * ac97) patch_sigmatel_stac9700() argument
979 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9708_put_bias() local
1000 patch_sigmatel_stac9708_specific(struct snd_ac97 *ac97) patch_sigmatel_stac9708_specific() argument
1019 patch_sigmatel_stac9708(struct snd_ac97 * ac97) patch_sigmatel_stac9708() argument
1045 patch_sigmatel_stac9721(struct snd_ac97 * ac97) patch_sigmatel_stac9721() argument
1059 patch_sigmatel_stac9744(struct snd_ac97 * ac97) patch_sigmatel_stac9744() argument
1071 patch_sigmatel_stac9756(struct snd_ac97 * ac97) patch_sigmatel_stac9756() argument
1094 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_output_jack_get() local
1108 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_output_jack_put() local
1133 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_input_jack_get() local
1144 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_input_jack_put() local
1162 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_phonesel_get() local
1170 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_phonesel_put() local
1207 patch_sigmatel_stac9758_specific(struct snd_ac97 *ac97) patch_sigmatel_stac9758_specific() argument
1234 patch_sigmatel_stac9758(struct snd_ac97 * ac97) patch_sigmatel_stac9758() argument
1282 patch_cirrus_build_spdif(struct snd_ac97 * ac97) patch_cirrus_build_spdif() argument
1311 patch_cirrus_spdif(struct snd_ac97 * ac97) patch_cirrus_spdif() argument
1332 patch_cirrus_cs4299(struct snd_ac97 * ac97) patch_cirrus_cs4299() argument
1347 patch_conexant_build_spdif(struct snd_ac97 * ac97) patch_conexant_build_spdif() argument
1370 patch_conexant(struct snd_ac97 * ac97) patch_conexant() argument
1379 patch_cx20551(struct snd_ac97 *ac97) patch_cx20551() argument
1389 ad18xx_resume(struct snd_ac97 *ac97) ad18xx_resume() argument
1452 ad1888_resume(struct snd_ac97 *ac97) ad1888_resume() argument
1471 patch_ad1819(struct snd_ac97 * ac97) patch_ad1819() argument
1482 patch_ad1881_unchained(struct snd_ac97 * ac97, int idx, unsigned short mask) patch_ad1881_unchained() argument
1498 patch_ad1881_chained1(struct snd_ac97 * ac97, int idx, unsigned short codec_bits) patch_ad1881_chained1() argument
1516 patch_ad1881_chained(struct snd_ac97 * ac97, int unchained_idx, int cidx1, int cidx2) patch_ad1881_chained() argument
1548 patch_ad1881(struct snd_ac97 * ac97) patch_ad1881() argument
1618 patch_ad1885_specific(struct snd_ac97 * ac97) patch_ad1885_specific() argument
1637 patch_ad1885(struct snd_ac97 * ac97) patch_ad1885() argument
1650 patch_ad1886_specific(struct snd_ac97 * ac97) patch_ad1886_specific() argument
1664 patch_ad1886(struct snd_ac97 * ac97) patch_ad1886() argument
1785 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad198x_spdif_source_get() local
1795 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad198x_spdif_source_put() local
1812 patch_ad198x_post_spdif(struct snd_ac97 * ac97) patch_ad198x_post_spdif() argument
1841 check_list(struct snd_ac97 *ac97, const unsigned int *list) check_list() argument
1850 patch_ad1981a_specific(struct snd_ac97 * ac97) patch_ad1981a_specific() argument
1882 check_ad1981_hp_jack_sense(struct snd_ac97 *ac97) check_ad1981_hp_jack_sense() argument
1889 patch_ad1981a(struct snd_ac97 *ac97) patch_ad1981a() argument
1902 patch_ad1981b_specific(struct snd_ac97 *ac97) patch_ad1981b_specific() argument
1923 patch_ad1981b(struct snd_ac97 *ac97) patch_ad1981b() argument
1937 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1888_lohpsel_get() local
1950 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1888_lohpsel_put() local
1970 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1888_downmix_get() local
1983 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1888_downmix_put() local
1997 ad1888_update_jacks(struct snd_ac97 *ac97) ad1888_update_jacks() argument
2036 patch_ad1888_specific(struct snd_ac97 *ac97) patch_ad1888_specific() argument
2057 patch_ad1888(struct snd_ac97 * ac97) patch_ad1888() argument
2088 patch_ad1980_specific(struct snd_ac97 *ac97) patch_ad1980_specific() argument
2107 patch_ad1980(struct snd_ac97 * ac97) patch_ad1980() argument
2128 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1985_vrefout_get() local
2140 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1985_vrefout_put() local
2184 ad1985_update_jacks(struct snd_ac97 *ac97) ad1985_update_jacks() argument
2192 patch_ad1985_specific(struct snd_ac97 *ac97) patch_ad1985_specific() argument
2218 patch_ad1985(struct snd_ac97 * ac97) patch_ad1985() argument
2248 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_lososel_get() local
2259 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_lososel_put() local
2284 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_spread_get() local
2295 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_spread_put() local
2320 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_miclisel_get() local
2329 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_miclisel_put() local
2345 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_vrefout_get() local
2363 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_vrefout_put() local
2457 ad1986_update_jacks(struct snd_ac97 *ac97) ad1986_update_jacks() argument
2490 patch_ad1986_specific(struct snd_ac97 *ac97) patch_ad1986_specific() argument
2511 patch_ad1986(struct snd_ac97 * ac97) patch_ad1986() argument
2526 patch_alc203(struct snd_ac97 *ac97) patch_alc203() argument
2535 alc650_update_jacks(struct snd_ac97 *ac97) alc650_update_jacks() argument
2559 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); alc650_swap_surround_put() local
2613 patch_alc650_specific(struct snd_ac97 * ac97) patch_alc650_specific() argument
2636 patch_alc650(struct snd_ac97 * ac97) patch_alc650() argument
2694 alc655_update_jacks(struct snd_ac97 *ac97) alc655_update_jacks() argument
2725 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); alc655_iec958_route_info() local
2735 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); alc655_iec958_route_get() local
2748 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); alc655_iec958_route_put() local
2768 patch_alc655_specific(struct snd_ac97 * ac97) patch_alc655_specific() argument
2788 patch_alc655(struct snd_ac97 * ac97) patch_alc655() argument
2847 alc850_update_jacks(struct snd_ac97 *ac97) alc850_update_jacks() argument
2882 patch_alc850_specific(struct snd_ac97 *ac97) patch_alc850_specific() argument
2902 patch_alc850(struct snd_ac97 *ac97) patch_alc850() argument
2937 patch_aztech_azf3328_specific(struct snd_ac97 *ac97) patch_aztech_azf3328_specific() argument
2975 patch_aztech_azf3328(struct snd_ac97 *ac97) patch_aztech_azf3328() argument
2984 cm9738_update_jacks(struct snd_ac97 *ac97) cm9738_update_jacks() argument
2997 patch_cm9738_specific(struct snd_ac97 * ac97) patch_cm9738_specific() argument
3007 patch_cm9738(struct snd_ac97 * ac97) patch_cm9738() argument
3027 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_cmedia_spdif_playback_source_get() local
3037 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_cmedia_spdif_playback_source_put() local
3062 cm9739_update_jacks(struct snd_ac97 *ac97) cm9739_update_jacks() argument
3077 patch_cm9739_specific(struct snd_ac97 * ac97) patch_cm9739_specific() argument
3082 patch_cm9739_post_spdif(struct snd_ac97 * ac97) patch_cm9739_post_spdif() argument
3093 patch_cm9739(struct snd_ac97 * ac97) patch_cm9739() argument
3152 cm9761_update_jacks(struct snd_ac97 *ac97) cm9761_update_jacks() argument
3201 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); cm9761_spdif_out_source_get() local
3214 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); cm9761_spdif_out_source_put() local
3247 patch_cm9761_post_spdif(struct snd_ac97 * ac97) patch_cm9761_post_spdif() argument
3252 patch_cm9761_specific(struct snd_ac97 * ac97) patch_cm9761_specific() argument
3263 patch_cm9761(struct snd_ac97 *ac97) patch_cm9761() argument
3350 patch_cm9780_specific(struct snd_ac97 *ac97) patch_cm9780_specific() argument
3360 patch_cm9780(struct snd_ac97 *ac97) patch_cm9780() argument
3384 patch_vt1613_specific(struct snd_ac97 *ac97) patch_vt1613_specific() argument
3394 patch_vt1613(struct snd_ac97 *ac97) patch_vt1613() argument
3431 snd_ac97_find_mixer_ctl(struct snd_ac97 *ac97, const char *name) snd_ac97_find_mixer_ctl() argument
3438 snd_ac97_add_vmaster(struct snd_ac97 *ac97, char *name, const unsigned int *tlv, const char * const *followers) snd_ac97_add_vmaster() argument
3455 patch_vt1616_specific(struct snd_ac97 * ac97) patch_vt1616_specific() argument
3493 patch_vt1616(struct snd_ac97 * ac97) patch_vt1616() argument
3589 patch_vt1617a(struct snd_ac97 * ac97) patch_vt1617a() argument
3804 patch_vt1618(struct snd_ac97 *ac97) patch_vt1618() argument
3812 it2646_update_jacks(struct snd_ac97 *ac97) it2646_update_jacks() argument
3833 patch_it2646_specific(struct snd_ac97 * ac97) patch_it2646_specific() argument
3850 patch_it2646(struct snd_ac97 * ac97) patch_it2646() argument
3870 patch_si3036_specific(struct snd_ac97 * ac97) patch_si3036_specific() argument
3885 mpatch_si3036(struct snd_ac97 * ac97) mpatch_si3036() argument
3917 patch_lm4550(struct snd_ac97 *ac97) patch_lm4550() argument
[all...]
H A Dac97_proc.c22 static void snd_ac97_proc_read_functions(struct snd_ac97 *ac97, struct snd_info_buffer *buffer) in snd_ac97_proc_read_functions() argument
37 snd_ac97_write(ac97, AC97_FUNC_SELECT, function << 1); in snd_ac97_proc_read_functions()
38 info = snd_ac97_read(ac97, AC97_FUNC_INFO); in snd_ac97_proc_read_functions()
45 sense_info = snd_ac97_read(ac97, AC97_SENSE_INFO); in snd_ac97_proc_read_functions()
92 static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx) in snd_ac97_proc_read_main() argument
101 snd_ac97_get_name(NULL, ac97->id, name, 0); in snd_ac97_proc_read_main()
102 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); in snd_ac97_proc_read_main()
104 if ((ac97->scaps & AC97_SCAP_AUDIO) == 0) in snd_ac97_proc_read_main()
108 ac97 in snd_ac97_proc_read_main()
330 struct snd_ac97 *ac97 = entry->private_data; snd_ac97_proc_read() local
365 struct snd_ac97 *ac97 = entry->private_data; snd_ac97_proc_regs_write() local
380 snd_ac97_proc_regs_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx) snd_ac97_proc_regs_read_main() argument
393 struct snd_ac97 *ac97 = entry->private_data; snd_ac97_proc_regs_read() local
414 snd_ac97_proc_init(struct snd_ac97 * ac97) snd_ac97_proc_init() argument
442 snd_ac97_proc_done(struct snd_ac97 * ac97) snd_ac97_proc_done() argument
[all...]
H A Dac97_pcm.c159 static int set_spdif_rate(struct snd_ac97 *ac97, unsigned short rate) in set_spdif_rate() argument
164 if (! (ac97->ext_id & AC97_EI_SPDIF)) in set_spdif_rate()
168 if (ac97->flags & AC97_CS_SPDIF) { in set_spdif_rate()
173 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0); in set_spdif_rate()
179 if (ac97->id == AC97_ID_CM9739 && rate != 48000) { in set_spdif_rate()
180 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0); in set_spdif_rate()
188 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0); in set_spdif_rate()
195 mutex_lock(&ac97->reg_mutex); in set_spdif_rate()
196 old = snd_ac97_read(ac97, reg) & mask; in set_spdif_rate()
198 snd_ac97_update_bits_nolock(ac97, AC97_EXTENDED_STATU in set_spdif_rate()
243 snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate) snd_ac97_set_rate() argument
307 get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *spdif_slots) get_pslots() argument
382 get_cslots(struct snd_ac97 *ac97) get_cslots() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/ac97/
H A Dac97_patch.c18 static struct snd_kcontrol *snd_ac97_find_mixer_ctl(struct snd_ac97 *ac97,
20 static int snd_ac97_add_vmaster(struct snd_ac97 *ac97, char *name,
28 static int patch_build_controls(struct snd_ac97 * ac97, const struct snd_kcontrol_new *controls, int count) in patch_build_controls() argument
33 if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&controls[idx], ac97))) < 0) in patch_build_controls()
39 static void reset_tlv(struct snd_ac97 *ac97, const char *name, in reset_tlv() argument
47 kctl = snd_ctl_find_id(ac97->bus->card, &sid); in reset_tlv()
53 static int ac97_update_bits_page(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value, unsigned short page) in ac97_update_bits_page() argument
58 mutex_lock(&ac97->page_mutex); in ac97_update_bits_page()
59 page_save = snd_ac97_read(ac97, AC97_INT_PAGIN in ac97_update_bits_page()
79 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); ac97_surround_jack_mode_get() local
87 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); ac97_surround_jack_mode_put() local
108 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); ac97_channel_mode_get() local
116 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); ac97_channel_mode_put() local
170 is_surround_on(struct snd_ac97 *ac97) is_surround_on() argument
175 is_clfe_on(struct snd_ac97 *ac97) is_clfe_on() argument
181 is_shared_surrout(struct snd_ac97 *ac97) is_shared_surrout() argument
187 is_shared_clfeout(struct snd_ac97 *ac97) is_shared_clfeout() argument
193 is_shared_linein(struct snd_ac97 *ac97) is_shared_linein() argument
199 is_shared_micin(struct snd_ac97 *ac97) is_shared_micin() argument
204 alc850_is_aux_back_surround(struct snd_ac97 *ac97) alc850_is_aux_back_surround() argument
228 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf7x3_get_speaker() local
242 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf7x3_put_speaker() local
273 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf7x3_spdif_source_get() local
284 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf7x3_spdif_source_put() local
293 patch_yamaha_ymf7x3_3d(struct snd_ac97 *ac97) patch_yamaha_ymf7x3_3d() argument
329 patch_yamaha_ymf743_build_spdif(struct snd_ac97 *ac97) patch_yamaha_ymf743_build_spdif() argument
351 patch_yamaha_ymf743(struct snd_ac97 *ac97) patch_yamaha_ymf743() argument
374 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf753_spdif_output_pin_get() local
384 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ymf753_spdif_output_pin_put() local
415 patch_yamaha_ymf753_post_spdif(struct snd_ac97 * ac97) patch_yamaha_ymf753_post_spdif() argument
429 patch_yamaha_ymf753(struct snd_ac97 * ac97) patch_yamaha_ymf753() argument
455 patch_wolfson_wm9703_specific(struct snd_ac97 * ac97) patch_wolfson_wm9703_specific() argument
475 patch_wolfson03(struct snd_ac97 * ac97) patch_wolfson03() argument
490 patch_wolfson_wm9704_specific(struct snd_ac97 * ac97) patch_wolfson_wm9704_specific() argument
506 patch_wolfson04(struct snd_ac97 * ac97) patch_wolfson04() argument
513 patch_wolfson05(struct snd_ac97 * ac97) patch_wolfson05() argument
629 patch_wolfson_wm9711_specific(struct snd_ac97 * ac97) patch_wolfson_wm9711_specific() argument
650 patch_wolfson11(struct snd_ac97 * ac97) patch_wolfson11() argument
796 patch_wolfson_wm9713_3d(struct snd_ac97 * ac97) patch_wolfson_wm9713_3d() argument
807 patch_wolfson_wm9713_specific(struct snd_ac97 * ac97) patch_wolfson_wm9713_specific() argument
826 patch_wolfson_wm9713_suspend(struct snd_ac97 * ac97) patch_wolfson_wm9713_suspend() argument
832 patch_wolfson_wm9713_resume(struct snd_ac97 * ac97) patch_wolfson_wm9713_resume() argument
849 patch_wolfson13(struct snd_ac97 * ac97) patch_wolfson13() argument
869 patch_tritech_tr28028(struct snd_ac97 * ac97) patch_tritech_tr28028() argument
881 patch_sigmatel_stac9700_3d(struct snd_ac97 * ac97) patch_sigmatel_stac9700_3d() argument
894 patch_sigmatel_stac9708_3d(struct snd_ac97 * ac97) patch_sigmatel_stac9708_3d() argument
925 patch_sigmatel_stac97xx_specific(struct snd_ac97 * ac97) patch_sigmatel_stac97xx_specific() argument
950 patch_sigmatel_stac9700(struct snd_ac97 * ac97) patch_sigmatel_stac9700() argument
958 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9708_put_bias() local
979 patch_sigmatel_stac9708_specific(struct snd_ac97 *ac97) patch_sigmatel_stac9708_specific() argument
997 patch_sigmatel_stac9708(struct snd_ac97 * ac97) patch_sigmatel_stac9708() argument
1023 patch_sigmatel_stac9721(struct snd_ac97 * ac97) patch_sigmatel_stac9721() argument
1037 patch_sigmatel_stac9744(struct snd_ac97 * ac97) patch_sigmatel_stac9744() argument
1049 patch_sigmatel_stac9756(struct snd_ac97 * ac97) patch_sigmatel_stac9756() argument
1072 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_output_jack_get() local
1086 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_output_jack_put() local
1111 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_input_jack_get() local
1122 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_input_jack_put() local
1140 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_phonesel_get() local
1148 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_stac9758_phonesel_put() local
1185 patch_sigmatel_stac9758_specific(struct snd_ac97 *ac97) patch_sigmatel_stac9758_specific() argument
1212 patch_sigmatel_stac9758(struct snd_ac97 * ac97) patch_sigmatel_stac9758() argument
1260 patch_cirrus_build_spdif(struct snd_ac97 * ac97) patch_cirrus_build_spdif() argument
1286 patch_cirrus_spdif(struct snd_ac97 * ac97) patch_cirrus_spdif() argument
1307 patch_cirrus_cs4299(struct snd_ac97 * ac97) patch_cirrus_cs4299() argument
1322 patch_conexant_build_spdif(struct snd_ac97 * ac97) patch_conexant_build_spdif() argument
1343 patch_conexant(struct snd_ac97 * ac97) patch_conexant() argument
1352 patch_cx20551(struct snd_ac97 *ac97) patch_cx20551() argument
1362 ad18xx_resume(struct snd_ac97 *ac97) ad18xx_resume() argument
1425 ad1888_resume(struct snd_ac97 *ac97) ad1888_resume() argument
1444 patch_ad1819(struct snd_ac97 * ac97) patch_ad1819() argument
1455 patch_ad1881_unchained(struct snd_ac97 * ac97, int idx, unsigned short mask) patch_ad1881_unchained() argument
1471 patch_ad1881_chained1(struct snd_ac97 * ac97, int idx, unsigned short codec_bits) patch_ad1881_chained1() argument
1489 patch_ad1881_chained(struct snd_ac97 * ac97, int unchained_idx, int cidx1, int cidx2) patch_ad1881_chained() argument
1521 patch_ad1881(struct snd_ac97 * ac97) patch_ad1881() argument
1591 patch_ad1885_specific(struct snd_ac97 * ac97) patch_ad1885_specific() argument
1609 patch_ad1885(struct snd_ac97 * ac97) patch_ad1885() argument
1622 patch_ad1886_specific(struct snd_ac97 * ac97) patch_ad1886_specific() argument
1636 patch_ad1886(struct snd_ac97 * ac97) patch_ad1886() argument
1757 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad198x_spdif_source_get() local
1767 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad198x_spdif_source_put() local
1784 patch_ad198x_post_spdif(struct snd_ac97 * ac97) patch_ad198x_post_spdif() argument
1813 check_list(struct snd_ac97 *ac97, const unsigned int *list) check_list() argument
1822 patch_ad1981a_specific(struct snd_ac97 * ac97) patch_ad1981a_specific() argument
1854 check_ad1981_hp_jack_sense(struct snd_ac97 *ac97) check_ad1981_hp_jack_sense() argument
1861 patch_ad1981a(struct snd_ac97 *ac97) patch_ad1981a() argument
1874 patch_ad1981b_specific(struct snd_ac97 *ac97) patch_ad1981b_specific() argument
1894 patch_ad1981b(struct snd_ac97 *ac97) patch_ad1981b() argument
1908 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1888_lohpsel_get() local
1921 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1888_lohpsel_put() local
1941 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1888_downmix_get() local
1954 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1888_downmix_put() local
1968 ad1888_update_jacks(struct snd_ac97 *ac97) ad1888_update_jacks() argument
2007 patch_ad1888_specific(struct snd_ac97 *ac97) patch_ad1888_specific() argument
2028 patch_ad1888(struct snd_ac97 * ac97) patch_ad1888() argument
2059 patch_ad1980_specific(struct snd_ac97 *ac97) patch_ad1980_specific() argument
2077 patch_ad1980(struct snd_ac97 * ac97) patch_ad1980() argument
2098 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1985_vrefout_get() local
2110 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1985_vrefout_put() local
2154 ad1985_update_jacks(struct snd_ac97 *ac97) ad1985_update_jacks() argument
2162 patch_ad1985_specific(struct snd_ac97 *ac97) patch_ad1985_specific() argument
2187 patch_ad1985(struct snd_ac97 * ac97) patch_ad1985() argument
2217 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_lososel_get() local
2228 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_lososel_put() local
2253 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_spread_get() local
2264 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_spread_put() local
2289 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_miclisel_get() local
2298 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_miclisel_put() local
2314 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_vrefout_get() local
2332 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad1986_vrefout_put() local
2426 ad1986_update_jacks(struct snd_ac97 *ac97) ad1986_update_jacks() argument
2459 patch_ad1986_specific(struct snd_ac97 *ac97) patch_ad1986_specific() argument
2479 patch_ad1986(struct snd_ac97 * ac97) patch_ad1986() argument
2494 patch_alc203(struct snd_ac97 *ac97) patch_alc203() argument
2503 alc650_update_jacks(struct snd_ac97 *ac97) alc650_update_jacks() argument
2527 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); alc650_swap_surround_put() local
2581 patch_alc650_specific(struct snd_ac97 * ac97) patch_alc650_specific() argument
2602 patch_alc650(struct snd_ac97 * ac97) patch_alc650() argument
2660 alc655_update_jacks(struct snd_ac97 *ac97) alc655_update_jacks() argument
2691 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); alc655_iec958_route_info() local
2701 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); alc655_iec958_route_get() local
2714 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); alc655_iec958_route_put() local
2734 patch_alc655_specific(struct snd_ac97 * ac97) patch_alc655_specific() argument
2752 patch_alc655(struct snd_ac97 * ac97) patch_alc655() argument
2811 alc850_update_jacks(struct snd_ac97 *ac97) alc850_update_jacks() argument
2846 patch_alc850_specific(struct snd_ac97 *ac97) patch_alc850_specific() argument
2864 patch_alc850(struct snd_ac97 *ac97) patch_alc850() argument
2899 patch_aztech_azf3328_specific(struct snd_ac97 *ac97) patch_aztech_azf3328_specific() argument
2937 patch_aztech_azf3328(struct snd_ac97 *ac97) patch_aztech_azf3328() argument
2946 cm9738_update_jacks(struct snd_ac97 *ac97) cm9738_update_jacks() argument
2959 patch_cm9738_specific(struct snd_ac97 * ac97) patch_cm9738_specific() argument
2969 patch_cm9738(struct snd_ac97 * ac97) patch_cm9738() argument
2989 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_cmedia_spdif_playback_source_get() local
2999 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_cmedia_spdif_playback_source_put() local
3024 cm9739_update_jacks(struct snd_ac97 *ac97) cm9739_update_jacks() argument
3039 patch_cm9739_specific(struct snd_ac97 * ac97) patch_cm9739_specific() argument
3044 patch_cm9739_post_spdif(struct snd_ac97 * ac97) patch_cm9739_post_spdif() argument
3055 patch_cm9739(struct snd_ac97 * ac97) patch_cm9739() argument
3114 cm9761_update_jacks(struct snd_ac97 *ac97) cm9761_update_jacks() argument
3163 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); cm9761_spdif_out_source_get() local
3176 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); cm9761_spdif_out_source_put() local
3209 patch_cm9761_post_spdif(struct snd_ac97 * ac97) patch_cm9761_post_spdif() argument
3214 patch_cm9761_specific(struct snd_ac97 * ac97) patch_cm9761_specific() argument
3225 patch_cm9761(struct snd_ac97 *ac97) patch_cm9761() argument
3312 patch_cm9780_specific(struct snd_ac97 *ac97) patch_cm9780_specific() argument
3322 patch_cm9780(struct snd_ac97 *ac97) patch_cm9780() argument
3346 patch_vt1613_specific(struct snd_ac97 *ac97) patch_vt1613_specific() argument
3356 patch_vt1613(struct snd_ac97 *ac97) patch_vt1613() argument
3393 snd_ac97_find_mixer_ctl(struct snd_ac97 *ac97, const char *name) snd_ac97_find_mixer_ctl() argument
3404 snd_ac97_add_vmaster(struct snd_ac97 *ac97, char *name, const unsigned int *tlv, const char * const *followers) snd_ac97_add_vmaster() argument
3435 patch_vt1616_specific(struct snd_ac97 * ac97) patch_vt1616_specific() argument
3470 patch_vt1616(struct snd_ac97 * ac97) patch_vt1616() argument
3566 patch_vt1617a(struct snd_ac97 * ac97) patch_vt1617a() argument
3781 patch_vt1618(struct snd_ac97 *ac97) patch_vt1618() argument
3789 it2646_update_jacks(struct snd_ac97 *ac97) it2646_update_jacks() argument
3810 patch_it2646_specific(struct snd_ac97 * ac97) patch_it2646_specific() argument
3825 patch_it2646(struct snd_ac97 * ac97) patch_it2646() argument
3845 patch_si3036_specific(struct snd_ac97 * ac97) patch_si3036_specific() argument
3858 mpatch_si3036(struct snd_ac97 * ac97) mpatch_si3036() argument
3890 patch_lm4550(struct snd_ac97 *ac97) patch_lm4550() argument
3912 patch_ucb1400_specific(struct snd_ac97 * ac97) patch_ucb1400_specific() argument
3925 patch_ucb1400(struct snd_ac97 * ac97) patch_ucb1400() argument
[all...]
H A Dac97_codec.c49 int (*patch)(struct snd_ac97 *ac97);
50 int (*mpatch)(struct snd_ac97 *ac97);
195 static void update_power_regs(struct snd_ac97 *ac97);
197 #define ac97_is_power_save_mode(ac97) \
198 ((ac97->scaps & AC97_SCAP_POWER_SAVE) && power_save)
200 #define ac97_is_power_save_mode(ac97) 0
203 #define ac97_err(ac97, fmt, args...) \
204 dev_err((ac97)->bus->card->dev, fmt, ##args)
205 #define ac97_warn(ac97, fmt, args...) \
206 dev_warn((ac97)
214 snd_ac97_valid_reg(struct snd_ac97 *ac97, unsigned short reg) snd_ac97_valid_reg() argument
272 snd_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) snd_ac97_write() argument
297 snd_ac97_read(struct snd_ac97 *ac97, unsigned short reg) snd_ac97_read() argument
305 snd_ac97_read_cache(struct snd_ac97 *ac97, unsigned short reg) snd_ac97_read_cache() argument
326 snd_ac97_write_cache(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) snd_ac97_write_cache() argument
351 snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) snd_ac97_update() argument
383 snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value) snd_ac97_update_bits() argument
398 snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value) snd_ac97_update_bits_nolock() argument
415 snd_ac97_ad18xx_update_pcm_bits(struct snd_ac97 *ac97, int codec, unsigned short mask, unsigned short value) snd_ac97_ad18xx_update_pcm_bits() argument
459 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_get_enum_double() local
476 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_put_enum_double() local
497 snd_ac97_page_save(struct snd_ac97 *ac97, int reg, struct snd_kcontrol *kcontrol) snd_ac97_page_save() argument
511 snd_ac97_page_restore(struct snd_ac97 *ac97, int page_save) snd_ac97_page_restore() argument
537 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_get_volsw() local
561 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_put_volsw() local
680 set_inv_eapd(struct snd_ac97 *ac97, struct snd_kcontrol *kctl) set_inv_eapd() argument
718 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_spdif_default_get() local
731 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_spdif_default_put() local
805 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_put_spsa() local
874 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_info_bits() local
891 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_get_bits() local
905 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_put_bits() local
937 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_get_volume() local
949 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); snd_ac97_ad18xx_pcm_put_volume() local
1002 snd_ac97_free(struct snd_ac97 *ac97) snd_ac97_free() argument
1020 struct snd_ac97 *ac97 = device->device_data; snd_ac97_dev_free() local
1025 snd_ac97_try_volume_mix(struct snd_ac97 * ac97, int reg) snd_ac97_try_volume_mix() argument
1075 check_volume_resolution(struct snd_ac97 *ac97, int reg, unsigned char *lo_max, unsigned char *hi_max) check_volume_resolution() argument
1115 snd_ac97_try_bit(struct snd_ac97 * ac97, int reg, int bit) snd_ac97_try_bit() argument
1129 snd_ac97_change_volume_params2(struct snd_ac97 * ac97, int reg, int shift, unsigned char *max) snd_ac97_change_volume_params2() argument
1155 snd_ac97_cnew(const struct snd_kcontrol_new *_template, struct snd_ac97 * ac97) snd_ac97_cnew() argument
1167 snd_ac97_cmute_new_stereo(struct snd_card *card, char *name, int reg, int check_stereo, int check_amix, struct snd_ac97 *ac97) snd_ac97_cmute_new_stereo() argument
1237 snd_ac97_cvol_new(struct snd_card *card, char *name, int reg, unsigned int lo_max, unsigned int hi_max, struct snd_ac97 *ac97) snd_ac97_cvol_new() argument
1276 snd_ac97_cmix_new_stereo(struct snd_card *card, const char *pfx, int reg, int check_stereo, int check_amix, struct snd_ac97 *ac97) snd_ac97_cmix_new_stereo() argument
1310 snd_ac97_mixer_build(struct snd_ac97 * ac97) snd_ac97_mixer_build() argument
1652 snd_ac97_modem_build(struct snd_card *card, struct snd_ac97 * ac97) snd_ac97_modem_build() argument
1679 snd_ac97_test_rate(struct snd_ac97 *ac97, int reg, int shadow_reg, int rate) snd_ac97_test_rate() argument
1692 snd_ac97_determine_rates(struct snd_ac97 *ac97, int reg, int shadow_reg, unsigned int *r_result) snd_ac97_determine_rates() argument
1752 snd_ac97_determine_spdif_rates(struct snd_ac97 *ac97) snd_ac97_determine_spdif_rates() argument
1783 snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name, int modem) snd_ac97_get_name() argument
1823 snd_ac97_get_short_name(struct snd_ac97 *ac97) snd_ac97_get_short_name() argument
1838 ac97_reset_wait(struct snd_ac97 *ac97, int timeout, int with_modem) ac97_reset_wait() argument
1938 struct snd_ac97 *ac97 = device->device_data; snd_ac97_dev_register() local
1959 struct snd_ac97 *ac97 = device->device_data; snd_ac97_dev_disconnect() local
1998 struct snd_ac97 *ac97; snd_ac97_mixer() local
2299 snd_ac97_powerdown(struct snd_ac97 *ac97) snd_ac97_powerdown() argument
2371 snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup) snd_ac97_update_power() argument
2411 update_power_regs(struct snd_ac97 *ac97) update_power_regs() argument
2463 snd_ac97_suspend(struct snd_ac97 *ac97) snd_ac97_suspend() argument
2480 snd_ac97_restore_status(struct snd_ac97 *ac97) snd_ac97_restore_status() argument
2501 snd_ac97_restore_iec958(struct snd_ac97 *ac97) snd_ac97_restore_iec958() argument
2524 snd_ac97_resume(struct snd_ac97 *ac97) snd_ac97_resume() argument
2598 snd_ac97_remove_ctl(struct snd_ac97 *ac97, const char *name, const char *suffix) snd_ac97_remove_ctl() argument
2608 ctl_find(struct snd_ac97 *ac97, const char *name, const char *suffix) ctl_find() argument
2618 snd_ac97_rename_ctl(struct snd_ac97 *ac97, const char *src, const char *dst, const char *suffix) snd_ac97_rename_ctl() argument
2630 snd_ac97_rename_vol_ctl(struct snd_ac97 *ac97, const char *src, const char *dst) snd_ac97_rename_vol_ctl() argument
2638 snd_ac97_swap_ctl(struct snd_ac97 *ac97, const char *s1, const char *s2, const char *suffix) snd_ac97_swap_ctl() argument
2667 tune_hp_only(struct snd_ac97 *ac97) tune_hp_only() argument
2682 tune_hp_only(struct snd_ac97 *ac97) tune_hp_only() argument
2694 tune_swap_hp(struct snd_ac97 *ac97) tune_swap_hp() argument
2704 tune_swap_surround(struct snd_ac97 *ac97) tune_swap_surround() argument
2713 tune_ad_sharing(struct snd_ac97 *ac97) tune_ad_sharing() argument
2730 tune_alc_jack(struct snd_ac97 *ac97) tune_alc_jack() argument
2745 tune_inv_eapd(struct snd_ac97 *ac97) tune_inv_eapd() argument
2758 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); master_mute_sw_put() local
2774 tune_mute_led(struct snd_ac97 *ac97) tune_mute_led() argument
2794 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); hp_master_mute_sw_put() local
2809 tune_hp_mute_led(struct snd_ac97 *ac97) tune_hp_mute_led() argument
2845 apply_quirk(struct snd_ac97 *ac97, int type) apply_quirk() argument
2857 apply_quirk_str(struct snd_ac97 *ac97, const char *typestr) apply_quirk_str() argument
2886 snd_ac97_tune_hardware(struct snd_ac97 *ac97, const struct ac97_quirk *quirk, const char *override) snd_ac97_tune_hardware() argument
[all...]
H A Dac97_proc.c22 static void snd_ac97_proc_read_functions(struct snd_ac97 *ac97, struct snd_info_buffer *buffer) in snd_ac97_proc_read_functions() argument
37 snd_ac97_write(ac97, AC97_FUNC_SELECT, function << 1); in snd_ac97_proc_read_functions()
38 info = snd_ac97_read(ac97, AC97_FUNC_INFO); in snd_ac97_proc_read_functions()
45 sense_info = snd_ac97_read(ac97, AC97_SENSE_INFO); in snd_ac97_proc_read_functions()
92 static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx) in snd_ac97_proc_read_main() argument
101 snd_ac97_get_name(NULL, ac97->id, name, 0); in snd_ac97_proc_read_main()
102 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name); in snd_ac97_proc_read_main()
104 if ((ac97->scaps & AC97_SCAP_AUDIO) == 0) in snd_ac97_proc_read_main()
108 ac97 in snd_ac97_proc_read_main()
330 struct snd_ac97 *ac97 = entry->private_data; snd_ac97_proc_read() local
365 struct snd_ac97 *ac97 = entry->private_data; snd_ac97_proc_regs_write() local
380 snd_ac97_proc_regs_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx) snd_ac97_proc_regs_read_main() argument
393 struct snd_ac97 *ac97 = entry->private_data; snd_ac97_proc_regs_read() local
414 snd_ac97_proc_init(struct snd_ac97 * ac97) snd_ac97_proc_init() argument
442 snd_ac97_proc_done(struct snd_ac97 * ac97) snd_ac97_proc_done() argument
[all...]
H A Dac97_pcm.c159 static int set_spdif_rate(struct snd_ac97 *ac97, unsigned short rate) in set_spdif_rate() argument
164 if (! (ac97->ext_id & AC97_EI_SPDIF)) in set_spdif_rate()
168 if (ac97->flags & AC97_CS_SPDIF) { in set_spdif_rate()
173 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0); in set_spdif_rate()
179 if (ac97->id == AC97_ID_CM9739 && rate != 48000) { in set_spdif_rate()
180 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0); in set_spdif_rate()
188 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0); in set_spdif_rate()
195 mutex_lock(&ac97->reg_mutex); in set_spdif_rate()
196 old = snd_ac97_read(ac97, reg) & mask; in set_spdif_rate()
198 snd_ac97_update_bits_nolock(ac97, AC97_EXTENDED_STATU in set_spdif_rate()
243 snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate) snd_ac97_set_rate() argument
307 get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *spdif_slots) get_pslots() argument
382 get_cslots(struct snd_ac97 *ac97) get_cslots() argument
[all...]
/kernel/linux/linux-5.10/sound/ac97/
H A Dsnd_ac97_compat.c8 #include <sound/ac97/codec.h>
9 #include <sound/ac97/compat.h>
10 #include <sound/ac97/controller.h>
20 static void compat_ac97_reset(struct snd_ac97 *ac97) in compat_ac97_reset() argument
22 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_reset()
29 static void compat_ac97_warm_reset(struct snd_ac97 *ac97) in compat_ac97_warm_reset() argument
31 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_warm_reset()
38 static void compat_ac97_write(struct snd_ac97 *ac97, unsigned short reg, in compat_ac97_write() argument
41 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_write()
44 actrl->ops->write(actrl, ac97 in compat_ac97_write()
47 compat_ac97_read(struct snd_ac97 *ac97, unsigned short reg) compat_ac97_read() argument
69 struct snd_ac97 *ac97; snd_ac97_compat_alloc() local
92 snd_ac97_compat_release(struct snd_ac97 *ac97) snd_ac97_compat_release() argument
98 snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, unsigned int id_mask) snd_ac97_reset() argument
[all...]
/kernel/linux/linux-6.6/sound/ac97/
H A Dsnd_ac97_compat.c8 #include <sound/ac97/codec.h>
9 #include <sound/ac97/compat.h>
10 #include <sound/ac97/controller.h>
20 static void compat_ac97_reset(struct snd_ac97 *ac97) in compat_ac97_reset() argument
22 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_reset()
29 static void compat_ac97_warm_reset(struct snd_ac97 *ac97) in compat_ac97_warm_reset() argument
31 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_warm_reset()
38 static void compat_ac97_write(struct snd_ac97 *ac97, unsigned short reg, in compat_ac97_write() argument
41 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data); in compat_ac97_write()
44 actrl->ops->write(actrl, ac97 in compat_ac97_write()
47 compat_ac97_read(struct snd_ac97 *ac97, unsigned short reg) compat_ac97_read() argument
69 struct snd_ac97 *ac97; snd_ac97_compat_alloc() local
92 snd_ac97_compat_release(struct snd_ac97 *ac97) snd_ac97_compat_release() argument
98 snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, unsigned int id_mask) snd_ac97_reset() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/tegra/
H A Dtegra20_ac97.c33 #define DRV_NAME "tegra20-ac97"
37 static void tegra20_ac97_codec_reset(struct snd_ac97 *ac97) in tegra20_ac97_codec_reset() argument
59 static void tegra20_ac97_codec_warm_reset(struct snd_ac97 *ac97) in tegra20_ac97_codec_warm_reset() argument
142 static inline void tegra20_ac97_start_playback(struct tegra20_ac97 *ac97) in tegra20_ac97_start_playback() argument
144 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR, in tegra20_ac97_start_playback()
148 regmap_update_bits(ac97->regmap, TEGRA20_AC97_CTRL, in tegra20_ac97_start_playback()
155 static inline void tegra20_ac97_stop_playback(struct tegra20_ac97 *ac97) in tegra20_ac97_stop_playback() argument
157 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR, in tegra20_ac97_stop_playback()
160 regmap_update_bits(ac97->regmap, TEGRA20_AC97_CTRL, in tegra20_ac97_stop_playback()
164 static inline void tegra20_ac97_start_capture(struct tegra20_ac97 *ac97) in tegra20_ac97_start_capture() argument
171 tegra20_ac97_stop_capture(struct tegra20_ac97 *ac97) tegra20_ac97_stop_capture() argument
180 struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai); tegra20_ac97_trigger() local
208 struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai); tegra20_ac97_probe() local
304 struct tegra20_ac97 *ac97; tegra20_ac97_platform_probe() local
433 struct tegra20_ac97 *ac97 = dev_get_drvdata(&pdev->dev); tegra20_ac97_platform_remove() local
[all...]
/kernel/linux/linux-5.10/sound/soc/tegra/
H A Dtegra20_ac97.c33 #define DRV_NAME "tegra20-ac97"
37 static void tegra20_ac97_codec_reset(struct snd_ac97 *ac97) in tegra20_ac97_codec_reset() argument
59 static void tegra20_ac97_codec_warm_reset(struct snd_ac97 *ac97) in tegra20_ac97_codec_warm_reset() argument
142 static inline void tegra20_ac97_start_playback(struct tegra20_ac97 *ac97) in tegra20_ac97_start_playback() argument
144 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR, in tegra20_ac97_start_playback()
148 regmap_update_bits(ac97->regmap, TEGRA20_AC97_CTRL, in tegra20_ac97_start_playback()
155 static inline void tegra20_ac97_stop_playback(struct tegra20_ac97 *ac97) in tegra20_ac97_stop_playback() argument
157 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR, in tegra20_ac97_stop_playback()
160 regmap_update_bits(ac97->regmap, TEGRA20_AC97_CTRL, in tegra20_ac97_stop_playback()
164 static inline void tegra20_ac97_start_capture(struct tegra20_ac97 *ac97) in tegra20_ac97_start_capture() argument
171 tegra20_ac97_stop_capture(struct tegra20_ac97 *ac97) tegra20_ac97_stop_capture() argument
180 struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai); tegra20_ac97_trigger() local
212 struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai); tegra20_ac97_probe() local
303 struct tegra20_ac97 *ac97; tegra20_ac97_platform_probe() local
410 struct tegra20_ac97 *ac97 = dev_get_drvdata(&pdev->dev); tegra20_ac97_platform_remove() local
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Ducb1400.h85 struct snd_ac97 *ac97; member
95 struct snd_ac97 *ac97; member
112 static inline u16 ucb1400_reg_read(struct snd_ac97 *ac97, u16 reg) in ucb1400_reg_read() argument
114 return ac97->bus->ops->read(ac97, reg); in ucb1400_reg_read()
117 static inline void ucb1400_reg_write(struct snd_ac97 *ac97, u16 reg, u16 val) in ucb1400_reg_write() argument
119 ac97->bus->ops->write(ac97, reg, val); in ucb1400_reg_write()
122 static inline u16 ucb1400_gpio_get_value(struct snd_ac97 *ac97, u16 gpio) in ucb1400_gpio_get_value() argument
124 return ucb1400_reg_read(ac97, UCB_IO_DAT in ucb1400_gpio_get_value()
127 ucb1400_gpio_set_value(struct snd_ac97 *ac97, u16 gpio, u16 val) ucb1400_gpio_set_value() argument
135 ucb1400_gpio_get_direction(struct snd_ac97 *ac97, u16 gpio) ucb1400_gpio_get_direction() argument
140 ucb1400_gpio_set_direction(struct snd_ac97 *ac97, u16 gpio, u16 dir) ucb1400_gpio_set_direction() argument
148 ucb1400_adc_enable(struct snd_ac97 *ac97) ucb1400_adc_enable() argument
153 ucb1400_adc_disable(struct snd_ac97 *ac97) ucb1400_adc_disable() argument
[all...]
/kernel/linux/linux-6.6/include/sound/
H A Dac97_codec.h16 #include <sound/ac97/regs.h>
124 /* ac97->scaps */
138 /* ac97->flags */
178 int (*build_3d) (struct snd_ac97 *ac97);
179 int (*build_specific) (struct snd_ac97 *ac97);
180 int (*build_spdif) (struct snd_ac97 *ac97);
181 int (*build_post_spdif) (struct snd_ac97 *ac97);
183 void (*suspend) (struct snd_ac97 *ac97);
184 void (*resume) (struct snd_ac97 *ac97);
186 void (*update_jacks) (struct snd_ac97 *ac97); /* fo
290 ac97_is_audio(struct snd_ac97 * ac97) ac97_is_audio() argument
294 ac97_is_modem(struct snd_ac97 * ac97) ac97_is_modem() argument
298 ac97_is_rev22(struct snd_ac97 * ac97) ac97_is_rev22() argument
302 ac97_can_amap(struct snd_ac97 * ac97) ac97_can_amap() argument
306 ac97_can_spdif(struct snd_ac97 * ac97) ac97_can_spdif() argument
329 snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup) snd_ac97_update_power() argument
339 snd_ac97_suspend(struct snd_ac97 *ac97) snd_ac97_suspend() argument
340 snd_ac97_resume(struct snd_ac97 *ac97) snd_ac97_resume() argument
416 snd_ac97_dev_add_pdata(struct snd_ac97 *ac97, void *data) snd_ac97_dev_add_pdata() argument
[all...]
/kernel/linux/linux-5.10/include/sound/
H A Dac97_codec.h16 #include <sound/ac97/regs.h>
124 /* ac97->scaps */
138 /* ac97->flags */
178 int (*build_3d) (struct snd_ac97 *ac97);
179 int (*build_specific) (struct snd_ac97 *ac97);
180 int (*build_spdif) (struct snd_ac97 *ac97);
181 int (*build_post_spdif) (struct snd_ac97 *ac97);
183 void (*suspend) (struct snd_ac97 *ac97);
184 void (*resume) (struct snd_ac97 *ac97);
186 void (*update_jacks) (struct snd_ac97 *ac97); /* fo
290 ac97_is_audio(struct snd_ac97 * ac97) ac97_is_audio() argument
294 ac97_is_modem(struct snd_ac97 * ac97) ac97_is_modem() argument
298 ac97_is_rev22(struct snd_ac97 * ac97) ac97_is_rev22() argument
302 ac97_can_amap(struct snd_ac97 * ac97) ac97_can_amap() argument
306 ac97_can_spdif(struct snd_ac97 * ac97) ac97_can_spdif() argument
329 snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup) snd_ac97_update_power() argument
413 snd_ac97_dev_add_pdata(struct snd_ac97 *ac97, void *data) snd_ac97_dev_add_pdata() argument
[all...]
/kernel/linux/linux-5.10/sound/
H A Dac97_bus.c18 * @ac97: The AC97 device to check
26 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, in snd_ac97_check_id() argument
29 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; in snd_ac97_check_id()
30 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); in snd_ac97_check_id()
32 if (ac97->id == 0x0 || ac97 in snd_ac97_check_id()
55 snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, unsigned int id_mask) snd_ac97_reset() argument
[all...]
/kernel/linux/linux-6.6/sound/
H A Dac97_bus.c18 * @ac97: The AC97 device to check
26 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, in snd_ac97_check_id() argument
29 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; in snd_ac97_check_id()
30 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2); in snd_ac97_check_id()
32 if (ac97->id == 0x0 || ac97 in snd_ac97_check_id()
55 snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, unsigned int id_mask) snd_ac97_reset() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/
H A Dsoc-ac97.c3 // soc-ac97.c -- ALSA SoC Audio Layer AC97 support
128 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, in snd_soc_ac97_init_gpio() argument
137 ac97->gpio_priv = gpio_priv; in snd_soc_ac97_init_gpio()
150 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) in snd_soc_ac97_free_gpio() argument
152 gpiochip_remove(&ac97->gpio_priv->gpio_chip); in snd_soc_ac97_free_gpio()
155 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, in snd_soc_ac97_init_gpio() argument
161 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) in snd_soc_ac97_free_gpio() argument
171 * it. The caller is responsible to either call device_add(&ac97->dev) to
172 * register the device, or to call put_device(&ac97->dev) to free the device.
178 struct snd_ac97 *ac97; in snd_soc_alloc_ac97_component() local
218 struct snd_ac97 *ac97; snd_soc_new_ac97_component() local
256 snd_soc_free_ac97_component(struct snd_ac97 *ac97) snd_soc_free_ac97_component() argument
267 snd_soc_ac97_warm_reset(struct snd_ac97 *ac97) snd_soc_ac97_warm_reset() argument
283 snd_soc_ac97_reset(struct snd_ac97 *ac97) snd_soc_ac97_reset() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/
H A Dsoc-ac97.c3 // soc-ac97.c -- ALSA SoC Audio Layer AC97 support
125 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, in snd_soc_ac97_init_gpio() argument
134 ac97->gpio_priv = gpio_priv; in snd_soc_ac97_init_gpio()
147 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) in snd_soc_ac97_free_gpio() argument
149 gpiochip_remove(&ac97->gpio_priv->gpio_chip); in snd_soc_ac97_free_gpio()
152 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, in snd_soc_ac97_init_gpio() argument
158 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) in snd_soc_ac97_free_gpio() argument
168 * it. The caller is responsible to either call device_add(&ac97->dev) to
169 * register the device, or to call put_device(&ac97->dev) to free the device.
175 struct snd_ac97 *ac97; in snd_soc_alloc_ac97_component() local
215 struct snd_ac97 *ac97; snd_soc_new_ac97_component() local
253 snd_soc_free_ac97_component(struct snd_ac97 *ac97) snd_soc_free_ac97_component() argument
264 snd_soc_ac97_warm_reset(struct snd_ac97 *ac97) snd_soc_ac97_warm_reset() argument
280 snd_soc_ac97_reset(struct snd_ac97 *ac97) snd_soc_ac97_reset() argument
[all...]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
H A Ducb1400_ts.c36 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_mode_int()
48 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_pressure()
55 return ucb1400_adc_read(ucb->ac97, UCB_ADC_INP_TSPY, adcsync); in ucb1400_ts_read_pressure()
66 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_xpos()
69 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_xpos()
72 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_xpos()
78 return ucb1400_adc_read(ucb->ac97, UCB_ADC_INP_TSPY, adcsync); in ucb1400_ts_read_xpos()
89 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_ypos()
92 ucb1400_reg_write(ucb->ac97, UCB_TS_CR, in ucb1400_ts_read_ypos()
95 ucb1400_reg_write(ucb->ac97, UCB_TS_C in ucb1400_ts_read_ypos()
[all...]
/kernel/linux/linux-5.10/sound/pci/cs5535audio/
H A Dcs5535audio.h42 /* cs5535 specific ac97 codec register defines */
87 struct snd_ac97 *ac97; member
102 struct snd_ac97_template *ac97);
103 int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97);
105 void olpc_analog_input(struct snd_ac97 *ac97, int on);
106 void olpc_mic_bias(struct snd_ac97 *ac97, int on);
108 static inline void olpc_capture_open(struct snd_ac97 *ac97) in olpc_capture_open() argument
111 olpc_analog_input(ac97, 0); in olpc_capture_open()
113 olpc_mic_bias(ac97, 1); in olpc_capture_open()
116 static inline void olpc_capture_close(struct snd_ac97 *ac97) in olpc_capture_close() argument
124 olpc_prequirks(struct snd_card *card, struct snd_ac97_template *ac97) olpc_prequirks() argument
126 olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) olpc_quirks() argument
131 olpc_analog_input(struct snd_ac97 *ac97, int on) olpc_analog_input() argument
132 olpc_mic_bias(struct snd_ac97 *ac97, int on) olpc_mic_bias() argument
133 olpc_capture_open(struct snd_ac97 *ac97) olpc_capture_open() argument
134 olpc_capture_close(struct snd_ac97 *ac97) olpc_capture_close() argument
[all...]
H A Dcs5535audio_olpc.c24 void olpc_analog_input(struct snd_ac97 *ac97, int on) in olpc_analog_input() argument
32 err = snd_ac97_update_bits(ac97, AC97_AD_TEST2, in olpc_analog_input()
35 dev_err(ac97->bus->card->dev, in olpc_analog_input()
47 void olpc_mic_bias(struct snd_ac97 *ac97, int on) in olpc_mic_bias() argument
55 err = snd_ac97_update_bits(ac97, AC97_AD_MISC, in olpc_mic_bias()
58 dev_err(ac97->bus->card->dev, "setting MIC Bias - %d\n", err); in olpc_mic_bias()
81 olpc_analog_input(cs5535au->ac97, v->value.integer.value[0]); in olpc_dc_put()
98 struct snd_ac97 *ac97 = cs5535au->ac97; in olpc_mic_get() local
101 i = (snd_ac97_read(ac97, AC97_AD_MIS in olpc_mic_get()
133 olpc_prequirks(struct snd_card *card, struct snd_ac97_template *ac97) olpc_prequirks() argument
144 olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) olpc_quirks() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/cs5535audio/
H A Dcs5535audio.h42 /* cs5535 specific ac97 codec register defines */
87 struct snd_ac97 *ac97; member
102 struct snd_ac97_template *ac97);
103 int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97);
105 void olpc_analog_input(struct snd_ac97 *ac97, int on);
106 void olpc_mic_bias(struct snd_ac97 *ac97, int on);
108 static inline void olpc_capture_open(struct snd_ac97 *ac97) in olpc_capture_open() argument
111 olpc_analog_input(ac97, 0); in olpc_capture_open()
113 olpc_mic_bias(ac97, 1); in olpc_capture_open()
116 static inline void olpc_capture_close(struct snd_ac97 *ac97) in olpc_capture_close() argument
124 olpc_prequirks(struct snd_card *card, struct snd_ac97_template *ac97) olpc_prequirks() argument
126 olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) olpc_quirks() argument
131 olpc_analog_input(struct snd_ac97 *ac97, int on) olpc_analog_input() argument
132 olpc_mic_bias(struct snd_ac97 *ac97, int on) olpc_mic_bias() argument
133 olpc_capture_open(struct snd_ac97 *ac97) olpc_capture_open() argument
134 olpc_capture_close(struct snd_ac97 *ac97) olpc_capture_close() argument
[all...]
/kernel/linux/linux-5.10/drivers/base/regmap/
H A Dregmap-ac97.c47 struct snd_ac97 *ac97 = context; in regmap_ac97_reg_read() local
49 *val = ac97->bus->ops->read(ac97, reg); in regmap_ac97_reg_read()
57 struct snd_ac97 *ac97 = context; in regmap_ac97_reg_write() local
59 ac97->bus->ops->write(ac97, reg, val); in regmap_ac97_reg_write()
69 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97, in __regmap_init_ac97() argument
74 return __regmap_init(&ac97->dev, &ac97_regmap_bus, ac97, config, in __regmap_init_ac97()
79 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97, in __devm_regmap_init_ac97() argument
[all...]
/kernel/linux/linux-6.6/drivers/base/regmap/
H A Dregmap-ac97.c47 struct snd_ac97 *ac97 = context; in regmap_ac97_reg_read() local
49 *val = ac97->bus->ops->read(ac97, reg); in regmap_ac97_reg_read()
57 struct snd_ac97 *ac97 = context; in regmap_ac97_reg_write() local
59 ac97->bus->ops->write(ac97, reg, val); in regmap_ac97_reg_write()
69 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97, in __regmap_init_ac97() argument
74 return __regmap_init(&ac97->dev, &ac97_regmap_bus, ac97, config, in __regmap_init_ac97()
79 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97, in __devm_regmap_init_ac97() argument
[all...]

Completed in 21 milliseconds

123456789