12 #include <linux/module.h>
17 #include <linux/i2c.h>
27 #define S6105_CAM_CODEC_CLOCK 12288000
59 .hw_params = s6105_hw_params,
72 {
"Audio Out Differential",
NULL,
"HPLOUT"},
73 {
"Audio Out Differential",
NULL,
"HPLCOM"},
74 {
"Audio Out Stereo",
NULL,
"HPLOUT"},
75 {
"Audio Out Stereo",
NULL,
"HPROUT"},
78 {
"LINE1L",
NULL,
"Audio In"},
79 {
"LINE1R",
NULL,
"Audio In"},
82 static int output_type_info(
struct snd_kcontrol *kcontrol,
97 static int output_type_get(
struct snd_kcontrol *kcontrol,
104 static int output_type_put(
struct snd_kcontrol *kcontrol,
109 unsigned int val = (ucontrol->
value.enumerated.item[0] != 0);
110 char *differential =
"Audio Out Differential";
111 char *stereo =
"Audio Out Stereo";
126 .name =
"Master Output Mux",
129 .info = output_type_info,
130 .get = output_type_get,
131 .put = output_type_put,
177 .name =
"TLV320AIC31",
178 .stream_name =
"AIC31",
179 .cpu_dai_name =
"s6000-i2s",
180 .codec_dai_name =
"tlv320aic3x-hifi",
181 .platform_name =
"s6000-pcm-audio",
182 .codec_name =
"tlv320aic3x-codec.0-001a",
183 .init = s6105_aic3x_init,
189 .name =
"Stretch IP Camera",
191 .dai_link = &s6105_dai,
213 static int __init s6105_init(
void)
220 if (!s6105_snd_device)
223 platform_set_drvdata(s6105_snd_device, &snd_soc_card_s6105);
225 sizeof(s6105_snd_data));
234 static void __exit s6105_exit(
void)