Lines Matching refs:spec

148 	struct ews_spec *spec = ice->spec;  in snd_ice1712_ews88mt_chip_select()  local
154 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) in snd_ice1712_ews88mt_chip_select()
158 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], &ndata, 1) in snd_ice1712_ews88mt_chip_select()
234 struct ews_spec *spec = ice->spec; in snd_ice1712_ews_cs8404_spdif_write() local
243 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_CS8404], &bits, 1) in snd_ice1712_ews_cs8404_spdif_write()
248 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], bytes, 2) in snd_ice1712_ews_cs8404_spdif_write()
253 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D], in snd_ice1712_ews_cs8404_spdif_write()
427 struct ews_spec *spec; in snd_ice1712_ews_init() local
453 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in snd_ice1712_ews_init()
454 if (!spec) in snd_ice1712_ews_init()
456 ice->spec = spec; in snd_ice1712_ews_init()
471 &spec->i2cdevs[EWS_I2C_6FIRE]); in snd_ice1712_ews_init()
486 &spec->i2cdevs[EWS_I2C_CS8404]); in snd_ice1712_ews_init()
491 &spec->i2cdevs[EWS_I2C_PCF1]); in snd_ice1712_ews_init()
496 &spec->i2cdevs[EWS_I2C_PCF2]); in snd_ice1712_ews_init()
506 &spec->i2cdevs[EWS_I2C_88D]); in snd_ice1712_ews_init()
641 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88mt_output_sense_get() local
645 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) { in snd_ice1712_ews88mt_output_sense_get()
658 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88mt_output_sense_put() local
662 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF2], &data, 1) != 1) { in snd_ice1712_ews88mt_output_sense_put()
667 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF2], in snd_ice1712_ews88mt_output_sense_put()
680 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88mt_input_sense_get() local
687 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF1], &data, 1) != 1) { in snd_ice1712_ews88mt_input_sense_get()
701 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88mt_input_sense_put() local
708 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_PCF1], &data, 1) != 1) { in snd_ice1712_ews88mt_input_sense_put()
713 if (ndata != data && snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_PCF1], in snd_ice1712_ews88mt_input_sense_put()
749 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88d_control_get() local
755 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) { in snd_ice1712_ews88d_control_get()
770 struct ews_spec *spec = ice->spec; in snd_ice1712_ews88d_control_put() local
777 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) { in snd_ice1712_ews88d_control_put()
791 snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_88D], data, 2) != 2) { in snd_ice1712_ews88d_control_put()
825 struct ews_spec *spec = ice->spec; in snd_ice1712_6fire_read_pca() local
829 snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1); in snd_ice1712_6fire_read_pca()
831 if (snd_i2c_readbytes(spec->i2cdevs[EWS_I2C_6FIRE], &byte, 1) != 1) { in snd_ice1712_6fire_read_pca()
843 struct ews_spec *spec = ice->spec; in snd_ice1712_6fire_write_pca() local
848 if (snd_i2c_sendbytes(spec->i2cdevs[EWS_I2C_6FIRE], bytes, 2) != 2) { in snd_ice1712_6fire_write_pca()