/sound/i2c/ |
D | i2c.c | 39 static int snd_i2c_bit_probeaddr(struct snd_i2c_bus *bus, 48 static int snd_i2c_bus_free(struct snd_i2c_bus *bus) in snd_i2c_bus_free() argument 53 if (snd_BUG_ON(!bus)) in snd_i2c_bus_free() 55 while (!list_empty(&bus->devices)) { in snd_i2c_bus_free() 56 device = snd_i2c_device(bus->devices.next); in snd_i2c_bus_free() 59 if (bus->master) in snd_i2c_bus_free() 60 list_del(&bus->buses); in snd_i2c_bus_free() 62 while (!list_empty(&bus->buses)) { in snd_i2c_bus_free() 63 slave = snd_i2c_slave_bus(bus->buses.next); in snd_i2c_bus_free() 64 snd_device_free(bus->card, slave); in snd_i2c_bus_free() [all …]
|
D | tea6330t.c | 50 struct snd_i2c_bus *bus; member 60 int snd_tea6330t_detect(struct snd_i2c_bus *bus, int equalizer) in snd_tea6330t_detect() argument 64 snd_i2c_lock(bus); in snd_tea6330t_detect() 65 res = snd_i2c_probeaddr(bus, TEA6330T_ADDR); in snd_tea6330t_detect() 66 snd_i2c_unlock(bus); in snd_tea6330t_detect() 77 snd_i2c_write(tea->bus, TEA6330T_ADDR, addr, value, 1); 101 snd_i2c_lock(tea->bus); in snd_tea6330t_get_master_volume() 104 snd_i2c_unlock(tea->bus); in snd_tea6330t_get_master_volume() 118 snd_i2c_lock(tea->bus); in snd_tea6330t_put_master_volume() 136 snd_i2c_unlock(tea->bus); in snd_tea6330t_put_master_volume() [all …]
|
D | cs8427.c | 153 int snd_cs8427_create(struct snd_i2c_bus *bus, in snd_cs8427_create() argument 208 if ((err = snd_i2c_device_create(bus, "CS8427", in snd_cs8427_create() 219 snd_i2c_lock(bus); in snd_cs8427_create() 228 snd_i2c_unlock(bus); in snd_cs8427_create() 264 snd_i2c_unlock(bus); in snd_cs8427_create() 289 snd_i2c_unlock(bus); in snd_cs8427_create() 310 snd_i2c_lock(cs8427->bus); in snd_cs8427_reset() 322 snd_i2c_unlock(cs8427->bus); in snd_cs8427_reset() 325 snd_i2c_lock(cs8427->bus); in snd_cs8427_reset() 327 snd_i2c_unlock(cs8427->bus); in snd_cs8427_reset() [all …]
|
/sound/pci/ac97/ |
D | ac97_pcm.c | 300 tmp = (rate * ac97->bus->clock) / 48000; in snd_ac97_set_rate() 446 int snd_ac97_pcm_assign(struct snd_ac97_bus *bus, in snd_ac97_pcm_assign() argument 467 codec = bus->codec[i]; in snd_ac97_pcm_assign() 474 if (bus->codec[j]) in snd_ac97_pcm_assign() 492 rpcm->bus = bus; in snd_ac97_pcm_assign() 496 if (!bus->codec[j]) in snd_ac97_pcm_assign() 516 rpcm->r[0].codec[j] = bus->codec[j]; in snd_ac97_pcm_assign() 518 if (bus->no_vra) in snd_ac97_pcm_assign() 531 bus->codec[0] && (bus->codec[0]->flags & AC97_DOUBLE_RATE) && in snd_ac97_pcm_assign() 539 rpcm->r[1].codec[0] = bus->codec[0]; in snd_ac97_pcm_assign() [all …]
|
D | ac97_codec.c | 286 ac97->bus->ops->write(ac97, AC97_RESET, 0); /* reset audio codec */ in snd_ac97_write() 288 ac97->bus->ops->write(ac97, reg, value); in snd_ac97_write() 308 return ac97->bus->ops->read(ac97, reg); in snd_ac97_read() 315 ac97->regs[reg] = ac97->bus->ops->read(ac97, reg); in snd_ac97_read_cache() 339 ac97->bus->ops->write(ac97, reg, value); in snd_ac97_write_cache() 368 ac97->bus->ops->write(ac97, reg, value); in snd_ac97_update() 416 ac97->bus->ops->write(ac97, reg, new); in snd_ac97_update_bits_nolock() 436 ac97->bus->ops->write(ac97, AC97_AD_SERIAL_CFG, in snd_ac97_ad18xx_update_pcm_bits() 440 ac97->bus->ops->write(ac97, AC97_PCM, new); in snd_ac97_ad18xx_update_pcm_bits() 442 ac97->bus->ops->write(ac97, AC97_AD_SERIAL_CFG, in snd_ac97_ad18xx_update_pcm_bits() [all …]
|
D | ac97_proc.c | 435 if (ac97->bus->proc == NULL) in snd_ac97_proc_init() 439 if ((entry = snd_info_create_card_entry(ac97->bus->card, name, ac97->bus->proc)) != NULL) { in snd_ac97_proc_init() 448 if ((entry = snd_info_create_card_entry(ac97->bus->card, name, ac97->bus->proc)) != NULL) { in snd_ac97_proc_init() 470 void snd_ac97_bus_proc_init(struct snd_ac97_bus * bus) in snd_ac97_bus_proc_init() argument 475 sprintf(name, "codec97#%d", bus->num); in snd_ac97_bus_proc_init() 476 if ((entry = snd_info_create_card_entry(bus->card, name, bus->card->proc_root)) != NULL) { in snd_ac97_bus_proc_init() 483 bus->proc = entry; in snd_ac97_bus_proc_init() 486 void snd_ac97_bus_proc_done(struct snd_ac97_bus * bus) in snd_ac97_bus_proc_done() argument 488 snd_info_free_entry(bus->proc); in snd_ac97_bus_proc_done() 489 bus->proc = NULL; in snd_ac97_bus_proc_done()
|
D | ac97_patch.c | 47 if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&controls[idx], ac97))) < 0) in patch_build_controls() 61 kctl = snd_ctl_find_id(ac97->bus->card, &sid); in reset_tlv() 336 err = snd_ctl_add(ac97->bus->card, kctl); in patch_yamaha_ymf7x3_3d() 342 err = snd_ctl_add(ac97->bus->card, in patch_yamaha_ymf7x3_3d() 507 if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm97xx_snd_ac97_controls[i], ac97))) < 0) in patch_wolfson_wm9703_specific() 537 if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm9704_snd_ac97_controls[i], ac97))) < 0) in patch_wolfson_wm9704_specific() 677 if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm9711_snd_ac97_controls[i], ac97))) < 0) in patch_wolfson_wm9711_specific() 844 if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm13_snd_ac97_controls_3d[i], ac97))) < 0) in patch_wolfson_wm9713_3d() 855 if ((err = snd_ctl_add(ac97->bus->card, snd_ac97_cnew(&wm13_snd_ac97_controls[i], ac97))) < 0) in patch_wolfson_wm9713_specific() 929 if ((err = snd_ctl_add(ac97->bus->card, kctl = snd_ac97_cnew(&snd_ac97_controls_3d[0], ac97))) < 0) in patch_sigmatel_stac9700_3d() [all …]
|
/sound/pci/hda/ |
D | hda_codec.c | 102 static inline void hda_call_pm_notify(struct hda_bus *bus, bool power_up) in hda_call_pm_notify() argument 104 if (bus->ops.pm_notify) in hda_call_pm_notify() 105 bus->ops.pm_notify(bus, power_up); in hda_call_pm_notify() 111 #define hda_call_pm_notify(bus, state) {} argument 214 struct hda_bus *bus = codec->bus; in codec_exec_verb() local 224 mutex_lock(&bus->cmd_mutex); in codec_exec_verb() 227 err = bus->ops.command(bus, cmd); in codec_exec_verb() 231 bus->ops.get_response(bus, codec->addr); in codec_exec_verb() 234 *res = bus->ops.get_response(bus, codec->addr); in codec_exec_verb() 237 mutex_unlock(&bus->cmd_mutex); in codec_exec_verb() [all …]
|
D | hda_trace.h | 26 __entry->card = (codec)->bus->card->number; 46 TP_PROTO(struct hda_bus *bus), 48 TP_ARGS(bus), 55 __entry->card = (bus)->card->number; 74 __entry->card = (codec)->bus->card->number; 103 __entry->card = (codec)->bus->card->number; 118 TP_PROTO(struct hda_bus *bus, u32 res, u32 res_ex), 120 TP_ARGS(bus, res, res_ex), 129 __entry->card = (bus)->card->number;
|
D | hda_codec.h | 604 int (*command)(struct hda_bus *bus, unsigned int cmd); 606 unsigned int (*get_response)(struct hda_bus *bus, unsigned int addr); 610 int (*attach_pcm)(struct hda_bus *bus, struct hda_codec *codec, 613 void (*bus_reset)(struct hda_bus *bus); 616 void (*pm_notify)(struct hda_bus *bus, bool power_up); 620 int (*load_dsp_prepare)(struct hda_bus *bus, unsigned int format, 624 void (*load_dsp_trigger)(struct hda_bus *bus, bool start); 626 void (*load_dsp_cleanup)(struct hda_bus *bus, 799 struct hda_bus *bus; member 939 int snd_hda_codec_new(struct hda_bus *bus, unsigned int codec_addr, [all …]
|
D | hda_intel.c | 503 struct hda_bus *bus; member 735 static int azx_send_cmd(struct hda_bus *bus, unsigned int val); 833 static int azx_corb_send_cmd(struct hda_bus *bus, u32 val) in azx_corb_send_cmd() argument 835 struct azx *chip = bus->private_data; in azx_corb_send_cmd() 895 snd_hda_queue_unsol_event(chip->bus, res, res_ex); in azx_update_rirb() 910 static unsigned int azx_rirb_get_response(struct hda_bus *bus, in azx_rirb_get_response() argument 913 struct azx *chip = bus->private_data; in azx_rirb_get_response() 929 bus->rirb_error = 0; in azx_rirb_get_response() 937 if (bus->needs_damn_long_delay || loopcounter > 3000) in azx_rirb_get_response() 972 bus->rirb_error = 1; in azx_rirb_get_response() [all …]
|
D | hda_hwdep.c | 135 err = snd_hwdep_new(codec->bus->card, hwname, codec->addr, &hwdep); in snd_hda_create_hwdep() 239 err = snd_card_register(codec->bus->card); in reconfig_codec() 694 static void parse_codec_mode(char *buf, struct hda_bus *bus, in parse_codec_mode() argument 702 list_for_each_entry(codec, &bus->codec_list, list) { in parse_codec_mode() 717 static void parse_pincfg_mode(char *buf, struct hda_bus *bus, in parse_pincfg_mode() argument 723 static void parse_verb_mode(char *buf, struct hda_bus *bus, in parse_verb_mode() argument 729 static void parse_hint_mode(char *buf, struct hda_bus *bus, in parse_hint_mode() argument 735 static void parse_model_mode(char *buf, struct hda_bus *bus, in parse_model_mode() argument 742 static void parse_chip_name_mode(char *buf, struct hda_bus *bus, in parse_chip_name_mode() argument 750 static void parse_##name##_mode(char *buf, struct hda_bus *bus, \ [all …]
|
D | hda_jack.c | 117 if (!codec->bus->shutdown && codec->jacktbl.list) { in snd_hda_jack_tbl_clear() 122 snd_device_free(codec->bus->card, jack->jack); in snd_hda_jack_tbl_clear() 286 snd_kctl_jack_report(codec->bus->card, jack->kctl, state); in snd_hda_jack_report_sync() 353 snd_kctl_jack_report(codec->bus->card, kctl, state); in __snd_hda_jack_add_kctl() 357 err = snd_jack_new(codec->bus->card, name, jack->type, in __snd_hda_jack_add_kctl()
|
D | hda_beep.c | 171 input_dev->dev.parent = &codec->bus->pci->dev; in snd_hda_do_attach() 214 "card%d/codec#%d/beep0", codec->bus->card->number, codec->addr); in snd_hda_attach_beep_device()
|
D | patch_ca0110.c | 69 codec->bus->needs_damn_long_delay = 1; in patch_ca0110()
|
D | hda_eld.c | 609 err = snd_card_proc_new(codec->bus->card, name, &entry); in snd_hda_eld_proc_new() 623 if (!codec->bus->shutdown && eld->proc_entry) { in snd_hda_eld_proc_free() 624 snd_device_free(codec->bus->card, eld->proc_entry); in snd_hda_eld_proc_free()
|
/sound/pci/ice1712/ |
D | revo.c | 95 static void revo_i2c_start(struct snd_i2c_bus *bus) in revo_i2c_start() argument 97 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_start() 101 static void revo_i2c_stop(struct snd_i2c_bus *bus) in revo_i2c_stop() argument 103 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_stop() 107 static void revo_i2c_direction(struct snd_i2c_bus *bus, int clock, int data) in revo_i2c_direction() argument 109 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_direction() 124 static void revo_i2c_setlines(struct snd_i2c_bus *bus, int clk, int data) in revo_i2c_setlines() argument 126 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_setlines() 139 static int revo_i2c_getdata(struct snd_i2c_bus *bus, int ack) in revo_i2c_getdata() argument 141 struct snd_ice1712 *ice = bus->private_data; in revo_i2c_getdata()
|
D | ews.c | 56 static void ewx_i2c_setlines(struct snd_i2c_bus *bus, int clk, int data) in ewx_i2c_setlines() argument 58 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_setlines() 68 static int ewx_i2c_getclock(struct snd_i2c_bus *bus) in ewx_i2c_getclock() argument 70 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_getclock() 74 static int ewx_i2c_getdata(struct snd_i2c_bus *bus, int ack) in ewx_i2c_getdata() argument 76 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_getdata() 91 static void ewx_i2c_start(struct snd_i2c_bus *bus) in ewx_i2c_start() argument 93 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_start() 110 static void ewx_i2c_stop(struct snd_i2c_bus *bus) in ewx_i2c_stop() argument 112 struct snd_ice1712 *ice = bus->private_data; in ewx_i2c_stop() [all …]
|
/sound/isa/gus/ |
D | interwave.c | 167 static void snd_interwave_i2c_setlines(struct snd_i2c_bus *bus, int ctrl, int data) in snd_interwave_i2c_setlines() argument 169 unsigned long port = bus->private_value; in snd_interwave_i2c_setlines() 178 static int snd_interwave_i2c_getclockline(struct snd_i2c_bus *bus) in snd_interwave_i2c_getclockline() argument 180 unsigned long port = bus->private_value; in snd_interwave_i2c_getclockline() 190 static int snd_interwave_i2c_getdataline(struct snd_i2c_bus *bus, int ack) in snd_interwave_i2c_getdataline() argument 192 unsigned long port = bus->private_value; in snd_interwave_i2c_getdataline() 215 struct snd_i2c_bus *bus; in snd_interwave_detect_stb() local 241 if ((err = snd_i2c_bus_create(card, name, NULL, &bus)) < 0) in snd_interwave_detect_stb() 243 bus->private_value = port; in snd_interwave_detect_stb() 244 bus->hw_ops.bit = &snd_interwave_i2c_bit_ops; in snd_interwave_detect_stb() [all …]
|
/sound/aoa/soundbus/ |
D | Kconfig | 8 It is required for the sound bus implementations. 11 tristate "I2S bus support"
|
D | core.c | 180 dev->ofdev.dev.bus = &soundbus_bus_type; in soundbus_add_one() 195 drv->driver.bus = &soundbus_bus_type; in soundbus_register_driver()
|
/sound/pcmcia/ |
D | Kconfig | 8 Support for sound devices connected via the PCMCIA bus.
|
/sound/spi/ |
D | Kconfig | 8 Support for sound devices connected via the SPI bus.
|
/sound/oss/ |
D | ad1848.c | 2904 static struct pnp_dev __init *ad1848_init_generic(struct pnp_card *bus, in ad1848_init_generic() argument 2909 …if((ad1848_dev = pnp_find_dev(bus, ad1848_isapnp_list[slot].vendor, ad1848_isapnp_list[slot].funct… in ad1848_init_generic() 2929 static int __init ad1848_isapnp_init(struct address_info *hw_config, struct pnp_card *bus, int slot) in ad1848_isapnp_init() argument 2931 char *busname = bus->name[0] ? bus->name : ad1848_isapnp_list[slot].name; in ad1848_isapnp_init() 2935 if(ad1848_init_generic(bus, hw_config, slot)) { in ad1848_isapnp_init() 2966 static struct pnp_card *bus = NULL; in ad1848_isapnp_probe() local 2968 while ((bus = pnp_find_card( in ad1848_isapnp_probe() 2971 bus))) { in ad1848_isapnp_probe() 2973 if(ad1848_isapnp_init(hw_config, bus, i)) { in ad1848_isapnp_probe()
|
/sound/pci/ |
D | sis7019.c | 1018 struct snd_ac97_bus *bus; in sis_mixer_create() local 1029 rc = snd_ac97_bus(sis->card, 0, &ops, NULL, &bus); in sis_mixer_create() 1031 rc = snd_ac97_mixer(bus, &ac97, &sis->ac97[0]); in sis_mixer_create() 1034 rc = snd_ac97_mixer(bus, &ac97, &sis->ac97[1]); in sis_mixer_create() 1037 rc = snd_ac97_mixer(bus, &ac97, &sis->ac97[2]); in sis_mixer_create()
|