Skip to content

Commit ecf110a

Browse files
committed
Merge pull request #1458 from DigitalDreamtimeLtd/rpi-4.4.y-iq_24db
Allow up to 24dB digital gain to be applied when using IQAudIO DAC (original DAC, not DAC+)
2 parents 9083d49 + 7f84c3a commit ecf110a

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,21 @@ Params: <None>
490490

491491
Name: iqaudio-dac
492492
Info: Configures the IQaudio DAC audio card
493-
Load: dtoverlay=iqaudio-dac
494-
Params: <None>
493+
Load: dtoverlay=iqaudio-dac,<param>
494+
Params: 24db_digital_gain Allow gain to be applied via the PCM512x codec
495+
Digital volume control. Enable with
496+
"dtoverlay=iqaudio-dac,24db_digital_gain"
497+
(The default behaviour is that the Digital
498+
volume control is limited to a maximum of
499+
0dB. ie. it can attenuate but not provide
500+
gain. For most users, this will be desired
501+
as it will prevent clipping. By appending
502+
the 24db_digital_gain parameter, the Digital
503+
volume control will allow up to 24dB of
504+
gain. If this parameter is enabled, it is the
505+
responsibility of the user to ensure that
506+
the Digital volume control is set to a value
507+
that does not result in clipping/distortion!)
495508

496509

497510
Name: iqaudio-dacplus

arch/arm/boot/dts/overlays/iqaudio-dac-overlay.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@
3030

3131
fragment@2 {
3232
target = <&sound>;
33-
__overlay__ {
33+
frag2: __overlay__ {
3434
compatible = "iqaudio,iqaudio-dac";
3535
i2s-controller = <&i2s>;
3636
status = "okay";
3737
};
3838
};
39+
40+
__overrides__ {
41+
24db_digital_gain = <&frag2>,"iqaudio,24db_digital_gain?";
42+
};
3943
};

0 commit comments

Comments
 (0)