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

12345

/linux-master/sound/ac97/
H A DMakefile6 obj-$(CONFIG_AC97_BUS_NEW) += ac97.o
8 ac97-y += bus.o codec.o
9 ac97-$(CONFIG_AC97_BUS_COMPAT) += snd_ac97_compat.o
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) argument
22 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data);
29 static void compat_ac97_warm_reset(struct snd_ac97 *ac97) argument
31 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data);
38 static void compat_ac97_write(struct snd_ac97 *ac97, unsigned short reg, argument
41 struct ac97_codec_device *adev = to_ac97_device(ac97->private_data);
44 actrl->ops->write(actrl, ac97
47 compat_ac97_read(struct snd_ac97 *ac97, unsigned short reg) argument
69 struct snd_ac97 *ac97; local
92 snd_ac97_compat_release(struct snd_ac97 *ac97) argument
98 snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, unsigned int id_mask) argument
[all...]
H A Dcodec.c7 #include <sound/ac97/codec.h>
8 #include <sound/ac97/controller.h>
/linux-master/sound/pci/ac97/
H A DMakefile7 snd-ac97-codec-y := ac97_codec.o ac97_pcm.o
8 snd-ac97-codec-$(CONFIG_SND_PROC_FS) += ac97_proc.o
11 obj-$(CONFIG_SND_AC97_CODEC) += snd-ac97-codec.o
H A Dac97_local.h10 void snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name,
12 int snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg,
17 void snd_ac97_bus_proc_init(struct snd_ac97_bus * ac97);
18 void snd_ac97_bus_proc_done(struct snd_ac97_bus * ac97);
19 void snd_ac97_proc_init(struct snd_ac97 * ac97);
20 void snd_ac97_proc_done(struct snd_ac97 * ac97);
H A Dac97_proc.c22 static void snd_ac97_proc_read_functions(struct snd_ac97 *ac97, struct snd_info_buffer *buffer) argument
37 snd_ac97_write(ac97, AC97_FUNC_SELECT, function << 1);
38 info = snd_ac97_read(ac97, AC97_FUNC_INFO);
45 sense_info = snd_ac97_read(ac97, AC97_SENSE_INFO);
92 static void snd_ac97_proc_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx) argument
101 snd_ac97_get_name(NULL, ac97->id, name, 0);
102 snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name);
104 if ((ac97->scaps & AC97_SCAP_AUDIO) == 0)
108 ac97
330 struct snd_ac97 *ac97 = entry->private_data; local
365 struct snd_ac97 *ac97 = entry->private_data; local
380 snd_ac97_proc_regs_read_main(struct snd_ac97 *ac97, struct snd_info_buffer *buffer, int subidx) argument
393 struct snd_ac97 *ac97 = entry->private_data; local
414 snd_ac97_proc_init(struct snd_ac97 * ac97) argument
442 snd_ac97_proc_done(struct snd_ac97 * ac97) argument
[all...]
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) argument
271 snd_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) argument
296 snd_ac97_read(struct snd_ac97 *ac97, unsigned short reg) argument
304 snd_ac97_read_cache(struct snd_ac97 *ac97, unsigned short reg) argument
325 snd_ac97_write_cache(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) argument
350 snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short value) argument
382 snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value) argument
397 snd_ac97_update_bits_nolock(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value) argument
414 snd_ac97_ad18xx_update_pcm_bits(struct snd_ac97 *ac97, int codec, unsigned short mask, unsigned short value) argument
458 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
475 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
496 snd_ac97_page_save(struct snd_ac97 *ac97, int reg, struct snd_kcontrol *kcontrol) argument
510 snd_ac97_page_restore(struct snd_ac97 *ac97, int page_save) argument
536 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
560 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
679 set_inv_eapd(struct snd_ac97 *ac97, struct snd_kcontrol *kctl) argument
717 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
730 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
804 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
873 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
890 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
904 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
936 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
948 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1001 snd_ac97_free(struct snd_ac97 *ac97) argument
1019 struct snd_ac97 *ac97 = device->device_data; local
1024 snd_ac97_try_volume_mix(struct snd_ac97 * ac97, int reg) argument
1074 check_volume_resolution(struct snd_ac97 *ac97, int reg, unsigned char *lo_max, unsigned char *hi_max) argument
1114 snd_ac97_try_bit(struct snd_ac97 * ac97, int reg, int bit) argument
1128 snd_ac97_change_volume_params2(struct snd_ac97 * ac97, int reg, int shift, unsigned char *max) argument
1154 snd_ac97_cnew(const struct snd_kcontrol_new *_template, struct snd_ac97 * ac97) 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) 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) 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) argument
1311 snd_ac97_mixer_build(struct snd_ac97 * ac97) argument
1708 snd_ac97_modem_build(struct snd_card *card, struct snd_ac97 * ac97) argument
1739 snd_ac97_test_rate(struct snd_ac97 *ac97, int reg, int shadow_reg, int rate) argument
1752 snd_ac97_determine_rates(struct snd_ac97 *ac97, int reg, int shadow_reg, unsigned int *r_result) argument
1812 snd_ac97_determine_spdif_rates(struct snd_ac97 *ac97) argument
1843 snd_ac97_get_name(struct snd_ac97 *ac97, unsigned int id, char *name, int modem) argument
1883 snd_ac97_get_short_name(struct snd_ac97 *ac97) argument
1898 ac97_reset_wait(struct snd_ac97 *ac97, int timeout, int with_modem) argument
1999 struct snd_ac97 *ac97 = device->device_data; local
2021 struct snd_ac97 *ac97 = device->device_data; local
2060 struct snd_ac97 *ac97; local
2365 snd_ac97_powerdown(struct snd_ac97 *ac97) argument
2437 snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup) argument
2477 update_power_regs(struct snd_ac97 *ac97) argument
2529 snd_ac97_suspend(struct snd_ac97 *ac97) argument
2546 snd_ac97_restore_status(struct snd_ac97 *ac97) argument
2567 snd_ac97_restore_iec958(struct snd_ac97 *ac97) argument
2590 snd_ac97_resume(struct snd_ac97 *ac97) argument
2671 snd_ac97_remove_ctl(struct snd_ac97 *ac97, const char *name, const char *suffix) argument
2681 ctl_find(struct snd_ac97 *ac97, const char *name, const char *suffix) argument
2691 snd_ac97_rename_ctl(struct snd_ac97 *ac97, const char *src, const char *dst, const char *suffix) argument
2706 snd_ac97_rename_vol_ctl(struct snd_ac97 *ac97, const char *src, const char *dst) argument
2714 snd_ac97_swap_ctl(struct snd_ac97 *ac97, const char *s1, const char *s2, const char *suffix) argument
2749 tune_hp_only(struct snd_ac97 *ac97) argument
2764 tune_hp_only(struct snd_ac97 *ac97) argument
2776 tune_swap_hp(struct snd_ac97 *ac97) argument
2786 tune_swap_surround(struct snd_ac97 *ac97) argument
2795 tune_ad_sharing(struct snd_ac97 *ac97) argument
2812 tune_alc_jack(struct snd_ac97 *ac97) argument
2827 tune_inv_eapd(struct snd_ac97 *ac97) argument
2840 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2856 tune_mute_led(struct snd_ac97 *ac97) argument
2876 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2891 tune_hp_mute_led(struct snd_ac97 *ac97) argument
2927 apply_quirk(struct snd_ac97 *ac97, int type) argument
2939 apply_quirk_str(struct snd_ac97 *ac97, const char *typestr) argument
2968 snd_ac97_tune_hardware(struct snd_ac97 *ac97, const struct ac97_quirk *quirk, const char *override) 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) argument
33 err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&controls[idx], ac97));
41 static void reset_tlv(struct snd_ac97 *ac97, const char *name, argument
46 kctl = snd_ctl_find_id_mixer(ac97->bus->card, name);
52 static int ac97_update_bits_page(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value, unsigned short page) argument
57 mutex_lock(&ac97->page_mutex);
58 page_save = snd_ac97_read(ac97, AC97_INT_PAGIN
78 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
86 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
107 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
115 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
169 is_surround_on(struct snd_ac97 *ac97) argument
174 is_clfe_on(struct snd_ac97 *ac97) argument
180 is_shared_surrout(struct snd_ac97 *ac97) argument
186 is_shared_clfeout(struct snd_ac97 *ac97) argument
192 is_shared_linein(struct snd_ac97 *ac97) argument
198 is_shared_micin(struct snd_ac97 *ac97) argument
203 alc850_is_aux_back_surround(struct snd_ac97 *ac97) argument
227 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
241 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
272 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
283 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
292 patch_yamaha_ymf7x3_3d(struct snd_ac97 *ac97) argument
328 patch_yamaha_ymf743_build_spdif(struct snd_ac97 *ac97) argument
350 patch_yamaha_ymf743(struct snd_ac97 *ac97) argument
373 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
383 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
414 patch_yamaha_ymf753_post_spdif(struct snd_ac97 * ac97) argument
429 patch_yamaha_ymf753(struct snd_ac97 * ac97) argument
455 patch_wolfson_wm9703_specific(struct snd_ac97 * ac97) argument
476 patch_wolfson03(struct snd_ac97 * ac97) argument
491 patch_wolfson_wm9704_specific(struct snd_ac97 * ac97) argument
508 patch_wolfson04(struct snd_ac97 * ac97) argument
515 patch_wolfson05(struct snd_ac97 * ac97) argument
631 patch_wolfson_wm9711_specific(struct snd_ac97 * ac97) argument
653 patch_wolfson11(struct snd_ac97 * ac97) argument
799 patch_wolfson_wm9713_3d(struct snd_ac97 * ac97) argument
811 patch_wolfson_wm9713_specific(struct snd_ac97 * ac97) argument
831 patch_wolfson_wm9713_suspend(struct snd_ac97 * ac97) argument
837 patch_wolfson_wm9713_resume(struct snd_ac97 * ac97) argument
854 patch_wolfson13(struct snd_ac97 * ac97) argument
874 patch_tritech_tr28028(struct snd_ac97 * ac97) argument
886 patch_sigmatel_stac9700_3d(struct snd_ac97 * ac97) argument
900 patch_sigmatel_stac9708_3d(struct snd_ac97 * ac97) argument
935 patch_sigmatel_stac97xx_specific(struct snd_ac97 * ac97) argument
968 patch_sigmatel_stac9700(struct snd_ac97 * ac97) argument
976 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
997 patch_sigmatel_stac9708_specific(struct snd_ac97 *ac97) argument
1016 patch_sigmatel_stac9708(struct snd_ac97 * ac97) argument
1042 patch_sigmatel_stac9721(struct snd_ac97 * ac97) argument
1056 patch_sigmatel_stac9744(struct snd_ac97 * ac97) argument
1068 patch_sigmatel_stac9756(struct snd_ac97 * ac97) argument
1091 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1105 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1130 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1141 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1159 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1167 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1204 patch_sigmatel_stac9758_specific(struct snd_ac97 *ac97) argument
1231 patch_sigmatel_stac9758(struct snd_ac97 * ac97) argument
1279 patch_cirrus_build_spdif(struct snd_ac97 * ac97) argument
1308 patch_cirrus_spdif(struct snd_ac97 * ac97) argument
1329 patch_cirrus_cs4299(struct snd_ac97 * ac97) argument
1344 patch_conexant_build_spdif(struct snd_ac97 * ac97) argument
1367 patch_conexant(struct snd_ac97 * ac97) argument
1376 patch_cx20551(struct snd_ac97 *ac97) argument
1386 ad18xx_resume(struct snd_ac97 *ac97) argument
1449 ad1888_resume(struct snd_ac97 *ac97) argument
1468 patch_ad1819(struct snd_ac97 * ac97) argument
1479 patch_ad1881_unchained(struct snd_ac97 * ac97, int idx, unsigned short mask) argument
1495 patch_ad1881_chained1(struct snd_ac97 * ac97, int idx, unsigned short codec_bits) argument
1513 patch_ad1881_chained(struct snd_ac97 * ac97, int unchained_idx, int cidx1, int cidx2) argument
1545 patch_ad1881(struct snd_ac97 * ac97) argument
1615 patch_ad1885_specific(struct snd_ac97 * ac97) argument
1634 patch_ad1885(struct snd_ac97 * ac97) argument
1647 patch_ad1886_specific(struct snd_ac97 * ac97) argument
1661 patch_ad1886(struct snd_ac97 * ac97) argument
1782 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1792 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1809 patch_ad198x_post_spdif(struct snd_ac97 * ac97) argument
1838 check_list(struct snd_ac97 *ac97, const unsigned int *list) argument
1847 patch_ad1981a_specific(struct snd_ac97 * ac97) argument
1879 check_ad1981_hp_jack_sense(struct snd_ac97 *ac97) argument
1886 patch_ad1981a(struct snd_ac97 *ac97) argument
1899 patch_ad1981b_specific(struct snd_ac97 *ac97) argument
1920 patch_ad1981b(struct snd_ac97 *ac97) argument
1934 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1947 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1967 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1980 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
1994 ad1888_update_jacks(struct snd_ac97 *ac97) argument
2033 patch_ad1888_specific(struct snd_ac97 *ac97) argument
2054 patch_ad1888(struct snd_ac97 * ac97) argument
2085 patch_ad1980_specific(struct snd_ac97 *ac97) argument
2104 patch_ad1980(struct snd_ac97 * ac97) argument
2125 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2137 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2181 ad1985_update_jacks(struct snd_ac97 *ac97) argument
2189 patch_ad1985_specific(struct snd_ac97 *ac97) argument
2215 patch_ad1985(struct snd_ac97 * ac97) argument
2245 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2256 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2281 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2292 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2317 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2326 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2342 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2360 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2454 ad1986_update_jacks(struct snd_ac97 *ac97) argument
2487 patch_ad1986_specific(struct snd_ac97 *ac97) argument
2508 patch_ad1986(struct snd_ac97 * ac97) argument
2523 patch_alc203(struct snd_ac97 *ac97) argument
2532 alc650_update_jacks(struct snd_ac97 *ac97) argument
2556 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2610 patch_alc650_specific(struct snd_ac97 * ac97) argument
2633 patch_alc650(struct snd_ac97 * ac97) argument
2691 alc655_update_jacks(struct snd_ac97 *ac97) argument
2722 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2732 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2745 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
2765 patch_alc655_specific(struct snd_ac97 * ac97) argument
2785 patch_alc655(struct snd_ac97 * ac97) argument
2844 alc850_update_jacks(struct snd_ac97 *ac97) argument
2879 patch_alc850_specific(struct snd_ac97 *ac97) argument
2899 patch_alc850(struct snd_ac97 *ac97) argument
2934 patch_aztech_azf3328_specific(struct snd_ac97 *ac97) argument
2972 patch_aztech_azf3328(struct snd_ac97 *ac97) argument
2981 cm9738_update_jacks(struct snd_ac97 *ac97) argument
2994 patch_cm9738_specific(struct snd_ac97 * ac97) argument
3004 patch_cm9738(struct snd_ac97 * ac97) argument
3024 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
3034 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
3059 cm9739_update_jacks(struct snd_ac97 *ac97) argument
3074 patch_cm9739_specific(struct snd_ac97 * ac97) argument
3079 patch_cm9739_post_spdif(struct snd_ac97 * ac97) argument
3090 patch_cm9739(struct snd_ac97 * ac97) argument
3149 cm9761_update_jacks(struct snd_ac97 *ac97) argument
3198 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
3211 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); local
3244 patch_cm9761_post_spdif(struct snd_ac97 * ac97) argument
3249 patch_cm9761_specific(struct snd_ac97 * ac97) argument
3260 patch_cm9761(struct snd_ac97 *ac97) argument
3347 patch_cm9780_specific(struct snd_ac97 *ac97) argument
3357 patch_cm9780(struct snd_ac97 *ac97) argument
3381 patch_vt1613_specific(struct snd_ac97 *ac97) argument
3391 patch_vt1613(struct snd_ac97 *ac97) argument
3428 snd_ac97_find_mixer_ctl(struct snd_ac97 *ac97, const char *name) argument
3435 snd_ac97_add_vmaster(struct snd_ac97 *ac97, char *name, const unsigned int *tlv, const char * const *followers) argument
3452 patch_vt1616_specific(struct snd_ac97 * ac97) argument
3490 patch_vt1616(struct snd_ac97 * ac97) argument
3586 patch_vt1617a(struct snd_ac97 * ac97) argument
3801 patch_vt1618(struct snd_ac97 *ac97) argument
3809 it2646_update_jacks(struct snd_ac97 *ac97) argument
3830 patch_it2646_specific(struct snd_ac97 * ac97) argument
3847 patch_it2646(struct snd_ac97 * ac97) argument
3867 patch_si3036_specific(struct snd_ac97 * ac97) argument
3882 mpatch_si3036(struct snd_ac97 * ac97) argument
3914 patch_lm4550(struct snd_ac97 *ac97) argument
[all...]
H A Dac97_pcm.c159 static int set_spdif_rate(struct snd_ac97 *ac97, unsigned short rate) argument
164 if (! (ac97->ext_id & AC97_EI_SPDIF))
168 if (ac97->flags & AC97_CS_SPDIF) {
173 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0);
179 if (ac97->id == AC97_ID_CM9739 && rate != 48000) {
180 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0);
188 snd_ac97_update_bits(ac97, AC97_EXTENDED_STATUS, AC97_EA_SPDIF, 0);
195 mutex_lock(&ac97->reg_mutex);
196 old = snd_ac97_read(ac97, reg) & mask;
198 snd_ac97_update_bits_nolock(ac97, AC97_EXTENDED_STATU
243 snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate) argument
307 get_pslots(struct snd_ac97 *ac97, unsigned char *rate_table, unsigned short *spdif_slots) argument
382 get_cslots(struct snd_ac97 *ac97) argument
[all...]
H A Dac97_patch.h55 struct snd_ac97 * ac97);
62 static int snd_ac97_try_bit(struct snd_ac97 * ac97, int reg, int bit);
63 static int snd_ac97_remove_ctl(struct snd_ac97 *ac97, const char *name,
65 static int snd_ac97_rename_ctl(struct snd_ac97 *ac97, const char *src,
67 static int snd_ac97_swap_ctl(struct snd_ac97 *ac97, const char *s1,
69 static void snd_ac97_rename_vol_ctl(struct snd_ac97 *ac97, const char *src,
72 static void snd_ac97_restore_status(struct snd_ac97 *ac97);
73 static void snd_ac97_restore_iec958(struct snd_ac97 *ac97);
/linux-master/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, argument
29 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16;
30 ac97->id |= ac97->bus->ops->read(ac97, AC97_VENDOR_ID2);
32 if (ac97->id == 0x0 || ac97
55 snd_ac97_reset(struct snd_ac97 *ac97, bool try_warm, unsigned int id, unsigned int id_mask) argument
[all...]
/linux-master/drivers/base/regmap/
H A Dregmap-ac97.c47 struct snd_ac97 *ac97 = context; local
49 *val = ac97->bus->ops->read(ac97, reg);
57 struct snd_ac97 *ac97 = context; local
59 ac97->bus->ops->write(ac97, reg, val);
69 struct regmap *__regmap_init_ac97(struct snd_ac97 *ac97, argument
74 return __regmap_init(&ac97->dev, &ac97_regmap_bus, ac97, config,
79 struct regmap *__devm_regmap_init_ac97(struct snd_ac97 *ac97, argument
[all...]
/linux-master/sound/soc/tegra/
H A Dtegra20_ac97.c32 #define DRV_NAME "tegra20-ac97"
36 static void tegra20_ac97_codec_reset(struct snd_ac97 *ac97) argument
62 static void tegra20_ac97_codec_warm_reset(struct snd_ac97 *ac97) argument
141 static inline void tegra20_ac97_start_playback(struct tegra20_ac97 *ac97) argument
143 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR,
147 regmap_update_bits(ac97->regmap, TEGRA20_AC97_CTRL,
154 static inline void tegra20_ac97_stop_playback(struct tegra20_ac97 *ac97) argument
156 regmap_update_bits(ac97->regmap, TEGRA20_AC97_FIFO1_SCR,
159 regmap_update_bits(ac97->regmap, TEGRA20_AC97_CTRL,
163 static inline void tegra20_ac97_start_capture(struct tegra20_ac97 *ac97) argument
170 tegra20_ac97_stop_capture(struct tegra20_ac97 *ac97) argument
179 struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai); local
207 struct tegra20_ac97 *ac97 = snd_soc_dai_get_drvdata(dai); local
303 struct tegra20_ac97 *ac97; local
430 struct tegra20_ac97 *ac97 = dev_get_drvdata(&pdev->dev); local
[all...]
/linux-master/include/sound/ac97/
H A Dcompat.h15 void snd_ac97_compat_release(struct snd_ac97 *ac97);
/linux-master/sound/arm/
H A DMakefile11 snd-pxa2xx-lib-$(CONFIG_SND_PXA2XX_LIB_AC97) += pxa2xx-ac97-lib.o
13 obj-$(CONFIG_SND_PXA2XX_AC97) += snd-pxa2xx-ac97.o
14 snd-pxa2xx-ac97-objs := pxa2xx-ac97.o
/linux-master/include/linux/mfd/
H A Dwm97xx.h16 struct snd_ac97 *ac97; member in struct:wm97xx_platform_data
/linux-master/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) argument
294 ac97_is_modem(struct snd_ac97 * ac97) argument
298 ac97_is_rev22(struct snd_ac97 * ac97) argument
302 ac97_can_amap(struct snd_ac97 * ac97) argument
306 ac97_can_spdif(struct snd_ac97 * ac97) argument
329 snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup) argument
339 snd_ac97_suspend(struct snd_ac97 *ac97) argument
340 snd_ac97_resume(struct snd_ac97 *ac97) argument
416 snd_ac97_dev_add_pdata(struct snd_ac97 *ac97, void *data) argument
[all...]
/linux-master/include/linux/platform_data/
H A Dasoc-imx-ssi.h17 void (*ac97_reset) (struct snd_ac97 *ac97);
18 void (*ac97_warm_reset)(struct snd_ac97 *ac97);
/linux-master/sound/pci/cs5535audio/
H A Dcs5535audio.h42 /* cs5535 specific ac97 codec register defines */
87 struct snd_ac97 *ac97; member in struct:cs5535audio
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) argument
111 olpc_analog_input(ac97, 0);
113 olpc_mic_bias(ac97, 1);
116 static inline void olpc_capture_close(struct snd_ac97 *ac97) argument
124 olpc_prequirks(struct snd_card *card, struct snd_ac97_template *ac97) argument
126 olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) argument
131 olpc_analog_input(struct snd_ac97 *ac97, int on) argument
132 olpc_mic_bias(struct snd_ac97 *ac97, int on) argument
133 olpc_capture_open(struct snd_ac97 *ac97) argument
134 olpc_capture_close(struct snd_ac97 *ac97) argument
[all...]
H A Dcs5535audio_olpc.c24 void olpc_analog_input(struct snd_ac97 *ac97, int on) argument
32 err = snd_ac97_update_bits(ac97, AC97_AD_TEST2,
35 dev_err(ac97->bus->card->dev,
47 void olpc_mic_bias(struct snd_ac97 *ac97, int on) argument
55 err = snd_ac97_update_bits(ac97, AC97_AD_MISC,
58 dev_err(ac97->bus->card->dev, "setting MIC Bias - %d\n", err);
81 olpc_analog_input(cs5535au->ac97, v->value.integer.value[0]);
98 struct snd_ac97 *ac97 = cs5535au->ac97; local
101 i = (snd_ac97_read(ac97, AC97_AD_MIS
133 olpc_prequirks(struct snd_card *card, struct snd_ac97_template *ac97) argument
144 olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) argument
[all...]
/linux-master/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, argument
134 ac97->gpio_priv = gpio_priv;
147 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) argument
149 gpiochip_remove(&ac97->gpio_priv->gpio_chip);
152 static int snd_soc_ac97_init_gpio(struct snd_ac97 *ac97, argument
158 static void snd_soc_ac97_free_gpio(struct snd_ac97 *ac97) 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; local
215 struct snd_ac97 *ac97; local
253 snd_soc_free_ac97_component(struct snd_ac97 *ac97) argument
264 snd_soc_ac97_warm_reset(struct snd_ac97 *ac97) argument
280 snd_soc_ac97_reset(struct snd_ac97 *ac97) argument
[all...]
/linux-master/sound/pci/au88x0/
H A Dau88x0_mixer.c26 struct snd_ac97_template ac97; local
36 memset(&ac97, 0, sizeof(ac97));
38 ac97.private_data = vortex;
39 ac97.scaps = AC97_SCAP_NO_SPDIF;
40 err = snd_ac97_mixer(pbus, &ac97, &vortex->codec);
/linux-master/sound/soc/codecs/
H A Dac97.c3 * ac97.c -- ALSA Soc AC97 codec support
36 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); local
40 return snd_ac97_set_rate(ac97, reg, substream->runtime->rate);
48 .name = "ac97-hifi",
66 struct snd_ac97 *ac97; local
71 /* add codec as bus device for standard ac97 */
78 ret = snd_ac97_mixer(ac97_bus, &ac97_template, &ac97);
82 snd_soc_component_set_drvdata(component, ac97);
90 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); local
92 snd_ac97_suspend(ac97);
100 struct snd_ac97 *ac97 = snd_soc_component_get_drvdata(component); local
[all...]
/linux-master/drivers/media/usb/stk1160/
H A DMakefile6 stk1160-ac97.o
/linux-master/sound/soc/au1x/
H A DMakefile5 snd-soc-au1xpsc-ac97-objs := psc-ac97.o
14 obj-$(CONFIG_SND_SOC_AU1XPSC_AC97) += snd-soc-au1xpsc-ac97.o

Completed in 179 milliseconds

12345