mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
amlbian: Set the onboard sound card as the default sound card [1/1]
PD#SWPL-142813 Problem: Set the onboard sound card as the default sound card. Solution: Set the onboard sound card as the default sound card. Verify: local Signed-off-by: yi.liu <yi.liu@amlogic.com> Change-Id: I7c5ce8c7fcad5a04c7d2faef9d964d14a323b806
This commit is contained in:
committed by
gerrit autosubmit
parent
550f606959
commit
3d238bdbaf
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "meson-s4.dtsi"
|
||||
#include "mesons4_drm.dtsi"
|
||||
#include "partition_debian_linux.dtsi"
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
@@ -586,31 +587,15 @@
|
||||
spk_mute-gpios = <&gpio GPIOH_8 GPIO_ACTIVE_LOW>;
|
||||
|
||||
aml-audio-card,dai-link@0 {
|
||||
format = "dsp_a";
|
||||
mclk-fs = <512>;
|
||||
//continuous-clock;
|
||||
//bitclock-inversion;
|
||||
//frame-inversion;
|
||||
/* master mode */
|
||||
bitclock-master = <&tdma>;
|
||||
frame-master = <&tdma>;
|
||||
/* slave mode */
|
||||
/*
|
||||
* bitclock-master = <&tdmacodec>;
|
||||
* frame-master = <&tdmacodec>;
|
||||
*/
|
||||
suffix-name = "alsaPORT-pcm";
|
||||
tdmacpu: cpu {
|
||||
sound-dai = <&tdma>;
|
||||
dai-tdm-slot-tx-mask =
|
||||
<1>;
|
||||
dai-tdm-slot-rx-mask =
|
||||
<1>;
|
||||
dai-tdm-slot-num = <2>;
|
||||
dai-tdm-slot-width = <16>;
|
||||
system-clock-frequency = <256000>;
|
||||
|
||||
mclk-fs = <128>;
|
||||
/* suffix-name, sync with android audio hal used for */
|
||||
suffix-name = "alsaPORT-spdif";
|
||||
cpu {
|
||||
sound-dai = <&spdifa>;
|
||||
system-clock-frequency = <6144000>;
|
||||
};
|
||||
tdmacodec: codec {
|
||||
codec {
|
||||
sound-dai = <&dummy_codec>;
|
||||
};
|
||||
};
|
||||
@@ -693,14 +678,31 @@
|
||||
};
|
||||
|
||||
aml-audio-card,dai-link@4 {
|
||||
mclk-fs = <128>;
|
||||
/* suffix-name, sync with android audio hal used for */
|
||||
suffix-name = "alsaPORT-spdif";
|
||||
cpu {
|
||||
sound-dai = <&spdifa>;
|
||||
system-clock-frequency = <6144000>;
|
||||
format = "dsp_a";
|
||||
mclk-fs = <512>;
|
||||
//continuous-clock;
|
||||
//bitclock-inversion;
|
||||
//frame-inversion;
|
||||
/* master mode */
|
||||
bitclock-master = <&tdma>;
|
||||
frame-master = <&tdma>;
|
||||
/* slave mode */
|
||||
/*
|
||||
* bitclock-master = <&tdmacodec>;
|
||||
* frame-master = <&tdmacodec>;
|
||||
*/
|
||||
suffix-name = "alsaPORT-pcm";
|
||||
tdmacpu: cpu {
|
||||
sound-dai = <&tdma>;
|
||||
dai-tdm-slot-tx-mask =
|
||||
<1>;
|
||||
dai-tdm-slot-rx-mask =
|
||||
<1>;
|
||||
dai-tdm-slot-num = <2>;
|
||||
dai-tdm-slot-width = <16>;
|
||||
system-clock-frequency = <256000>;
|
||||
};
|
||||
codec {
|
||||
tdmacodec: codec {
|
||||
sound-dai = <&dummy_codec>;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -549,36 +549,6 @@
|
||||
spk_mute-gpios = <&gpio GPIOD_2 GPIO_ACTIVE_LOW>;
|
||||
|
||||
aml-audio-card,dai-link@0 {
|
||||
format = "dsp_a";
|
||||
mclk-fs = <512>;
|
||||
//continuous-clock;
|
||||
//bitclock-inversion;
|
||||
//frame-inversion;
|
||||
/* master mode */
|
||||
bitclock-master = <&tdma>;
|
||||
frame-master = <&tdma>;
|
||||
/* slave mode */
|
||||
/*
|
||||
* bitclock-master = <&tdmacodec>;
|
||||
* frame-master = <&tdmacodec>;
|
||||
*/
|
||||
suffix-name = "alsaPORT-pcm";
|
||||
tdmacpu: cpu {
|
||||
sound-dai = <&tdma>;
|
||||
dai-tdm-slot-tx-mask =
|
||||
<1>;
|
||||
dai-tdm-slot-rx-mask =
|
||||
<1>;
|
||||
dai-tdm-slot-num = <2>;
|
||||
dai-tdm-slot-width = <16>;
|
||||
system-clock-frequency = <256000>;
|
||||
};
|
||||
tdmacodec: codec {
|
||||
sound-dai = <&dummy_codec>;
|
||||
};
|
||||
};
|
||||
|
||||
aml-audio-card,dai-link@1 {
|
||||
format = "i2s";// "dsp_a";
|
||||
mclk-fs = <256>;
|
||||
//continuous-clock;
|
||||
@@ -614,6 +584,37 @@
|
||||
};
|
||||
};
|
||||
|
||||
aml-audio-card,dai-link@1 {
|
||||
format = "dsp_a";
|
||||
mclk-fs = <512>;
|
||||
//continuous-clock;
|
||||
//bitclock-inversion;
|
||||
//frame-inversion;
|
||||
/* master mode */
|
||||
bitclock-master = <&tdma>;
|
||||
frame-master = <&tdma>;
|
||||
/* slave mode */
|
||||
/*
|
||||
* bitclock-master = <&tdmacodec>;
|
||||
* frame-master = <&tdmacodec>;
|
||||
*/
|
||||
suffix-name = "alsaPORT-pcm";
|
||||
tdmacpu: cpu {
|
||||
sound-dai = <&tdma>;
|
||||
dai-tdm-slot-tx-mask =
|
||||
<1>;
|
||||
dai-tdm-slot-rx-mask =
|
||||
<1>;
|
||||
dai-tdm-slot-num = <2>;
|
||||
dai-tdm-slot-width = <16>;
|
||||
system-clock-frequency = <256000>;
|
||||
};
|
||||
tdmacodec: codec {
|
||||
sound-dai = <&dummy_codec>;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
aml-audio-card,dai-link@2 {
|
||||
format = "i2s";
|
||||
mclk-fs = <256>;
|
||||
|
||||
Reference in New Issue
Block a user