-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ASoC: sgtl5000: Improve VAG power and mute control
[ Upstream commit b1f373a ] VAG power control is improved to fit the manual [1]. This patch fixes as minimum one bug: if customer muxes Headphone to Line-In right after boot, the VAG power remains off that leads to poor sound quality from line-in. I.e. after boot: - Connect sound source to Line-In jack; - Connect headphone to HP jack; - Run following commands: $ amixer set 'Headphone' 80% $ amixer set 'Headphone Mux' LINE_IN Change VAG power on/off control according to the following algorithm: - turn VAG power ON on the 1st incoming event. - keep it ON if there is any active VAG consumer (ADC/DAC/HP/Line-In). - turn VAG power OFF when there is the latest consumer's pre-down event come. - always delay after VAG power OFF to avoid pop. - delay after VAG power ON if the initiative consumer is Line-In, this prevents pop during line-in muxing. According to the data sheet [1], to avoid any pops/clicks, the outputs should be muted during input/output routing changes. [1] https://www.nxp.com/docs/en/data-sheet/SGTL5000.pdf Cc: stable@vger.kernel.org Fixes: 9b34e6c ("ASoC: Add Freescale SGTL5000 codec support") Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://lore.kernel.org/r/20190719100524.23300-3-oleksandr.suvorov@toradex.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
- v4.14.336
- v4.14.335
- v4.14.334
- v4.14.333
- v4.14.332
- v4.14.331
- v4.14.330
- v4.14.329
- v4.14.328
- v4.14.327
- v4.14.326
- v4.14.325
- v4.14.324
- v4.14.323
- v4.14.322
- v4.14.321
- v4.14.320
- v4.14.319
- v4.14.318
- v4.14.317
- v4.14.316
- v4.14.315
- v4.14.314
- v4.14.313
- v4.14.312
- v4.14.311
- v4.14.310
- v4.14.309
- v4.14.308
- v4.14.307
- v4.14.306
- v4.14.305
- v4.14.304
- v4.14.303
- v4.14.302
- v4.14.301
- v4.14.300
- v4.14.299
- v4.14.298
- v4.14.297
- v4.14.296
- v4.14.295
- v4.14.294
- v4.14.293
- v4.14.292
- v4.14.291
- v4.14.290
- v4.14.289
- v4.14.288
- v4.14.287
- v4.14.286
- v4.14.285
- v4.14.284
- v4.14.283
- v4.14.282
- v4.14.281
- v4.14.280
- v4.14.279
- v4.14.278
- v4.14.277
- v4.14.276
- v4.14.275
- v4.14.274
- v4.14.273
- v4.14.272
- v4.14.271
- v4.14.270
- v4.14.269
- v4.14.268
- v4.14.267
- v4.14.266
- v4.14.265
- v4.14.264
- v4.14.263
- v4.14.262
- v4.14.261
- v4.14.260
- v4.14.259
- v4.14.258
- v4.14.257
- v4.14.256
- v4.14.255
- v4.14.254
- v4.14.253
- v4.14.252
- v4.14.251
- v4.14.250
- v4.14.249
- v4.14.248
- v4.14.247
- v4.14.246
- v4.14.245
- v4.14.244
- v4.14.243
- v4.14.242
- v4.14.241
- v4.14.240
- v4.14.239
- v4.14.238
- v4.14.237
- v4.14.236
- v4.14.235
- v4.14.234
- v4.14.233
- v4.14.232
- v4.14.231
- v4.14.230
- v4.14.229
- v4.14.228
- v4.14.227
- v4.14.226
- v4.14.225
- v4.14.224
- v4.14.223
- v4.14.222
- v4.14.221
- v4.14.220
- v4.14.219
- v4.14.218
- v4.14.217
- v4.14.216
- v4.14.215
- v4.14.214
- v4.14.213
- v4.14.212
- v4.14.211
- v4.14.210
- v4.14.209
- v4.14.208
- v4.14.207
- v4.14.206
- v4.14.205
- v4.14.204
- v4.14.203
- v4.14.202
- v4.14.201
- v4.14.200
- v4.14.199
- v4.14.198
- v4.14.197
- v4.14.196
- v4.14.195
- v4.14.194
- v4.14.193
- v4.14.192
- v4.14.191
- v4.14.190
- v4.14.189
- v4.14.188
- v4.14.187
- v4.14.186
- v4.14.185
- v4.14.184
- v4.14.183
- v4.14.182
- v4.14.181
- v4.14.180
- v4.14.179
- v4.14.178
- v4.14.177
- v4.14.176
- v4.14.175
- v4.14.174
- v4.14.173
- v4.14.172
- v4.14.171
- v4.14.170
- v4.14.169
- v4.14.168
- v4.14.167
- v4.14.166
- v4.14.165
- v4.14.164
- v4.14.163
- v4.14.162
- v4.14.161
- v4.14.160
- v4.14.159
- v4.14.158
- v4.14.157
- v4.14.156
- v4.14.155
- v4.14.154
- v4.14.153
- v4.14.152
- v4.14.151
- v4.14.150
- v4.14.149
Oleksandr Suvorov
authored and
Greg Kroah-Hartman
committed
Oct 11, 2019
1 parent
01ec813
commit a61e580
Showing
1 changed file
with
202 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters