Commit ad62b637 authored by Martin Blumenstingl's avatar Martin Blumenstingl
Browse files

odroid-c1 audio tests

parent 0c009f91
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
@@ -104,6 +104,38 @@
		#clock-cells = <0>;
	};

	sound {
		compatible = "amlogic,gx-sound-card";
		model = "M8B-ODROID-C1";

		assigned-clocks = <&clkc CLKID_MPLL0>,
				  <&clkc CLKID_MPLL1>;
		assigned-clock-rates = <294912000>,
				       <270950400>;

		dai-link-0 {
			sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
		};

		dai-link-1 {
			sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
			dai-format = "i2s";
			mclk-fs = <256>;

			codec-0 {
				sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
			};
		};

		dai-link-2 {
			sound-dai = <&aiu AIU_HDMI CTRL_OUT>;

			codec-0 {
				sound-dai = <&hdmi_tx>;
			};
		};
	};

	usb0_vbus: regulator-usb0-vbus {
		/* Richtek RT9715EGB */
		compatible = "regulator-fixed";
@@ -212,6 +244,10 @@
	};
};

&aiu {
	status = "okay";
};

&cpu0 {
	cpu-supply = <&vcck>;
};
+1 −1
Original line number Diff line number Diff line
@@ -1154,7 +1154,7 @@ config SND_SOC_RT5631
	depends on I2C

config SND_SOC_RT5640
	tristate
	tristate "Realtek ALC5640/RT5640 CODEC"
	depends on I2C

config SND_SOC_RT5645
+11 −0
Original line number Diff line number Diff line
@@ -26,12 +26,23 @@ static struct snd_soc_dai_driver cs4334_dai = {
};

static const struct snd_soc_dapm_widget cs4334_dapm_widgets[] = {
	SND_SOC_DAPM_OUTPUT("AOUTL"),
	SND_SOC_DAPM_OUTPUT("AOUTR"),
	SND_SOC_DAPM_DAC("DAC", "Playback", SND_SOC_NOPM, 0, 0),
	SND_SOC_DAPM_REGULATOR_SUPPLY("VDD", 0, 0),
};

static const struct snd_soc_dapm_route cs4334_dapm_routes[] = {
	{ "AOUTL", NULL, "DAC" },
	{ "AOUTR", NULL, "DAC" },
	{ "DAC", NULL, "VDD" },
};

static struct snd_soc_component_driver soc_component_dev_cs4334 = {
	.dapm_widgets		= cs4334_dapm_widgets,
	.num_dapm_widgets	= ARRAY_SIZE(cs4334_dapm_widgets),
	.dapm_routes		= cs4334_dapm_routes,
	.num_dapm_routes	= ARRAY_SIZE(cs4334_dapm_routes),
	.idle_bias_on		= 1,
	.use_pmdown_time	= 1,
	.endianness		= 1,