imx-rpmsg.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) | imx-rpmsg.c (87e39e9b004a629f2a27497ce6c172bfcb50ed37) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2// Copyright 2017-2020 NXP 3 4#include <linux/module.h> 5#include <linux/of_platform.h> 6#include <linux/of_reserved_mem.h> 7#include <linux/i2c.h> 8#include <linux/of_gpio.h> --- 78 unchanged lines hidden (view full) --- 87 data->dai.stream_name = "rpmsg hifi"; 88 data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | 89 SND_SOC_DAIFMT_NB_NF | 90 SND_SOC_DAIFMT_CBC_CFC; 91 92 /* Optional codec node */ 93 ret = of_parse_phandle_with_fixed_args(np, "audio-codec", 0, 0, &args); 94 if (ret) { | 1// SPDX-License-Identifier: GPL-2.0+ 2// Copyright 2017-2020 NXP 3 4#include <linux/module.h> 5#include <linux/of_platform.h> 6#include <linux/of_reserved_mem.h> 7#include <linux/i2c.h> 8#include <linux/of_gpio.h> --- 78 unchanged lines hidden (view full) --- 87 data->dai.stream_name = "rpmsg hifi"; 88 data->dai.dai_fmt = SND_SOC_DAIFMT_I2S | 89 SND_SOC_DAIFMT_NB_NF | 90 SND_SOC_DAIFMT_CBC_CFC; 91 92 /* Optional codec node */ 93 ret = of_parse_phandle_with_fixed_args(np, "audio-codec", 0, 0, &args); 94 if (ret) { |
95 data->dai.codecs->dai_name = "snd-soc-dummy-dai"; 96 data->dai.codecs->name = "snd-soc-dummy"; | 95 *data->dai.codecs = asoc_dummy_dlc; |
97 } else { 98 struct clk *clk; 99 100 data->dai.codecs->of_node = args.np; 101 ret = snd_soc_get_dai_name(&args, &data->dai.codecs->dai_name); 102 if (ret) { 103 dev_err(&pdev->dev, "Unable to get codec_dai_name\n"); 104 goto fail; --- 78 unchanged lines hidden --- | 96 } else { 97 struct clk *clk; 98 99 data->dai.codecs->of_node = args.np; 100 ret = snd_soc_get_dai_name(&args, &data->dai.codecs->dai_name); 101 if (ret) { 102 dev_err(&pdev->dev, "Unable to get codec_dai_name\n"); 103 goto fail; --- 78 unchanged lines hidden --- |