ASoC: Rename snd_soc_card to snd_soc_machine
One of the issues with the ASoC v1 API which has been addressed in the ASoC v2 work that Liam Girdwood has done is that the ALSA card provided by ASoC is distributed around the ASoC structures. For example, machine wide data such as the struct snd_card are maintained as part of the CODEC data structure, preventing the use of multiple codecs. This has been addressed by refactoring the data structures so that all the data for the ALSA card is contained in a single structure snd_soc_card which replaces the existing snd_soc_machine and snd_soc_device. Begin the process of backporting this by renaming struct snd_soc_machine to struct snd_soc_card, better reflecting its function and bringing it closer to standard ALSA terminology. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
@ -128,7 +128,7 @@ static struct snd_soc_dai_link evm_dai = {
|
||||
};
|
||||
|
||||
/* davinci-evm audio machine driver */
|
||||
static struct snd_soc_machine snd_soc_machine_evm = {
|
||||
static struct snd_soc_card snd_soc_card_evm = {
|
||||
.name = "DaVinci EVM",
|
||||
.dai_link = &evm_dai,
|
||||
.num_links = 1,
|
||||
@ -142,7 +142,7 @@ static struct aic3x_setup_data evm_aic3x_setup = {
|
||||
|
||||
/* evm audio subsystem */
|
||||
static struct snd_soc_device evm_snd_devdata = {
|
||||
.machine = &snd_soc_machine_evm,
|
||||
.card = &snd_soc_card_evm,
|
||||
.platform = &davinci_soc_platform,
|
||||
.codec_dev = &soc_codec_dev_aic3x,
|
||||
.codec_data = &evm_aic3x_setup,
|
||||
|
Reference in New Issue
Block a user