Lines Matching refs:cs8427
17 #include <sound/cs8427.h>
20 static void snd_cs8427_reset(struct snd_i2c_device *cs8427);
37 struct cs8427 {
83 struct cs8427 *chip = device->private_data;
103 struct cs8427 *chip = device->private_data;
186 struct cs8427 *chip = device->private_data;
255 struct cs8427 *chip;
305 static void snd_cs8427_reset(struct snd_i2c_device *cs8427)
307 struct cs8427 *chip;
311 if (snd_BUG_ON(!cs8427))
313 chip = cs8427->private_data;
314 snd_i2c_lock(cs8427->bus);
319 snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE,
323 snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE,
326 snd_i2c_unlock(cs8427->bus);
329 snd_i2c_lock(cs8427->bus);
330 data = snd_cs8427_reg_read(cs8427, CS8427_REG_RECVERRORS);
331 snd_i2c_unlock(cs8427->bus);
336 snd_i2c_lock(cs8427->bus);
340 snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE,
342 snd_i2c_unlock(cs8427->bus);
415 struct cs8427 *chip = device->private_data;
427 struct cs8427 *chip = device->private_data;
515 int snd_cs8427_iec958_build(struct snd_i2c_device *cs8427,
519 struct cs8427 *chip = cs8427->private_data;
527 kctl = snd_ctl_new1(&snd_cs8427_iec958_controls[idx], cs8427);
532 err = snd_ctl_add(cs8427->bus->card, kctl);
549 int snd_cs8427_iec958_active(struct snd_i2c_device *cs8427, int active)
551 struct cs8427 *chip;
553 if (snd_BUG_ON(!cs8427))
555 chip = cs8427->private_data;
563 snd_ctl_notify(cs8427->bus->card,
571 int snd_cs8427_iec958_pcm(struct snd_i2c_device *cs8427, unsigned int rate)
573 struct cs8427 *chip;
577 if (snd_BUG_ON(!cs8427))
579 chip = cs8427->private_data;
581 snd_i2c_lock(cs8427->bus);
598 err = snd_cs8427_send_corudata(cs8427, 0, status, 24);
600 snd_ctl_notify(cs8427->bus->card,
605 snd_i2c_unlock(cs8427->bus);
607 snd_cs8427_reset(cs8427);