Ejemplo n.º 1
0
int adie_codec_register_codec_operations(
			const struct adie_codec_operations *adie_ops)
{
	if (adie_ops == NULL)
		return -EINVAL;

	if (adie_ops->codec_id != adie_get_detected_codec_type())
		return -EINVAL;

	cur_adie_ops = adie_ops;
	pr_info("%s: codec type %d\n", __func__, adie_ops->codec_id);
	return 0;
}
Ejemplo n.º 2
0
int adie_codec_register_codec_operations(
			const struct adie_codec_operations *adie_ops)
{
#ifdef CONFIG_CODEC_AIC3008 || CONFIG_MACH_VISION
//HTC_CSP_START
//difei, just return for mark marimba
	return 0;
//HTC_CSP_END
#endif
	if (adie_ops == NULL)
		return -EINVAL;

	if (adie_ops->codec_id != adie_get_detected_codec_type())
		return -EINVAL;

	cur_adie_ops = adie_ops;
	pr_info("%s: codec type %d\n", __func__, adie_ops->codec_id);
	return 0;
}