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.
|
||||
// - 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
|
||||
//
|
||||
// there may be some interplay between the widgets/routing defined here and the alsa configs though.
|
||||
simple-audio-card,routing =
|
||||
"Headphones", "HPOL",
|
||||
"Headphones", "HPOR",
|
||||
// "Internal Earpiece", "SPOLP",
|
||||
// "Internal Earpiece", "SPOLN",
|
||||
// SPO_LP/SPO_LN -> EAROUTP -> EARPHONE (labeled in the "Mic" section of schematic)
|
||||
"Internal Earpiece", "SPOLP",
|
||||
"Internal Earpiece", "SPOLN",
|
||||
// HPOL/HPOR are coupled to Amp:INN (i.e. mixed to mono)
|
||||
"Speaker Amp INL", "HPOL",
|
||||
"Speaker Amp INR", "HPOR",
|
||||
"Internal Speaker", "Speaker Amp OUTL",
|
||||
@@ -135,9 +139,9 @@
|
||||
// user-facing controls. e.g. when user selects "Headphone", activate the "Headphone Jack" path.
|
||||
simple-audio-card,widgets =
|
||||
"Headphone", "Headphones",
|
||||
"Speaker", "Internal Earpiece",
|
||||
"Speaker", "Internal Speaker";
|
||||
// "Speaker", "Internal Earpiece";
|
||||
// TODO; once i add the internal earpiece, that will be bridged to the Speaker user-facing control
|
||||
// TODO: add microphones
|
||||
|
||||
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 {
|
||||
compatible = "simple-audio-amplifier";
|
||||
// TODO: why does it need both pinctrl *and* enable-gpios??
|
||||
@@ -269,4 +270,3 @@
|
||||
};
|
||||
|
||||
// TODO: what are `io_domains`?
|
||||
// TODO: define headphone detector
|
||||
|
Reference in New Issue
Block a user