Add 2 channels playback stream
This commit is contained in:
parent
5607fed986
commit
07b67878dc
3 changed files with 9 additions and 2 deletions
7
ac108.c
7
ac108.c
|
@ -1153,6 +1153,13 @@ static const struct snd_soc_dai_ops ac108_dai_ops = {
|
||||||
|
|
||||||
static struct snd_soc_dai_driver ac108_dai0 = {
|
static struct snd_soc_dai_driver ac108_dai0 = {
|
||||||
.name = "ac108-codec0",
|
.name = "ac108-codec0",
|
||||||
|
.playback = {
|
||||||
|
.stream_name = "Playback",
|
||||||
|
.channels_min = 1,
|
||||||
|
.channels_max = AC108_CHANNELS_MAX,
|
||||||
|
.rates = AC108_RATES,
|
||||||
|
.formats = AC108_FORMATS,
|
||||||
|
},
|
||||||
.capture = {
|
.capture = {
|
||||||
.stream_name = "Capture",
|
.stream_name = "Capture",
|
||||||
.channels_min = 1,
|
.channels_min = 1,
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
simple-audio-card,bitclock-master = <&codec_dai>;
|
simple-audio-card,bitclock-master = <&codec_dai>;
|
||||||
simple-audio-card,frame-master = <&codec_dai>;
|
simple-audio-card,frame-master = <&codec_dai>;
|
||||||
simple-audio-card,channels-playback-override = <4>;
|
simple-audio-card,channels-playback-override = <2>;
|
||||||
simple-audio-card,channels-capture-override = <4>;
|
simple-audio-card,channels-capture-override = <4>;
|
||||||
|
|
||||||
cpu_dai: simple-audio-card,cpu {
|
cpu_dai: simple-audio-card,cpu {
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
simple-audio-card,bitclock-master = <&codec_dai>;
|
simple-audio-card,bitclock-master = <&codec_dai>;
|
||||||
simple-audio-card,frame-master = <&codec_dai>;
|
simple-audio-card,frame-master = <&codec_dai>;
|
||||||
simple-audio-card,channels-playback-override = <8>;
|
simple-audio-card,channels-playback-override = <2>;
|
||||||
simple-audio-card,channels-capture-override = <8>;
|
simple-audio-card,channels-capture-override = <8>;
|
||||||
|
|
||||||
cpu_dai: simple-audio-card,cpu {
|
cpu_dai: simple-audio-card,cpu {
|
||||||
|
|
Loading…
Reference in a new issue