From: Akshu Agrawal <[email protected]>

DW_I2S_QUIRK_COMP_PARAM1 ensures cpu dai for playback shows
capability of playback only. This enables the driver to have 2
separate cpu dai for playback and capture each.

Signed-off-by: Akshu Agrawal <[email protected]>
Signed-off-by: Vijendar Mukunda <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
index 031c09e..1bc463a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
@@ -370,10 +370,12 @@ static int acp_hw_init(void *handle)
        switch (adev->asic_type) {
        case CHIP_STONEY:
                i2s_pdata[2].quirks = DW_I2S_QUIRK_COMP_REG_OFFSET |
+                       DW_I2S_QUIRK_COMP_PARAM1 |
                        DW_I2S_QUIRK_16BIT_IDX_OVERRIDE;
                break;
        default:
-               i2s_pdata[2].quirks = DW_I2S_QUIRK_COMP_REG_OFFSET;
+               i2s_pdata[2].quirks = DW_I2S_QUIRK_COMP_REG_OFFSET |
+                       DW_I2S_QUIRK_COMP_PARAM1;
        }
 
        i2s_pdata[2].cap = DWC_I2S_PLAY;
-- 
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to