Lines Matching refs:rate
218 * Initial setup of the conversion array GPIO <-> rate
335 * change the rate of AK4620
337 static void qtet_akm_set_rate_val(struct snd_akm4xxx *ak, unsigned int rate)
341 if (rate == 0) /* no hint - S/PDIF input is master or the new spdif
342 input rate undetected, simply return */
346 if (rate > 108000)
348 else if (rate > 54000)
818 static int get_cks_val(int rate)
822 if (qtet_rates[i] == rate)
827 /* setting new rate */
828 static void qtet_set_rate(struct snd_ice1712 *ice, unsigned int rate)
836 new = (get_cpld(ice) & ~CPLD_CKS_MASK) | get_cks_val(rate);
845 unsigned int rate)
884 /* checking only rate/clock-related bits */
914 int rate;
917 /* only for SPDIF master mode, rate was changed */
918 rate = snd_ak4113_external_rate(ak4113);
919 /* dev_dbg(ice->card->dev, "ak4113 - input rate changed to %d\n",
920 rate); */
921 qtet_akm_set_rate_val(ice->akm, rate);
926 * If clock slaved to SPDIF-IN, setting runtime rate
927 * to the detected external rate
934 int rate;
937 /* not external SPDIF, no rate limitation */
939 /* only external SPDIF can detect incoming sample rate */
940 rate = snd_ak4113_external_rate(spec->ak4113);
941 if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) {
942 runtime->hw.rate_min = rate;
943 runtime->hw.rate_max = rate;
986 /* since Qtet can detect correct SPDIF-in rate, all streams can be
987 * limited to this specific rate */
1025 /* callback for codecs rate setting */
1028 /* AK41143 in Quartet can detect external rate correctly