Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp886844rwi; Wed, 19 Oct 2022 04:19:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM69TdCtNQ0FKAI4IfR1KJtqAvGgfQ7mkH+JzI9OCiaEtdI9gHIttEc5Y1N4lRiSfs6IjytL X-Received: by 2002:a17:907:72c3:b0:792:56d7:285a with SMTP id du3-20020a17090772c300b0079256d7285amr1542311ejc.597.1666178387806; Wed, 19 Oct 2022 04:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666178387; cv=none; d=google.com; s=arc-20160816; b=Bx+8ZvvP+0Arb9EoNTqhfeRPB5lZZhmgTCqMhdULteOnctxsIgZ/F6PH9kJ/1LatX1 99cXsrhkGAeLdBq4qRVCllymq01W5aI5hsIqp79Yq47ga0W/m2FtBSKvaiG/Lk/E1hNb TBkMzHHaO7UuZDMjVqS3HZxBX6GGqrnAsKdU0l6691zMosYrKxf65PE8csFq5jtlpouB GyQj1SJIOjU+O61qaCRAb5/TjlvwCkEVUODsnLomzEoijpU4JPx4+JRIuUbSlumLfMaG zFW40i/s0TEhclx9dhOQAy49Ed72c6vekIdYTxjoCcPLu7F4jkuxbsk6oHYJ7kkEmspx 6qCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oWrM3ZblDF16QnG7wJFkpCv003izt5dSUqGwlTU/cxg=; b=zgdWrBvG39A2Dx7xr4DlpF+ibtlgEVI+ylR0Tp88JoW3KgQQkblOLPfsbSjwxsLix/ e3lv0q4JCjSmCWVr4MCtqMeBpynPwYA0n9FPNbFrjXpO1y+LOeyFxRRT09ZPnuam5AO0 860tWlxoQ1ltHmo1EuZCjaT6p0oD0gwYqWwTh7f4RN5MNofukqE2g1tvV+5eA2BZE4Mz J4MIpEZEWgkhg0uRpxpOytIH3Jv6Nm1dBV+zkicYuZuUv3M+zWqsJP5srdqTJkw14wbj 3so/fbSWLuA9JzDCgNtB0LVtjwTaD8fKwVUAGgGOc4zoLuXbtr1Qh4zv6Z2IolF2Z2/U ZWmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oFg0kzcv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a1709065d0900b007317274bb0dsi4645234ejt.979.2022.10.19.04.19.10; Wed, 19 Oct 2022 04:19:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oFg0kzcv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233995AbiJSLH7 (ORCPT + 99 others); Wed, 19 Oct 2022 07:07:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbiJSLHX (ORCPT ); Wed, 19 Oct 2022 07:07:23 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99A98176537; Wed, 19 Oct 2022 03:36:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 43C0DCE2189; Wed, 19 Oct 2022 09:11:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23D7AC433D7; Wed, 19 Oct 2022 09:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170706; bh=zvWGShizebvrdEFUd9n0bZ6NDl0vKJL3PrigdSbA9rg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oFg0kzcvZJGzhuBumcey11z1ccn2j+aMp8PBr+vYZ153kFePDHKJ9LSTn7iQ5RP0a pEQwooKHzTBD1EHv+ZuNmxUd5C4ElkGkt5Ie7lfGXZNwHed8VDAhUdtTmXBePm2vMX cAPBAUKY9FWf2asp8ka8KIOFqyyLWL+dGrK8bWao= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, hongao , Alex Deucher , Sasha Levin Subject: [PATCH 6.0 757/862] drm/amdgpu: fix initial connector audio value Date: Wed, 19 Oct 2022 10:34:04 +0200 Message-Id: <20221019083323.366193273@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: hongao [ Upstream commit 4bb71fce58f30df3f251118291d6b0187ce531e6 ] This got lost somewhere along the way, This fixes audio not working until set_property was called. Signed-off-by: hongao Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c index b7933c2ce765..491d4846fc02 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c @@ -1674,10 +1674,12 @@ amdgpu_connector_add(struct amdgpu_device *adev, adev->mode_info.dither_property, AMDGPU_FMT_DITHER_DISABLE); - if (amdgpu_audio != 0) + if (amdgpu_audio != 0) { drm_object_attach_property(&amdgpu_connector->base.base, adev->mode_info.audio_property, AMDGPU_AUDIO_AUTO); + amdgpu_connector->audio = AMDGPU_AUDIO_AUTO; + } subpixel_order = SubPixelHorizontalRGB; connector->interlace_allowed = true; @@ -1799,6 +1801,7 @@ amdgpu_connector_add(struct amdgpu_device *adev, drm_object_attach_property(&amdgpu_connector->base.base, adev->mode_info.audio_property, AMDGPU_AUDIO_AUTO); + amdgpu_connector->audio = AMDGPU_AUDIO_AUTO; } drm_object_attach_property(&amdgpu_connector->base.base, adev->mode_info.dither_property, @@ -1852,6 +1855,7 @@ amdgpu_connector_add(struct amdgpu_device *adev, drm_object_attach_property(&amdgpu_connector->base.base, adev->mode_info.audio_property, AMDGPU_AUDIO_AUTO); + amdgpu_connector->audio = AMDGPU_AUDIO_AUTO; } drm_object_attach_property(&amdgpu_connector->base.base, adev->mode_info.dither_property, @@ -1902,6 +1906,7 @@ amdgpu_connector_add(struct amdgpu_device *adev, drm_object_attach_property(&amdgpu_connector->base.base, adev->mode_info.audio_property, AMDGPU_AUDIO_AUTO); + amdgpu_connector->audio = AMDGPU_AUDIO_AUTO; } drm_object_attach_property(&amdgpu_connector->base.base, adev->mode_info.dither_property, -- 2.35.1