From 07b67878dc8b37d96acf12d6159070b21f076664 Mon Sep 17 00:00:00 2001 From: "peter.yang" Date: Wed, 22 Nov 2017 09:05:22 +0000 Subject: [PATCH] Add 2 channels playback stream --- ac108.c | 7 +++++++ seeed-4mic-voicecard-overlay.dts | 2 +- seeed-8mic-voicecard-overlay.dts | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ac108.c b/ac108.c index e6d09ed..b153465 100644 --- a/ac108.c +++ b/ac108.c @@ -1153,6 +1153,13 @@ static const struct snd_soc_dai_ops ac108_dai_ops = { static struct snd_soc_dai_driver ac108_dai0 = { .name = "ac108-codec0", + .playback = { + .stream_name = "Playback", + .channels_min = 1, + .channels_max = AC108_CHANNELS_MAX, + .rates = AC108_RATES, + .formats = AC108_FORMATS, + }, .capture = { .stream_name = "Capture", .channels_min = 1, diff --git a/seeed-4mic-voicecard-overlay.dts b/seeed-4mic-voicecard-overlay.dts index 1c9ef66..32abf75 100644 --- a/seeed-4mic-voicecard-overlay.dts +++ b/seeed-4mic-voicecard-overlay.dts @@ -51,7 +51,7 @@ simple-audio-card,bitclock-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>; cpu_dai: simple-audio-card,cpu { diff --git a/seeed-8mic-voicecard-overlay.dts b/seeed-8mic-voicecard-overlay.dts index 447b93b..4d5c15c 100644 --- a/seeed-8mic-voicecard-overlay.dts +++ b/seeed-8mic-voicecard-overlay.dts @@ -58,7 +58,7 @@ simple-audio-card,bitclock-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>; cpu_dai: simple-audio-card,cpu {