moby: sound: add Internal Earpiece node (does it work? idk, but it doesnt break anything!)
This commit is contained in:
@@ -122,11 +122,15 @@
|
|||||||
// "Speaker Amp {INL,INR,OUTL,OUTR}" actually come from simple-audio-amplifier, i think.
|
// "Speaker Amp {INL,INR,OUTL,OUTR}" actually come from simple-audio-amplifier, i think.
|
||||||
// - the speaker_amp dt node specifies "Speaker Amp" as its name-prefix,
|
// - the speaker_amp dt node specifies "Speaker Amp" as its name-prefix,
|
||||||
// and <sound/soc/codecs/simple-amplifier.c> (i.e. simple-audio-amplifier) uses the INL/OUTL naming
|
// and <sound/soc/codecs/simple-amplifier.c> (i.e. simple-audio-amplifier) uses the INL/OUTL naming
|
||||||
|
//
|
||||||
|
// there may be some interplay between the widgets/routing defined here and the alsa configs though.
|
||||||
simple-audio-card,routing =
|
simple-audio-card,routing =
|
||||||
"Headphones", "HPOL",
|
"Headphones", "HPOL",
|
||||||
"Headphones", "HPOR",
|
"Headphones", "HPOR",
|
||||||
// "Internal Earpiece", "SPOLP",
|
// SPO_LP/SPO_LN -> EAROUTP -> EARPHONE (labeled in the "Mic" section of schematic)
|
||||||
// "Internal Earpiece", "SPOLN",
|
"Internal Earpiece", "SPOLP",
|
||||||
|
"Internal Earpiece", "SPOLN",
|
||||||
|
// HPOL/HPOR are coupled to Amp:INN (i.e. mixed to mono)
|
||||||
"Speaker Amp INL", "HPOL",
|
"Speaker Amp INL", "HPOL",
|
||||||
"Speaker Amp INR", "HPOR",
|
"Speaker Amp INR", "HPOR",
|
||||||
"Internal Speaker", "Speaker Amp OUTL",
|
"Internal Speaker", "Speaker Amp OUTL",
|
||||||
@@ -135,9 +139,9 @@
|
|||||||
// user-facing controls. e.g. when user selects "Headphone", activate the "Headphone Jack" path.
|
// user-facing controls. e.g. when user selects "Headphone", activate the "Headphone Jack" path.
|
||||||
simple-audio-card,widgets =
|
simple-audio-card,widgets =
|
||||||
"Headphone", "Headphones",
|
"Headphone", "Headphones",
|
||||||
|
"Speaker", "Internal Earpiece",
|
||||||
"Speaker", "Internal Speaker";
|
"Speaker", "Internal Speaker";
|
||||||
// "Speaker", "Internal Earpiece";
|
// TODO: add microphones
|
||||||
// TODO; once i add the internal earpiece, that will be bridged to the Speaker user-facing control
|
|
||||||
|
|
||||||
simple-audio-card,hp-det-gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>;
|
simple-audio-card,hp-det-gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_LOW>;
|
||||||
|
|
||||||
@@ -153,9 +157,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: i haven't defined the 5v power rail for this amplifier.
|
|
||||||
// it's needed here because the PinePhonePro alsa-ucm files will
|
|
||||||
// fail if they can't find any control for the amplifier
|
|
||||||
speaker_amp: audio-amplifier {
|
speaker_amp: audio-amplifier {
|
||||||
compatible = "simple-audio-amplifier";
|
compatible = "simple-audio-amplifier";
|
||||||
// TODO: why does it need both pinctrl *and* enable-gpios??
|
// TODO: why does it need both pinctrl *and* enable-gpios??
|
||||||
@@ -269,4 +270,3 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// TODO: what are `io_domains`?
|
// TODO: what are `io_domains`?
|
||||||
// TODO: define headphone detector
|
|
||||||
|
Reference in New Issue
Block a user