| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * simone.c -- ASoC audio for Simplemachines Sim.One board |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2010 Mika Westerberg |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Based on snappercl15 machine driver by Ryan Mallon. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/init.h> |
|---|
| 14 | 11 | #include <linux/module.h> |
|---|
| 15 | 12 | #include <linux/platform_device.h> |
|---|
| 13 | +#include <linux/soc/cirrus/ep93xx.h> |
|---|
| 16 | 14 | |
|---|
| 17 | 15 | #include <sound/core.h> |
|---|
| 18 | 16 | #include <sound/pcm.h> |
|---|
| 19 | 17 | #include <sound/soc.h> |
|---|
| 20 | 18 | |
|---|
| 21 | 19 | #include <asm/mach-types.h> |
|---|
| 22 | | -#include <mach/hardware.h> |
|---|
| 20 | + |
|---|
| 21 | +SND_SOC_DAILINK_DEFS(hifi, |
|---|
| 22 | + DAILINK_COMP_ARRAY(COMP_CPU("ep93xx-ac97")), |
|---|
| 23 | + DAILINK_COMP_ARRAY(COMP_CODEC("ac97-codec", "ac97-hifi")), |
|---|
| 24 | + DAILINK_COMP_ARRAY(COMP_PLATFORM("ep93xx-ac97"))); |
|---|
| 23 | 25 | |
|---|
| 24 | 26 | static struct snd_soc_dai_link simone_dai = { |
|---|
| 25 | 27 | .name = "AC97", |
|---|
| 26 | 28 | .stream_name = "AC97 HiFi", |
|---|
| 27 | | - .cpu_dai_name = "ep93xx-ac97", |
|---|
| 28 | | - .codec_dai_name = "ac97-hifi", |
|---|
| 29 | | - .codec_name = "ac97-codec", |
|---|
| 30 | | - .platform_name = "ep93xx-ac97", |
|---|
| 29 | + SND_SOC_DAILINK_REG(hifi), |
|---|
| 31 | 30 | }; |
|---|
| 32 | 31 | |
|---|
| 33 | 32 | static struct snd_soc_card snd_soc_simone = { |
|---|