Lines Matching refs:cs8427
17 #include <sound/cs8427.h>
20 static void snd_cs8427_reset(struct snd_i2c_device *cs8427);
37 struct cs8427 {
86 struct cs8427 *chip = device->private_data;
106 struct cs8427 *chip = device->private_data;
190 struct cs8427 *chip = device->private_data;
262 struct cs8427 *chip;
312 static void snd_cs8427_reset(struct snd_i2c_device *cs8427)
314 struct cs8427 *chip;
318 if (snd_BUG_ON(!cs8427))
320 chip = cs8427->private_data;
321 snd_i2c_lock(cs8427->bus);
326 snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE,
330 snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE,
333 snd_i2c_unlock(cs8427->bus);
336 snd_i2c_lock(cs8427->bus);
337 data = snd_cs8427_reg_read(cs8427, CS8427_REG_RECVERRORS);
338 snd_i2c_unlock(cs8427->bus);
343 snd_i2c_lock(cs8427->bus);
347 snd_cs8427_reg_write(cs8427, CS8427_REG_CLOCKSOURCE,
349 snd_i2c_unlock(cs8427->bus);
423 struct cs8427 *chip = device->private_data;
435 struct cs8427 *chip = device->private_data;
523 int snd_cs8427_iec958_build(struct snd_i2c_device *cs8427,
527 struct cs8427 *chip = cs8427->private_data;
535 kctl = snd_ctl_new1(&snd_cs8427_iec958_controls[idx], cs8427);
540 err = snd_ctl_add(cs8427->bus->card, kctl);
557 int snd_cs8427_iec958_active(struct snd_i2c_device *cs8427, int active)
559 struct cs8427 *chip;
561 if (snd_BUG_ON(!cs8427))
563 chip = cs8427->private_data;
571 snd_ctl_notify(cs8427->bus->card,
579 int snd_cs8427_iec958_pcm(struct snd_i2c_device *cs8427, unsigned int rate)
581 struct cs8427 *chip;
585 if (snd_BUG_ON(!cs8427))
587 chip = cs8427->private_data;
589 snd_i2c_lock(cs8427->bus);
606 err = snd_cs8427_send_corudata(cs8427, 0, status, 24);
608 snd_ctl_notify(cs8427->bus->card,
613 snd_i2c_unlock(cs8427->bus);
615 snd_cs8427_reset(cs8427);