/* If clock slaved to SPDIF-IN, setting runtime rate to the detected external rate  */
static void qtet_spdif_in_open(struct snd_ice1712 *ice, struct snd_pcm_substream *substream)
/* If clock slaved to SPDIF-IN, setting runtime rate to the detected external rate  */
static void qtet_spdif_in_open(struct snd_ice1712 *ice, struct snd_pcm_substream *substream)
{
	struct qtet_spec *spec = ice->spec;
	struct snd_pcm_runtime *runtime = substream->runtime;
	int rate;
	if (qtet_get_spdif_master_type(ice) != EXT_SPDIF_TYPE)
		return;
	rate = snd_ak4113_external_rate(spec->ak4113);
	if (rate >= runtime->hw.rate_min && rate <= runtime->hw.rate_max) {
		runtime->hw.rate_min = rate;
		runtime->hw.rate_max = rate;
	}
}