topology: ABI - Change stream formats to a bitwise flag

The toplogy user space tool will generate this bitwise flag by using
SNDRV_PCM_FORMAT_* exposed by asound.h, and the topology core will copy
this flag when generating DAI streams.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Mengdong Lin 2015-11-05 20:49:02 +08:00 committed by Jaroslav Kysela
parent f934c3de4b
commit 9977accde2
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ static int split_format(struct snd_soc_tplg_stream_caps *caps, char *str)
return -EINVAL;
}
caps->formats[i] = format;
caps->formats |= 1 << format;
s = strtok(NULL, ", ");
i++;
}