1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018 Google LLC
4 * Written by Simon Glass <sjg@chromium.org>
9 #include <audio_codec.h>
11 int audio_codec_set_params(struct udevice *dev, int interface, int rate,
12 int mclk_freq, int bits_per_sample, uint channels)
14 struct audio_codec_ops *ops = audio_codec_get_ops(dev);
19 return ops->set_params(dev, interface, rate, mclk_freq, bits_per_sample,
23 UCLASS_DRIVER(audio_codec) = {
24 .id = UCLASS_AUDIO_CODEC,
25 .name = "audio-codec",