25 Feb
2014
25 Feb
'14
5:42 a.m.
On Mon, Feb 24, 2014 at 05:27:00PM +0200, Jarkko Nikula wrote:
+static const struct snd_kcontrol_new byt_rt5640_controls[] = {
- SOC_DAPM_PIN_SWITCH("Headphone"),
- SOC_DAPM_PIN_SWITCH("Headset Mic"),
- SOC_DAPM_PIN_SWITCH("Int Mic"),
- SOC_DAPM_PIN_SWITCH("Ext Spk"),
Is this really an external speaker (you're making this visible as a control name...)?
- fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
SND_SOC_DAIFMT_CBS_CFS;
- ret = snd_soc_dai_set_fmt(codec_dai, fmt);
- if (ret < 0) {
dev_err(codec_dai->dev,
"can't set codec DAI configuration %d\n", ret);
return ret;
- }
Set this in the dai_link like with the other Intel machine driver the other day.