mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-19 12:51:23 +02:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commit c8ffd1356d42223cbb8c86280a083cc3c93e6426, reversing changes made to 2ee6f3a5f7550de3599faef9704e166e5dcace35. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
29 lines
639 B
C
29 lines
639 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2018 Google LLC
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*/
|
|
|
|
#define LOG_CATEGORY UCLASS_AUDIO_CODEC
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <audio_codec.h>
|
|
|
|
int audio_codec_set_params(struct udevice *dev, int interface, int rate,
|
|
int mclk_freq, int bits_per_sample, uint channels)
|
|
{
|
|
struct audio_codec_ops *ops = audio_codec_get_ops(dev);
|
|
|
|
if (!ops->set_params)
|
|
return -ENOSYS;
|
|
|
|
return ops->set_params(dev, interface, rate, mclk_freq, bits_per_sample,
|
|
channels);
|
|
}
|
|
|
|
UCLASS_DRIVER(audio_codec) = {
|
|
.id = UCLASS_AUDIO_CODEC,
|
|
.name = "audio-codec",
|
|
};
|