Skip to content

Commit 9669425

Browse files
committed
fixup! ASoC: apple: aop: Add module parameter to check mics without beamforming
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 371f5ed commit 9669425

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sound/soc/apple/aop_audio.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -665,11 +665,7 @@ impl platform::Driver for SndSocAopDriver {
665665
.get_child_by_name(c_str!("audio"))
666666
.ok_or(EIO)?;
667667
let audio = *module_parameters::mic_check_123.get() != 0;
668-
if !audio
669-
&& pdev
670-
.as_ref()
671-
.property_present(c_str!("apple,no-beamforming"))
672-
{
668+
if !audio && of.property_present(c_str!("apple,no-beamforming")) {
673669
return Err(ENODEV);
674670
}
675671
let data = SndSocAopData::new(dev, adata, svc, of)?;

0 commit comments

Comments
 (0)