Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8a951ae authored by Deven Patel's avatar Deven Patel Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: codecs: use correct subsystem status check



Audio subsystem could reside in different DSP processor based on
architecture design. Use subsystem status check instead of explicitly
check for modem status.

CRs-fixed: 988942
Change-Id: I7c28a11f67517e5072e67c9bc2b99900a79879c1
Signed-off-by: default avatarDeven Patel <cdevenp@codeaurora.org>
parent d3068532
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -13296,8 +13296,8 @@ static int tasha_probe(struct platform_device *pdev)
	struct wcd9xxx_power_region *cdc_pwr;

	if (wcd9xxx_get_intf_type() == WCD9XXX_INTERFACE_TYPE_I2C) {
		if (apr_get_modem_state() == APR_SUBSYS_DOWN) {
			dev_err(&pdev->dev, "%s: modem down\n", __func__);
		if (apr_get_subsys_state() == APR_SUBSYS_DOWN) {
			dev_err(&pdev->dev, "%s: dsp down\n", __func__);
			return -EPROBE_DEFER;
		}
	}