Lines Matching refs:efw
101 efw_transaction(struct snd_efw *efw, unsigned int category,
122 spin_lock(&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;
129 spin_unlock(&efw->lock);
144 err = snd_efw_transaction_run(efw->unit, buf, cmd_bytes,
154 dev_err(&efw->unit->device, "EFW command failed [%u/%u]: %s\n",
181 int snd_efw_command_set_resp_addr(struct snd_efw *efw,
189 if (!efw->resp_addr_changable)
192 return efw_transaction(efw, EFC_CAT_HWCTL,
202 int snd_efw_command_set_tx_mode(struct snd_efw *efw,
206 return efw_transaction(efw, EFC_CAT_TRANSPORT,
211 int snd_efw_command_get_hwinfo(struct snd_efw *efw,
216 err = efw_transaction(efw, EFC_CAT_HWINFO,
255 int snd_efw_command_get_phys_meters(struct snd_efw *efw,
263 err = efw_transaction(efw, EFC_CAT_HWINFO,
274 command_get_clock(struct snd_efw *efw, struct efc_clock *clock)
278 err = efw_transaction(efw, EFC_CAT_HWCTL,
293 command_set_clock(struct snd_efw *efw,
306 err = command_get_clock(efw, &clock);
325 err = efw_transaction(efw, EFC_CAT_HWCTL,
342 int snd_efw_command_get_clock_source(struct snd_efw *efw,
348 err = command_get_clock(efw, &clock);
355 int snd_efw_command_get_sampling_rate(struct snd_efw *efw, unsigned int *rate)
360 err = command_get_clock(efw, &clock);
367 int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate)
369 return command_set_clock(efw, UINT_MAX, rate);