diff options
author | Mark Brown <broonie@kernel.org> | 2018-01-18 06:55:36 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-01-18 06:55:36 -0500 |
commit | 5f7a0ea9fe0e1874ff339ab42fdde89f0ccee411 (patch) | |
tree | 00cd8c3f1288ca91b78e9dcd76493b1f5acdd07e | |
parent | b60a006333abe94c703f17d10eb3a7e69ac106c1 (diff) | |
parent | 96e1b9eef4e53a1fea2b889881ca293d153fe0d1 (diff) |
Merge remote-tracking branch 'asoc/topic/qcom' into asoc-next
-rw-r--r-- | sound/soc/qcom/apq8016_sbc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/qcom/apq8016_sbc.c b/sound/soc/qcom/apq8016_sbc.c index d49adc822a11..704428735e3c 100644 --- a/sound/soc/qcom/apq8016_sbc.c +++ b/sound/soc/qcom/apq8016_sbc.c | |||
@@ -43,7 +43,7 @@ struct apq8016_sbc_data { | |||
43 | static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd) | 43 | static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd) |
44 | { | 44 | { |
45 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; | 45 | struct snd_soc_dai *cpu_dai = rtd->cpu_dai; |
46 | struct snd_soc_codec *codec; | 46 | struct snd_soc_component *component; |
47 | struct snd_soc_dai_link *dai_link = rtd->dai_link; | 47 | struct snd_soc_dai_link *dai_link = rtd->dai_link; |
48 | struct snd_soc_card *card = rtd->card; | 48 | struct snd_soc_card *card = rtd->card; |
49 | struct apq8016_sbc_data *pdata = snd_soc_card_get_drvdata(card); | 49 | struct apq8016_sbc_data *pdata = snd_soc_card_get_drvdata(card); |
@@ -92,7 +92,7 @@ static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd) | |||
92 | 92 | ||
93 | jack = pdata->jack.jack; | 93 | jack = pdata->jack.jack; |
94 | 94 | ||
95 | snd_jack_set_key(jack, SND_JACK_BTN_0, KEY_MEDIA); | 95 | snd_jack_set_key(jack, SND_JACK_BTN_0, KEY_PLAYPAUSE); |
96 | snd_jack_set_key(jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); | 96 | snd_jack_set_key(jack, SND_JACK_BTN_1, KEY_VOICECOMMAND); |
97 | snd_jack_set_key(jack, SND_JACK_BTN_2, KEY_VOLUMEUP); | 97 | snd_jack_set_key(jack, SND_JACK_BTN_2, KEY_VOLUMEUP); |
98 | snd_jack_set_key(jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); | 98 | snd_jack_set_key(jack, SND_JACK_BTN_3, KEY_VOLUMEDOWN); |
@@ -102,15 +102,15 @@ static int apq8016_sbc_dai_init(struct snd_soc_pcm_runtime *rtd) | |||
102 | for (i = 0 ; i < dai_link->num_codecs; i++) { | 102 | for (i = 0 ; i < dai_link->num_codecs; i++) { |
103 | struct snd_soc_dai *dai = rtd->codec_dais[i]; | 103 | struct snd_soc_dai *dai = rtd->codec_dais[i]; |
104 | 104 | ||
105 | codec = dai->codec; | 105 | component = dai->component; |
106 | /* Set default mclk for internal codec */ | 106 | /* Set default mclk for internal codec */ |
107 | rval = snd_soc_codec_set_sysclk(codec, 0, 0, DEFAULT_MCLK_RATE, | 107 | rval = snd_soc_component_set_sysclk(component, 0, 0, DEFAULT_MCLK_RATE, |
108 | SND_SOC_CLOCK_IN); | 108 | SND_SOC_CLOCK_IN); |
109 | if (rval != 0 && rval != -ENOTSUPP) { | 109 | if (rval != 0 && rval != -ENOTSUPP) { |
110 | dev_warn(card->dev, "Failed to set mclk: %d\n", rval); | 110 | dev_warn(card->dev, "Failed to set mclk: %d\n", rval); |
111 | return rval; | 111 | return rval; |
112 | } | 112 | } |
113 | rval = snd_soc_codec_set_jack(codec, &pdata->jack, NULL); | 113 | rval = snd_soc_component_set_jack(component, &pdata->jack, NULL); |
114 | if (rval != 0 && rval != -ENOTSUPP) { | 114 | if (rval != 0 && rval != -ENOTSUPP) { |
115 | dev_warn(card->dev, "Failed to set jack: %d\n", rval); | 115 | dev_warn(card->dev, "Failed to set jack: %d\n", rval); |
116 | return rval; | 116 | return rval; |