14 #include <linux/module.h>
24 #define QI_LB60_SND_GPIO JZ_GPIO_PORTB(29)
25 #define QI_LB60_AMP_GPIO JZ_GPIO_PORTD(4)
45 {
"Speaker",
NULL,
"LOUT"},
46 {
"Speaker",
NULL,
"ROUT"},
49 #define QI_LB60_DAIFMT (SND_SOC_DAIFMT_I2S | \
50 SND_SOC_DAIFMT_NB_NF | \
51 SND_SOC_DAIFMT_CBM_CFM)
65 dev_err(codec->
dev,
"Failed to set cpu dai format: %d\n", ret);
74 .stream_name =
"jz4740",
75 .cpu_dai_name =
"jz4740-i2s",
76 .platform_name =
"jz4740-pcm-audio",
77 .codec_dai_name =
"jz4740-hifi",
78 .codec_name =
"jz4740-codec",
79 .init = qi_lb60_codec_init,
85 .dai_link = &qi_lb60_dai,
88 .dapm_widgets = qi_lb60_widgets,
89 .num_dapm_widgets =
ARRAY_SIZE(qi_lb60_widgets),
90 .dapm_routes = qi_lb60_routes,
94 static const struct gpio qi_lb60_gpios[] = {
112 dev_err(&pdev->
dev,
"snd_soc_register_card() failed: %d\n",
130 .name =
"qi-lb60-audio",
133 .probe = qi_lb60_probe,