aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/boards/cht_bsw_rt5672.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/intel/boards/cht_bsw_rt5672.c')
-rw-r--r--sound/soc/intel/boards/cht_bsw_rt5672.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/sound/soc/intel/boards/cht_bsw_rt5672.c b/sound/soc/intel/boards/cht_bsw_rt5672.c
index 5621ccd92992..2e5347f8f96c 100644
--- a/sound/soc/intel/boards/cht_bsw_rt5672.c
+++ b/sound/soc/intel/boards/cht_bsw_rt5672.c
@@ -46,12 +46,9 @@ static struct snd_soc_jack_pin cht_bsw_headset_pins[] = {
46 46
47static inline struct snd_soc_dai *cht_get_codec_dai(struct snd_soc_card *card) 47static inline struct snd_soc_dai *cht_get_codec_dai(struct snd_soc_card *card)
48{ 48{
49 int i; 49 struct snd_soc_pcm_runtime *rtd;
50 50
51 for (i = 0; i < card->num_rtd; i++) { 51 list_for_each_entry(rtd, &card->rtd_list, list) {
52 struct snd_soc_pcm_runtime *rtd;
53
54 rtd = card->rtd + i;
55 if (!strncmp(rtd->codec_dai->name, CHT_CODEC_DAI, 52 if (!strncmp(rtd->codec_dai->name, CHT_CODEC_DAI,
56 strlen(CHT_CODEC_DAI))) 53 strlen(CHT_CODEC_DAI)))
57 return rtd->codec_dai; 54 return rtd->codec_dai;
@@ -251,6 +248,18 @@ static struct snd_soc_dai_link cht_dailink[] = {
251 .dpcm_capture = 1, 248 .dpcm_capture = 1,
252 .ops = &cht_aif1_ops, 249 .ops = &cht_aif1_ops,
253 }, 250 },
251 [MERR_DPCM_DEEP_BUFFER] = {
252 .name = "Deep-Buffer Audio Port",
253 .stream_name = "Deep-Buffer Audio",
254 .cpu_dai_name = "deepbuffer-cpu-dai",
255 .codec_dai_name = "snd-soc-dummy-dai",
256 .codec_name = "snd-soc-dummy",
257 .platform_name = "sst-mfld-platform",
258 .nonatomic = true,
259 .dynamic = 1,
260 .dpcm_playback = 1,
261 .ops = &cht_aif1_ops,
262 },
254 [MERR_DPCM_COMPR] = { 263 [MERR_DPCM_COMPR] = {
255 .name = "Compressed Port", 264 .name = "Compressed Port",
256 .stream_name = "Compress", 265 .stream_name = "Compress",