16 #include <linux/module.h>
18 #include <linux/device.h>
25 #include "../codecs/mc13783.h"
29 #define FMT_SSI (SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_NB_NF | \
30 SND_SOC_DAIFMT_CBM_CFM)
57 .hw_params = imx_mc13783_hifi_hw_params,
63 .stream_name =
"Sound",
64 .codec_dai_name =
"mc13783-hifi",
65 .codec_name =
"mc13783-codec",
66 .cpu_dai_name =
"imx-ssi.0",
67 .platform_name =
"imx-pcm-audio.0",
68 .ops = &imx_mc13783_hifi_ops,
81 {
"Speaker",
NULL,
"LSP"},
82 {
"Headphone",
NULL,
"HSL"},
83 {
"Headphone",
NULL,
"HSR"},
85 {
"MC1LIN",
NULL,
"MC1 Bias"},
86 {
"MC2IN",
NULL,
"MC2 Bias"},
87 {
"MC1 Bias",
NULL,
"Mic"},
88 {
"MC2 Bias",
NULL,
"Mic"},
92 .name =
"imx_mc13783",
93 .dai_link = imx_mc13783_dai_mc13783,
94 .num_links =
ARRAY_SIZE(imx_mc13783_dai_mc13783),
95 .dapm_widgets = imx_mc13783_widget,
96 .num_dapm_widgets =
ARRAY_SIZE(imx_mc13783_widget),
97 .dapm_routes = imx_mc13783_routes,
98 .num_dapm_routes =
ARRAY_SIZE(imx_mc13783_routes),
105 imx_mc13783.
dev = &pdev->
dev;
109 dev_err(&pdev->
dev,
"snd_soc_register_card failed (%d)\n",
114 if (machine_is_mx31_3ds()) {
131 }
else if (machine_is_mx27_3ds()) {
160 .name =
"imx_mc13783",
163 .probe = imx_mc13783_probe,