mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 07:46:44 +07:00
1efb53a220
Having to set different formats on the CPU side and the CODEC side of a DAI link is usually indication that something is terribly wrong and in most cases is a result of a broken driver that implements a set_fmt() callback which does not follow the specification. In the past this feature has been used to work around broken drivers, rather than fixing them. We don't really want to encourage this, so remove support for setting different formats on both ends of the link. Along the way switch to static DAI format setup by setting the the dai_fmt field of the snd_soc_dai_link rather than calling snd_soc_dai_fmt(). Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
37 lines
763 B
C
37 lines
763 B
C
/*
|
|
* ASoC simple sound card support
|
|
*
|
|
* Copyright (C) 2012 Renesas Solutions Corp.
|
|
* Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __SIMPLE_CARD_H
|
|
#define __SIMPLE_CARD_H
|
|
|
|
#include <sound/soc.h>
|
|
|
|
struct asoc_simple_dai {
|
|
const char *name;
|
|
unsigned int sysclk;
|
|
int slots;
|
|
int slot_width;
|
|
struct clk *clk;
|
|
};
|
|
|
|
struct asoc_simple_card_info {
|
|
const char *name;
|
|
const char *card;
|
|
const char *codec;
|
|
const char *platform;
|
|
|
|
unsigned int daifmt;
|
|
struct asoc_simple_dai cpu_dai;
|
|
struct asoc_simple_dai codec_dai;
|
|
};
|
|
|
|
#endif /* __SIMPLE_CARD_H */
|