| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * e800-wm9712.c -- SoC audio for e800 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2007 (c) Ian Molton <spyro@f2s.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 7 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 8 | | - * Free Software Foundation; version 2 ONLY. |
|---|
| 9 | | - * |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 68 | 64 | {"MIC2", NULL, "Mic (Internal2)"}, |
|---|
| 69 | 65 | }; |
|---|
| 70 | 66 | |
|---|
| 67 | + |
|---|
| 68 | +SND_SOC_DAILINK_DEFS(ac97, |
|---|
| 69 | + DAILINK_COMP_ARRAY(COMP_CPU("pxa2xx-ac97")), |
|---|
| 70 | + DAILINK_COMP_ARRAY(COMP_CODEC("wm9712-codec", "wm9712-hifi")), |
|---|
| 71 | + DAILINK_COMP_ARRAY(COMP_PLATFORM("pxa-pcm-audio"))); |
|---|
| 72 | + |
|---|
| 73 | +SND_SOC_DAILINK_DEFS(ac97_aux, |
|---|
| 74 | + DAILINK_COMP_ARRAY(COMP_CPU("pxa2xx-ac97-aux")), |
|---|
| 75 | + DAILINK_COMP_ARRAY(COMP_CODEC("wm9712-codec", "wm9712-aux")), |
|---|
| 76 | + DAILINK_COMP_ARRAY(COMP_PLATFORM("pxa-pcm-audio"))); |
|---|
| 77 | + |
|---|
| 71 | 78 | static struct snd_soc_dai_link e800_dai[] = { |
|---|
| 72 | 79 | { |
|---|
| 73 | 80 | .name = "AC97", |
|---|
| 74 | 81 | .stream_name = "AC97 HiFi", |
|---|
| 75 | | - .cpu_dai_name = "pxa2xx-ac97", |
|---|
| 76 | | - .codec_dai_name = "wm9712-hifi", |
|---|
| 77 | | - .platform_name = "pxa-pcm-audio", |
|---|
| 78 | | - .codec_name = "wm9712-codec", |
|---|
| 82 | + SND_SOC_DAILINK_REG(ac97), |
|---|
| 79 | 83 | }, |
|---|
| 80 | 84 | { |
|---|
| 81 | 85 | .name = "AC97 Aux", |
|---|
| 82 | 86 | .stream_name = "AC97 Aux", |
|---|
| 83 | | - .cpu_dai_name = "pxa2xx-ac97-aux", |
|---|
| 84 | | - .codec_dai_name = "wm9712-aux", |
|---|
| 85 | | - .platform_name = "pxa-pcm-audio", |
|---|
| 86 | | - .codec_name = "wm9712-codec", |
|---|
| 87 | + SND_SOC_DAILINK_REG(ac97_aux), |
|---|
| 87 | 88 | }, |
|---|
| 88 | 89 | }; |
|---|
| 89 | 90 | |
|---|