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

Commit 389755bf authored by Shashi Kant Maurya's avatar Shashi Kant Maurya Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: sdm660: Enable SSR for mdsp target



Target msm8905 have modem with inbuilt adsp,
add to register SSR for modem.

Signed-off-by: default avatarShashi Kant Maurya <smaury@codeaurora.org>
Change-Id: I5e46992bd762388d1aa6ebea1afca66bce979399
parent c1a5a506
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -72,6 +72,7 @@

#define VOLTAGE_CONVERTER(value, min_value, step_size)\
	((value - min_value)/step_size)
#define APR_DEST_QDSP6 1

enum {
	BOOST_SWITCH = 0,
@@ -4058,9 +4059,14 @@ int msm_anlg_codec_info_create_codec_entry(struct snd_info_entry *codec_root,

	sdm660_cdc_priv->audio_ssr_nb.notifier_call =
				sdm660_cdc_notifier_service_cb;
	if (apr_get_dest_id("ADSP") == APR_DEST_QDSP6)
		ret = audio_notifier_register("pmic_analog_cdc",
				      AUDIO_NOTIFIER_ADSP_DOMAIN,
				      &sdm660_cdc_priv->audio_ssr_nb);
	else
		ret = audio_notifier_register("pmic_analog_cdc",
				      AUDIO_NOTIFIER_MODEM_DOMAIN,
				      &sdm660_cdc_priv->audio_ssr_nb);
	if (ret < 0) {
		pr_err("%s: Audio notifier register failed ret = %d\n",
			__func__, ret);
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
 * Copyright (c) 2012-2017, 2020 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -54,6 +54,7 @@ int apr_get_dest_id(char *dest)
	else
		return APR_DEST_MODEM;
}
EXPORT_SYMBOL(apr_get_dest_id);

void subsys_notif_register(char *client_name, int domain,
			   struct notifier_block *nb)
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2016, 2020 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -42,6 +42,7 @@ int apr_get_dest_id(char *dest)
{
	return DEST_ID;
}
EXPORT_SYMBOL(apr_get_dest_id);

void subsys_notif_register(char *client_name, int domain,
			   struct notifier_block *nb)