Merge remote-tracking branches 'asoc/topic/cs42l73', 'asoc/topic/dai' and 'asoc/topic/davinci' into asoc-next
This commit is contained in:
@@ -412,21 +412,7 @@ static struct tty_ldisc_ops cx81801_ops = {
|
||||
* over the modem port.
|
||||
*/
|
||||
|
||||
static int ams_delta_hw_params(struct snd_pcm_substream *substream,
|
||||
struct snd_pcm_hw_params *params)
|
||||
{
|
||||
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
||||
|
||||
/* Set cpu DAI configuration */
|
||||
return snd_soc_dai_set_fmt(rtd->cpu_dai,
|
||||
SND_SOC_DAIFMT_DSP_A |
|
||||
SND_SOC_DAIFMT_NB_NF |
|
||||
SND_SOC_DAIFMT_CBM_CFM);
|
||||
}
|
||||
|
||||
static struct snd_soc_ops ams_delta_ops = {
|
||||
.hw_params = ams_delta_hw_params,
|
||||
};
|
||||
static struct snd_soc_ops ams_delta_ops;
|
||||
|
||||
|
||||
/* Digital mute implemented using modem/CPU multiplexer.
|
||||
@@ -546,6 +532,8 @@ static struct snd_soc_dai_link ams_delta_dai_link = {
|
||||
.platform_name = "omap-mcbsp.1",
|
||||
.codec_name = "cx20442-codec",
|
||||
.ops = &ams_delta_ops,
|
||||
.dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_NB_NF |
|
||||
SND_SOC_DAIFMT_CBM_CFM,
|
||||
};
|
||||
|
||||
/* Audio card driver */
|
||||
|
@@ -53,11 +53,7 @@ static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
|
||||
struct snd_pcm_hw_params *params)
|
||||
{
|
||||
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
||||
struct snd_soc_dai *codec_dai = rtd->codec_dai;
|
||||
struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
|
||||
struct snd_soc_card *card = rtd->card;
|
||||
unsigned int fmt;
|
||||
int ret;
|
||||
|
||||
switch (params_channels(params)) {
|
||||
case 2: /* Stereo I2S mode */
|
||||
@@ -74,21 +70,7 @@ static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Set codec DAI configuration */
|
||||
ret = snd_soc_dai_set_fmt(codec_dai, fmt);
|
||||
if (ret < 0) {
|
||||
dev_err(card->dev, "can't set codec DAI configuration\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Set cpu DAI configuration */
|
||||
ret = snd_soc_dai_set_fmt(cpu_dai, fmt);
|
||||
if (ret < 0) {
|
||||
dev_err(card->dev, "can't set cpu DAI configuration\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return snd_soc_runtime_set_dai_fmt(rtd, fmt);
|
||||
}
|
||||
|
||||
static struct snd_soc_ops omap_twl4030_ops = {
|
||||
|
Reference in New Issue
Block a user