mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user