/* sa1111_get_audio_rate - get the audio sample rate @sadev: SA1111 SAC function block device  */
int sa1111_get_audio_rate(struct sa1111_dev *sadev)
/* sa1111_get_audio_rate - get the audio sample rate @sadev: SA1111 SAC function block device  */
int sa1111_get_audio_rate(struct sa1111_dev *sadev)
{
	struct sa1111 *sachip = sa1111_chip_driver(sadev);
	unsigned long div;
	if (sadev->devid != SA1111_DEVID_SAC)
		return -EINVAL;
	div = sa1111_readl(sachip->base + SA1111_SKAUD) + 1;
	return __sa1111_pll_clock(sachip) / (256 * div);
}