Skip to content

Commit 8f77067

Browse files
Linux Build Service AccountGerrit - the friendly Code Review server
authored andcommitted
Merge "ASoC: msm_sdw: Avoid initial SSR notifications at bootup"
2 parents 4b3576f + 3f2c3d8 commit 8f77067

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

sound/soc/codecs/msm_sdw/msm_sdw_cdc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,19 +1661,24 @@ static int msm_sdw_notifier_service_cb(struct notifier_block *nb,
16611661
service_nb);
16621662
bool adsp_ready = false;
16631663
unsigned long timeout;
1664+
static bool initial_boot = true;
16641665

16651666
pr_debug("%s: Service opcode 0x%lx\n", __func__, opcode);
16661667

16671668
mutex_lock(&msm_sdw->codec_mutex);
16681669
switch (opcode) {
16691670
case AUDIO_NOTIFIER_SERVICE_DOWN:
1671+
if (initial_boot)
1672+
break;
16701673
msm_sdw->int_mclk1_enabled = false;
16711674
msm_sdw->dev_up = false;
16721675
for (i = 0; i < msm_sdw->nr; i++)
16731676
swrm_wcd_notify(msm_sdw->sdw_ctrl_data[i].sdw_pdev,
16741677
SWR_DEVICE_DOWN, NULL);
16751678
break;
16761679
case AUDIO_NOTIFIER_SERVICE_UP:
1680+
if (initial_boot)
1681+
initial_boot = false;
16771682
if (!q6core_is_adsp_ready()) {
16781683
dev_dbg(msm_sdw->dev, "ADSP isn't ready\n");
16791684
timeout = jiffies +

0 commit comments

Comments
 (0)