Lines Matching refs:efw
101 efw_transaction(struct snd_efw *efw, unsigned int category,
122 scoped_guard(spinlock, &efw->lock) {
123 if ((efw->seqnum < KERNEL_SEQNUM_MIN) ||
124 (efw->seqnum >= KERNEL_SEQNUM_MAX - 2))
125 efw->seqnum = KERNEL_SEQNUM_MIN;
127 efw->seqnum += 2;
128 seqnum = efw->seqnum;
144 err = snd_efw_transaction_run(efw->unit, buf, cmd_bytes,
156 dev_err(&efw->unit->device, "EFW command failed [%u/%u]: %s\n",
184 int snd_efw_command_set_resp_addr(struct snd_efw *efw,
192 if (!efw->resp_addr_changable)
195 return efw_transaction(efw, EFC_CAT_HWCTL,
205 int snd_efw_command_set_tx_mode(struct snd_efw *efw,
209 return efw_transaction(efw, EFC_CAT_TRANSPORT,
214 int snd_efw_command_get_hwinfo(struct snd_efw *efw,
219 err = efw_transaction(efw, EFC_CAT_HWINFO,
258 int snd_efw_command_get_phys_meters(struct snd_efw *efw,
266 err = efw_transaction(efw, EFC_CAT_HWINFO,
277 command_get_clock(struct snd_efw *efw, struct efc_clock *clock)
281 err = efw_transaction(efw, EFC_CAT_HWCTL,
296 command_set_clock(struct snd_efw *efw,
309 err = command_get_clock(efw, &clock);
328 err = efw_transaction(efw, EFC_CAT_HWCTL,
345 int snd_efw_command_get_clock_source(struct snd_efw *efw,
351 err = command_get_clock(efw, &clock);
358 int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate)
363 err = command_get_clock(efw, &clock);
370 int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate)
372 return command_set_clock(efw, UINT_MAX, rate);