diff options
author | Thierry Reding <treding@nvidia.com> | 2019-01-03 17:23:16 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-01-16 15:10:20 +0300 |
commit | fad7b80643100d16b157b4367a6d2c7f8b19f812 (patch) | |
tree | 5a9b13256951ac2c08bb6aa601f7aee5a255896e /drivers/gpu/drm/tegra/hda.h | |
parent | cd54fb96e568cf95bad6deb8b070e05643e80935 (diff) | |
download | linux-fad7b80643100d16b157b4367a6d2c7f8b19f812.tar.xz |
drm/tegra: hda: Extract HDA format parsing code
This code can be reused for HDMI, so extract it into a reusable
function.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/hda.h')
-rw-r--r-- | drivers/gpu/drm/tegra/hda.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/hda.h b/drivers/gpu/drm/tegra/hda.h new file mode 100644 index 000000000000..77269955a4f2 --- /dev/null +++ b/drivers/gpu/drm/tegra/hda.h @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: MIT +/* + * Copyright (C) 2019 NVIDIA Corporation + */ + +#ifndef DRM_TEGRA_HDA_H +#define DRM_TEGRA_HDA_H 1 + +#include <linux/types.h> + +struct tegra_hda_format { + unsigned int sample_rate; + unsigned int channels; + unsigned int bits; + bool pcm; +}; + +void tegra_hda_parse_format(unsigned int format, struct tegra_hda_format *fmt); + +#endif |