ak4114 178 include/sound/ak4114.h void (*change_callback)(struct ak4114 *ak4114, unsigned char c0, unsigned char c1); ak4114 184 include/sound/ak4114.h void *private_data, struct ak4114 **r_ak4114); ak4114 185 include/sound/ak4114.h void snd_ak4114_reg_write(struct ak4114 *ak4114, unsigned char reg, unsigned char mask, unsigned char val); ak4114 186 include/sound/ak4114.h void snd_ak4114_reinit(struct ak4114 *ak4114); ak4114 187 include/sound/ak4114.h int snd_ak4114_build(struct ak4114 *ak4114, ak4114 190 include/sound/ak4114.h int snd_ak4114_external_rate(struct ak4114 *ak4114); ak4114 191 include/sound/ak4114.h int snd_ak4114_check_rate_and_errors(struct ak4114 *ak4114, unsigned int flags); ak4114 194 include/sound/ak4114.h void snd_ak4114_suspend(struct ak4114 *chip); ak4114 195 include/sound/ak4114.h void snd_ak4114_resume(struct ak4114 *chip); ak4114 197 include/sound/ak4114.h static inline void snd_ak4114_suspend(struct ak4114 *chip) {} ak4114 198 include/sound/ak4114.h static inline void snd_ak4114_resume(struct ak4114 *chip) {} ak4114 25 sound/i2c/other/ak4114.c static void ak4114_init_regs(struct ak4114 *chip); ak4114 27 sound/i2c/other/ak4114.c static void reg_write(struct ak4114 *ak4114, unsigned char reg, unsigned char val) ak4114 29 sound/i2c/other/ak4114.c ak4114->write(ak4114->private_data, reg, val); ak4114 31 sound/i2c/other/ak4114.c ak4114->regmap[reg] = val; ak4114 33 sound/i2c/other/ak4114.c ak4114->txcsb[reg-AK4114_REG_TXCSB0] = val; ak4114 36 sound/i2c/other/ak4114.c static inline unsigned char reg_read(struct ak4114 *ak4114, unsigned char reg) ak4114 38 sound/i2c/other/ak4114.c return ak4114->read(ak4114->private_data, reg); ak4114 42 sound/i2c/other/ak4114.c static void reg_dump(struct ak4114 *ak4114) ak4114 48 sound/i2c/other/ak4114.c printk(KERN_DEBUG "reg[%02x] = %02x (%02x)\n", i, reg_read(ak4114, i), i < ARRAY_SIZE(ak4114->regmap) ? ak4114->regmap[i] : 0); ak4114 52 sound/i2c/other/ak4114.c static void snd_ak4114_free(struct ak4114 *chip) ak4114 61 sound/i2c/other/ak4114.c struct ak4114 *chip = device->device_data; ak4114 69 sound/i2c/other/ak4114.c void *private_data, struct ak4114 **r_ak4114) ak4114 71 sound/i2c/other/ak4114.c struct ak4114 *chip; ak4114 113 sound/i2c/other/ak4114.c void snd_ak4114_reg_write(struct ak4114 *chip, unsigned char reg, unsigned char mask, unsigned char val) ak4114 123 sound/i2c/other/ak4114.c static void ak4114_init_regs(struct ak4114 *chip) ak4114 141 sound/i2c/other/ak4114.c void snd_ak4114_reinit(struct ak4114 *chip) ak4114 181 sound/i2c/other/ak4114.c struct ak4114 *chip = snd_kcontrol_chip(kcontrol); ak4114 196 sound/i2c/other/ak4114.c struct ak4114 *chip = snd_kcontrol_chip(kcontrol); ak4114 218 sound/i2c/other/ak4114.c struct ak4114 *chip = snd_kcontrol_chip(kcontrol); ak4114 234 sound/i2c/other/ak4114.c struct ak4114 *chip = snd_kcontrol_chip(kcontrol); ak4114 245 sound/i2c/other/ak4114.c struct ak4114 *chip = snd_kcontrol_chip(kcontrol); ak4114 256 sound/i2c/other/ak4114.c struct ak4114 *chip = snd_kcontrol_chip(kcontrol); ak4114 290 sound/i2c/other/ak4114.c struct ak4114 *chip = snd_kcontrol_chip(kcontrol); ak4114 312 sound/i2c/other/ak4114.c struct ak4114 *chip = snd_kcontrol_chip(kcontrol); ak4114 442 sound/i2c/other/ak4114.c struct ak4114 *ak4114 = entry->private_data; ak4114 446 sound/i2c/other/ak4114.c val = reg_read(ak4114, reg); ak4114 451 sound/i2c/other/ak4114.c static void snd_ak4114_proc_init(struct ak4114 *ak4114) ak4114 453 sound/i2c/other/ak4114.c snd_card_ro_proc_new(ak4114->card, "ak4114", ak4114, ak4114 457 sound/i2c/other/ak4114.c int snd_ak4114_build(struct ak4114 *ak4114, ak4114 467 sound/i2c/other/ak4114.c ak4114->playback_substream = ply_substream; ak4114 468 sound/i2c/other/ak4114.c ak4114->capture_substream = cap_substream; ak4114 470 sound/i2c/other/ak4114.c kctl = snd_ctl_new1(&snd_ak4114_iec958_controls[idx], ak4114); ak4114 476 sound/i2c/other/ak4114.c ak4114->kctls[idx] = NULL; ak4114 485 sound/i2c/other/ak4114.c err = snd_ctl_add(ak4114->card, kctl); ak4114 488 sound/i2c/other/ak4114.c ak4114->kctls[idx] = kctl; ak4114 490 sound/i2c/other/ak4114.c snd_ak4114_proc_init(ak4114); ak4114 492 sound/i2c/other/ak4114.c schedule_delayed_work(&ak4114->work, HZ / 10); ak4114 498 sound/i2c/other/ak4114.c static void ak4114_notify(struct ak4114 *ak4114, ak4114 502 sound/i2c/other/ak4114.c if (!ak4114->kctls[0]) ak4114 506 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 507 sound/i2c/other/ak4114.c &ak4114->kctls[0]->id); ak4114 509 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 510 sound/i2c/other/ak4114.c &ak4114->kctls[1]->id); ak4114 512 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 513 sound/i2c/other/ak4114.c &ak4114->kctls[2]->id); ak4114 515 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 516 sound/i2c/other/ak4114.c &ak4114->kctls[3]->id); ak4114 520 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 521 sound/i2c/other/ak4114.c &ak4114->kctls[4]->id); ak4114 524 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 525 sound/i2c/other/ak4114.c &ak4114->kctls[9]->id); ak4114 527 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 528 sound/i2c/other/ak4114.c &ak4114->kctls[10]->id); ak4114 531 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 532 sound/i2c/other/ak4114.c &ak4114->kctls[11]->id); ak4114 534 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 535 sound/i2c/other/ak4114.c &ak4114->kctls[12]->id); ak4114 537 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 538 sound/i2c/other/ak4114.c &ak4114->kctls[13]->id); ak4114 540 sound/i2c/other/ak4114.c snd_ctl_notify(ak4114->card, SNDRV_CTL_EVENT_MASK_VALUE, ak4114 541 sound/i2c/other/ak4114.c &ak4114->kctls[14]->id); ak4114 544 sound/i2c/other/ak4114.c int snd_ak4114_external_rate(struct ak4114 *ak4114) ak4114 548 sound/i2c/other/ak4114.c rcs1 = reg_read(ak4114, AK4114_REG_RCS1); ak4114 553 sound/i2c/other/ak4114.c int snd_ak4114_check_rate_and_errors(struct ak4114 *ak4114, unsigned int flags) ak4114 555 sound/i2c/other/ak4114.c struct snd_pcm_runtime *runtime = ak4114->capture_substream ? ak4114->capture_substream->runtime : NULL; ak4114 561 sound/i2c/other/ak4114.c rcs1 = reg_read(ak4114, AK4114_REG_RCS1); ak4114 564 sound/i2c/other/ak4114.c rcs0 = reg_read(ak4114, AK4114_REG_RCS0); ak4114 565 sound/i2c/other/ak4114.c spin_lock_irqsave(&ak4114->lock, _flags); ak4114 567 sound/i2c/other/ak4114.c ak4114->errors[AK4114_PARITY_ERRORS]++; ak4114 569 sound/i2c/other/ak4114.c ak4114->errors[AK4114_V_BIT_ERRORS]++; ak4114 571 sound/i2c/other/ak4114.c ak4114->errors[AK4114_CCRC_ERRORS]++; ak4114 573 sound/i2c/other/ak4114.c ak4114->errors[AK4114_QCRC_ERRORS]++; ak4114 574 sound/i2c/other/ak4114.c c0 = (ak4114->rcs0 & (AK4114_QINT | AK4114_CINT | AK4114_PEM | AK4114_AUDION | AK4114_AUTO | AK4114_UNLCK)) ^ ak4114 576 sound/i2c/other/ak4114.c c1 = (ak4114->rcs1 & 0xf0) ^ (rcs1 & 0xf0); ak4114 577 sound/i2c/other/ak4114.c ak4114->rcs0 = rcs0 & ~(AK4114_QINT | AK4114_CINT); ak4114 578 sound/i2c/other/ak4114.c ak4114->rcs1 = rcs1; ak4114 579 sound/i2c/other/ak4114.c spin_unlock_irqrestore(&ak4114->lock, _flags); ak4114 581 sound/i2c/other/ak4114.c ak4114_notify(ak4114, rcs0, rcs1, c0, c1); ak4114 582 sound/i2c/other/ak4114.c if (ak4114->change_callback && (c0 | c1) != 0) ak4114 583 sound/i2c/other/ak4114.c ak4114->change_callback(ak4114, c0, c1); ak4114 589 sound/i2c/other/ak4114.c snd_pcm_stream_lock_irqsave(ak4114->capture_substream, _flags); ak4114 590 sound/i2c/other/ak4114.c if (snd_pcm_running(ak4114->capture_substream)) { ak4114 592 sound/i2c/other/ak4114.c snd_pcm_stop(ak4114->capture_substream, SNDRV_PCM_STATE_DRAINING); ak4114 595 sound/i2c/other/ak4114.c snd_pcm_stream_unlock_irqrestore(ak4114->capture_substream, _flags); ak4114 603 sound/i2c/other/ak4114.c struct ak4114 *chip = container_of(work, struct ak4114, work.work); ak4114 612 sound/i2c/other/ak4114.c void snd_ak4114_suspend(struct ak4114 *chip) ak4114 619 sound/i2c/other/ak4114.c void snd_ak4114_resume(struct ak4114 *chip) ak4114 24 sound/pci/ice1712/juli.c struct ak4114 *ak4114; ak4114 176 sound/pci/ice1712/juli.c rate = snd_ak4114_external_rate(spec->ak4114); ak4114 254 sound/pci/ice1712/juli.c snd_ak4114_reinit(spec->ak4114); ak4114 463 sound/pci/ice1712/juli.c return snd_ak4114_build(spec->ak4114, NULL, ak4114 479 sound/pci/ice1712/juli.c snd_ak4114_resume(spec->ak4114); ak4114 489 sound/pci/ice1712/juli.c snd_ak4114_suspend(spec->ak4114); ak4114 552 sound/pci/ice1712/juli.c static void juli_ak4114_change(struct ak4114 *ak4114, unsigned char c0, ak4114 555 sound/pci/ice1712/juli.c struct snd_ice1712 *ice = ak4114->change_callback_private; ak4114 559 sound/pci/ice1712/juli.c rate = snd_ak4114_external_rate(ak4114); ak4114 594 sound/pci/ice1712/juli.c ice, &spec->ak4114); ak4114 598 sound/pci/ice1712/juli.c spec->ak4114->change_callback = juli_ak4114_change; ak4114 599 sound/pci/ice1712/juli.c spec->ak4114->change_callback_private = ice; ak4114 601 sound/pci/ice1712/juli.c spec->ak4114->check_flags = 0; ak4114 56 sound/pci/ice1712/prodigy192.c struct ak4114 *ak4114; ak4114 616 sound/pci/ice1712/prodigy192.c ice, &spec->ak4114); ak4114 621 sound/pci/ice1712/prodigy192.c spec->ak4114->check_flags = AK4114_CHECK_NO_RATE; ak4114 657 sound/pci/ice1712/prodigy192.c if (spec->ak4114) { ak4114 666 sound/pci/ice1712/prodigy192.c err = snd_ak4114_build(spec->ak4114, ak4114 24 sound/pci/ice1712/revo.c struct ak4114 *ak4114; ak4114 482 sound/pci/ice1712/revo.c ice, &spec->ak4114); ak4114 487 sound/pci/ice1712/revo.c spec->ak4114->check_flags = AK4114_CHECK_NO_RATE; ak4114 598 sound/pci/ice1712/revo.c err = snd_ak4114_build(spec->ak4114, NULL,