drm/rockchip: cdn-dp: return zero when dp is inactive

Change-Id: I741b8ac140014c7f046f59e371ed3ddb245468a2
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
This commit is contained in:
Sugar Zhang
2017-03-08 20:37:26 +08:00
parent cd3e53d593
commit 7058b957e6

View File

@@ -843,7 +843,7 @@ static int cdn_dp_audio_hw_params(struct device *dev, void *data,
mutex_lock(&dp->lock);
if (!dp->active) {
ret = -ENODEV;
ret = 0;
goto out;
}
@@ -893,7 +893,7 @@ static int cdn_dp_audio_digital_mute(struct device *dev, void *data,
mutex_lock(&dp->lock);
if (!dp->active) {
ret = -ENODEV;
ret = 0;
goto out;
}