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
committed by Tao Huang
parent 76b8672db3
commit f8701a8506

View File

@@ -829,7 +829,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;
}
@@ -879,7 +879,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;
}