| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Generic TXx9 ACLC machine driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Based on RBTX49xx patch from CELF patch archive. |
|---|
| 7 | 8 | * (C) Copyright TOSHIBA CORPORATION 2004-2006 |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 11 | | - * published by the Free Software Foundation. |
|---|
| 12 | 9 | * |
|---|
| 13 | 10 | * This is a very generic AC97 sound machine driver for boards which |
|---|
| 14 | 11 | * have (AC97) audio at ACLC (e.g. RBTX49XX boards). |
|---|
| .. | .. |
|---|
| 21 | 18 | #include <sound/soc.h> |
|---|
| 22 | 19 | #include "txx9aclc.h" |
|---|
| 23 | 20 | |
|---|
| 21 | +SND_SOC_DAILINK_DEFS(hifi, |
|---|
| 22 | + DAILINK_COMP_ARRAY(COMP_CPU("txx9aclc-ac97")), |
|---|
| 23 | + DAILINK_COMP_ARRAY(COMP_CODEC("ac97-codec", "ac97-hifi")), |
|---|
| 24 | + DAILINK_COMP_ARRAY(COMP_PLATFORM("txx9aclc-pcm-audio"))); |
|---|
| 25 | + |
|---|
| 24 | 26 | static struct snd_soc_dai_link txx9aclc_generic_dai = { |
|---|
| 25 | 27 | .name = "AC97", |
|---|
| 26 | 28 | .stream_name = "AC97 HiFi", |
|---|
| 27 | | - .cpu_dai_name = "txx9aclc-ac97", |
|---|
| 28 | | - .codec_dai_name = "ac97-hifi", |
|---|
| 29 | | - .platform_name = "txx9aclc-pcm-audio", |
|---|
| 30 | | - .codec_name = "ac97-codec", |
|---|
| 29 | + SND_SOC_DAILINK_REG(hifi), |
|---|
| 31 | 30 | }; |
|---|
| 32 | 31 | |
|---|
| 33 | 32 | static struct snd_soc_card txx9aclc_generic_card = { |
|---|