Commit 89a2870f authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
parent 225c53a8
...@@ -176,10 +176,10 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream, ...@@ -176,10 +176,10 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params) struct snd_pcm_hw_params *params)
{ {
struct snd_soc_pcm_runtime *runtime = substream->private_data; struct snd_soc_pcm_runtime *runtime = substream->private_data;
struct snd_soc_dai *codec_dai;
int ret, j; int ret, j;
for (j = 0; j < runtime->num_codecs; j++) { for_each_rtd_codec_dai(runtime, j, codec_dai) {
struct snd_soc_dai *codec_dai = runtime->codec_dais[j];
if (!strcmp(codec_dai->component->name, MAX98927_DEV0_NAME)) { if (!strcmp(codec_dai->component->name, MAX98927_DEV0_NAME)) {
ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x30, 3, 8, 16); ret = snd_soc_dai_set_tdm_slot(codec_dai, 0x30, 3, 8, 16);
...@@ -221,10 +221,10 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream, ...@@ -221,10 +221,10 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream,
static int kabylake_ssp0_trigger(struct snd_pcm_substream *substream, int cmd) static int kabylake_ssp0_trigger(struct snd_pcm_substream *substream, int cmd)
{ {
struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_dai *codec_dai;
int j, ret; int j, ret;
for (j = 0; j < rtd->num_codecs; j++) { for_each_rtd_codec_dai(rtd, j, codec_dai) {
struct snd_soc_dai *codec_dai = rtd->codec_dais[j];
const char *name = codec_dai->component->name; const char *name = codec_dai->component->name;
struct snd_soc_component *component = codec_dai->component; struct snd_soc_component *component = codec_dai->component;
struct snd_soc_dapm_context *dapm = struct snd_soc_dapm_context *dapm =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment