Skip to content

Commit bc67106

Browse files
ES9023: hifiberry-dacpluslight-es9023-audio overlay
Add hifiberry-dacpluslight-es9023-audio overlay for HiFiBerry DAC+ Light. ## ## HiFiBerry DAC+ Light ## ## card_name = "snd_rpi_hifiberry_dac" ## dai_name = "HifiBerry DAC" ## dai_stream_name = "HifiBerry DAC HiFi" ## # dtoverlay=hifiberry-dacpluslight-es9023-audio # dtoverlay=hifiberry-dacpluslight-es9023-audio,bclk_ratio_int_div # dtoverlay=hifiberry-dacpluslight-es9023-audio,bclk_ratio_int_div,384k Signed-off-by: DigitalDreamtime <[email protected]>
1 parent 4feac1e commit bc67106

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dtbo-$(RPI_DT_OVERLAYS) += gpio-poweroff.dtbo
3232
dtbo-$(RPI_DT_OVERLAYS) += hifiberry-amp.dtbo
3333
dtbo-$(RPI_DT_OVERLAYS) += hifiberry-dac.dtbo
3434
dtbo-$(RPI_DT_OVERLAYS) += hifiberry-dacplus.dtbo
35+
dtbo-$(RPI_DT_OVERLAYS) += hifiberry-dacpluslight-es9023-audio.dtbo
3536
dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi.dtbo
3637
dtbo-$(RPI_DT_OVERLAYS) += hifiberry-digi-pro.dtbo
3738
dtbo-$(RPI_DT_OVERLAYS) += hy28a.dtbo

arch/arm/boot/dts/overlays/README

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,26 @@ Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
414414
master for bit clock and frame clock.
415415

416416

417+
Name: hifiberry-dacpluslight-es9023-audio
418+
Info: Configures the HiFiBerry DAC+ Light audio card
419+
Load: dtoverlay=hifiberry-dacpluslight-es9023-audio,<param>
420+
Params: 384k Instructs the es9023 codec driver to support
421+
352k8 and 384k sample rates.
422+
bclk_ratio_int_div Use bclk_ratio=50 for 16/24bps and
423+
bclk_ratio=100 for 32bps media when sample
424+
rate is a multiple of 8kHz and less than
425+
192kHz. Which causes the selection of the 19M2
426+
OSC as the parent for the PCM clock with an
427+
integer divider, rather than PLLD with
428+
fractional divider and MASH noise shaping.
429+
card_name Override the default, "snd_rpi_hifiberry_dac",
430+
card name.
431+
dai_name Override the default, "HifiBerry DAC",
432+
dai name.
433+
dai_stream_name Override the default, "HifiBerry DAC HiFi",
434+
dai stream name.
435+
436+
417437
Name: hifiberry-digi
418438
Info: Configures the HifiBerry Digi and Digi+ audio card
419439
Load: dtoverlay=hifiberry-digi
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Definitions for HiFiBerry DAC+ Light using ESS Sabre ES9023 DAC
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "brcm,bcm2708";
7+
8+
fragment@0 {
9+
target = <&i2s>;
10+
__overlay__ {
11+
status = "okay";
12+
};
13+
};
14+
15+
fragment@1 {
16+
target-path = "/";
17+
__overlay__ {
18+
es9023_codec: es9023-codec {
19+
#sound-dai-cells = <0>;
20+
compatible = "ess,es9023";
21+
status = "okay";
22+
};
23+
};
24+
};
25+
26+
fragment@2 {
27+
target = <&sound>;
28+
es9023_dac: __overlay__ {
29+
compatible = "hifiberry,es9023-dacpluslight";
30+
/*
31+
* These are the default names that will be
32+
* applied by the es9023-dac machine driver
33+
* based on the compatible parameter.
34+
*
35+
* es9023-dac,card-name = "snd_rpi_hifiberry_dac";
36+
* es9023-dac,dai-name = "HifiBerry DAC";
37+
* es9023-dac,dai-stream-name = "HifiBerry DAC HiFi";
38+
*/
39+
status = "okay";
40+
es9023-dac,cpu {
41+
sound-dai = <&i2s>;
42+
};
43+
es9023-dac,codec {
44+
sound-dai = <&es9023_codec>;
45+
};
46+
};
47+
};
48+
49+
__overrides__ {
50+
384k = <&es9023_codec>,"es9023,384k?";
51+
bclk_ratio_int_div =
52+
<&es9023_dac>,"es9023-dac,bclk-ratio-int-div?";
53+
card_name = <&es9023_dac>,"es9023-dac,card-name";
54+
dai_name = <&es9023_dac>,"es9023-dac,dai-name";
55+
dai_stream_name = <&es9023_dac>,"es9023-dac,dai-stream-name";
56+
};
57+
};

0 commit comments

Comments
 (0)