imx-card.c (1c15ca4e4efaddb78f83eed31eeee34c522c3ae2) imx-card.c (87e39e9b004a629f2a27497ce6c172bfcb50ed37)
1// SPDX-License-Identifier: GPL-2.0+
2// Copyright 2017-2021 NXP
3
4#include <linux/module.h>
5#include <linux/init.h>
6#include <linux/slab.h>
7#include <linux/gpio/consumer.h>
8#include <linux/of_device.h>

--- 601 unchanged lines hidden (view full) ---

610 else if (!strcmp(link->codecs->dai_name, "ak4497-aif"))
611 plat_data->type = CODEC_AK4497;
612 else if (!strcmp(link->codecs->dai_name, "ak5558-aif"))
613 plat_data->type = CODEC_AK5558;
614 else if (!strcmp(link->codecs->dai_name, "ak5552-aif"))
615 plat_data->type = CODEC_AK5552;
616
617 } else {
1// SPDX-License-Identifier: GPL-2.0+
2// Copyright 2017-2021 NXP
3
4#include <linux/module.h>
5#include <linux/init.h>
6#include <linux/slab.h>
7#include <linux/gpio/consumer.h>
8#include <linux/of_device.h>

--- 601 unchanged lines hidden (view full) ---

610 else if (!strcmp(link->codecs->dai_name, "ak4497-aif"))
611 plat_data->type = CODEC_AK4497;
612 else if (!strcmp(link->codecs->dai_name, "ak5558-aif"))
613 plat_data->type = CODEC_AK5558;
614 else if (!strcmp(link->codecs->dai_name, "ak5552-aif"))
615 plat_data->type = CODEC_AK5552;
616
617 } else {
618 dlc = devm_kzalloc(dev, sizeof(*dlc), GFP_KERNEL);
619 if (!dlc) {
620 ret = -ENOMEM;
621 goto err;
622 }
623
624 link->codecs = dlc;
618 link->codecs = &asoc_dummy_dlc;
625 link->num_codecs = 1;
619 link->num_codecs = 1;
626
627 link->codecs->dai_name = "snd-soc-dummy-dai";
628 link->codecs->name = "snd-soc-dummy";
629 }
630
631 if (!strncmp(link->name, "HiFi-ASRC-FE", 12)) {
632 /* DPCM frontend */
633 link->dynamic = 1;
634 link->dpcm_merged_chan = 1;
635
636 ret = of_property_read_u32(args.np, "fsl,asrc-rate", &data->asrc_rate);

--- 233 unchanged lines hidden ---
620 }
621
622 if (!strncmp(link->name, "HiFi-ASRC-FE", 12)) {
623 /* DPCM frontend */
624 link->dynamic = 1;
625 link->dpcm_merged_chan = 1;
626
627 ret = of_property_read_u32(args.np, "fsl,asrc-rate", &data->asrc_rate);

--- 233 unchanged lines hidden ---