Lines Matching defs: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)
836 static int get_cks_val(int rate)
840 if (qtet_rates[i] == rate)
845 /* setting new rate */
846 static void qtet_set_rate(struct snd_ice1712 *ice, unsigned int rate)
854 new = (get_cpld(ice) & ~CPLD_CKS_MASK) | get_cks_val(rate);
863 unsigned int rate)
902 /* checking only rate/clock-related bits */
932 int rate;
935 /* only for SPDIF master mode, rate was changed */
936 rate = snd_ak4113_external_rate(ak4113);
937 /* dev_dbg(ice->card->dev, "ak4113 - input rate changed to %d\n",
938 rate); */
939 qtet_akm_set_rate_val(ice->akm, rate);
944 * If clock slaved to SPDIF-IN, setting runtime rate
945 * to the detected external rate
952 int rate;
955 /* not external SPDIF, no rate limitation */
957 /* only external SPDIF can detect incoming sample rate */
958 rate = snd_ak4113_external_rate(spec->ak4113);
959 if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) {
960 runtime->hw.rate_min = rate;
961 runtime->hw.rate_max = rate;
1004 /* since Qtet can detect correct SPDIF-in rate, all streams can be
1005 * limited to this specific rate */
1043 /* callback for codecs rate setting */
1046 /* AK41143 in Quartet can detect external rate correctly