aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/atom/sst-atom-controls.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-12-23 02:33:52 -0500
committerTakashi Iwai <tiwai@suse.de>2015-12-23 02:33:52 -0500
commitf80e39e0225c01ee68764ef7594c3a29ab5ebabb (patch)
treef5a85085741a173c93fc8f21938528b65ed95e42 /sound/soc/intel/atom/sst-atom-controls.c
parent59c8231089be96165735585694a801ae58ec6c95 (diff)
parent822ad70a2f5c420da5baa9f4354e6b7813ca6da9 (diff)
Merge tag 'asoc-v4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-next
ASoC: Updates for v4.5 This is quite a busy release on the driver front with a lot of new drivers being added but comparatively quiet on the core side with only one big change going in and that a fairly straightforward refactoring. - Conversion of the array of DAI links to a list by Mengdong Lin, supporting dynamically adding and removing DAI links. - Some more fixes for the topology code, though it is still not final and ready for enabling in production. We really need to get to the point where that can be done. - A pile of changes for Intel SkyLake drivers which hopefully deliver some useful initial functionality for systems with this chipset, though there is more work still to come. - New drivers for a number of Imagination Technologies IPs. - Lots of new features and cleanups for the Renesas drivers. - ANC support for WM5110. - New driver for Atmel class D speaker drivers. - New drivers for Cirrus CS47L24 and WM1831. - New driver for Dialog DA7128. - New drivers for Realtek RT5659 and RT56156. - New driver for Rockchip RK3036. - New driver for TI PC3168A
Diffstat (limited to 'sound/soc/intel/atom/sst-atom-controls.c')
-rw-r--r--sound/soc/intel/atom/sst-atom-controls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/intel/atom/sst-atom-controls.c b/sound/soc/intel/atom/sst-atom-controls.c
index d55388e082e1..b97e6adcf1b2 100644
--- a/sound/soc/intel/atom/sst-atom-controls.c
+++ b/sound/soc/intel/atom/sst-atom-controls.c
@@ -443,7 +443,7 @@ static int sst_gain_get(struct snd_kcontrol *kcontrol,
443 break; 443 break;
444 444
445 case SST_GAIN_MUTE: 445 case SST_GAIN_MUTE:
446 ucontrol->value.integer.value[0] = gv->mute ? 1 : 0; 446 ucontrol->value.integer.value[0] = gv->mute ? 0 : 1;
447 break; 447 break;
448 448
449 case SST_GAIN_RAMP_DURATION: 449 case SST_GAIN_RAMP_DURATION:
@@ -479,7 +479,7 @@ static int sst_gain_put(struct snd_kcontrol *kcontrol,
479 break; 479 break;
480 480
481 case SST_GAIN_MUTE: 481 case SST_GAIN_MUTE:
482 gv->mute = !!ucontrol->value.integer.value[0]; 482 gv->mute = !ucontrol->value.integer.value[0];
483 dev_dbg(cmpnt->dev, "%s: Mute %d\n", mc->pname, gv->mute); 483 dev_dbg(cmpnt->dev, "%s: Mute %d\n", mc->pname, gv->mute);
484 break; 484 break;
485 485
@@ -1109,6 +1109,7 @@ static const struct snd_soc_dapm_route intercon[] = {
1109 {"media0_in", NULL, "Compress Playback"}, 1109 {"media0_in", NULL, "Compress Playback"},
1110 {"media1_in", NULL, "Headset Playback"}, 1110 {"media1_in", NULL, "Headset Playback"},
1111 {"media2_in", NULL, "pcm0_out"}, 1111 {"media2_in", NULL, "pcm0_out"},
1112 {"media3_in", NULL, "Deepbuffer Playback"},
1112 1113
1113 {"media0_out mix 0", "media0_in Switch", "media0_in"}, 1114 {"media0_out mix 0", "media0_in Switch", "media0_in"},
1114 {"media0_out mix 0", "media1_in Switch", "media1_in"}, 1115 {"media0_out mix 0", "media1_in Switch", "media1_in"},