Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp62490rwi; Sun, 9 Oct 2022 18:32:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4q+TBFKwMU/SLYznZ0fcOhO3Hcy8rk4KYBKvmvu3aZzyh+z9DVmsTo1PPWk4TdeujyjBAB X-Received: by 2002:a17:90a:d914:b0:20a:a3e7:616f with SMTP id c20-20020a17090ad91400b0020aa3e7616fmr18009280pjv.108.1665365531002; Sun, 09 Oct 2022 18:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665365530; cv=none; d=google.com; s=arc-20160816; b=diQAFJ4EGipAZfKxLqVkvMjhsp40sEO5XGrfObRsdh/sqWc4XqEWn0PxAy3ZMPWP4V D+7iQyAjkswP2vXr/Y5raN5r+RdmlwrPj5+V9LaoDhcsy638rBZ91EFCp902B/JbuORB scqcBWbKLpmunTOuuoPq5bA/Sx7cRypdCmxNIr2Qv8oeFrwg/y3az1QsmjKhfYmicMbg pMxsTC7ccvhIJ18h0zhnH1bJ5RDiKqoN+KtyhKwneXRaMawnKxks6cDLA7BlX88hnaaZ ypYXbBGXDqLkNbTKGb51gocz0iNZlQS4ada97Ee9Uki41NehLuPCYdOcT+bY49vqr3Rm 9qeA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5hcUie6IpDgs1+Z+EmrIpS2ADxskD2wy08G4BqMWU/k=; b=rWlgJ9K5B58YIbf1nAhxGxwmgNwciX/GJezSkv/ijwObcYHexU+fAgQo4YLgQpMIpp 0BDtrRrMMgqoSEp8/g9dVTToucYESgqp/s6tR8S4gWt2/pAO+to2rvMDLjfC2tuR3IyM CpwtcCzVBQaMWdueSTfyw63HVdxXtFnkozGC1KqthvJZb3Vg9osz4VtL8yI12o9dWI85 Wu+kUvx20IGD1sRbY4cjjLY7i8CnkT+ti8Wc1CXdc9m3R6gxGwEJOYIGRmMmvS2E9mli lwar098zzDMNbUzgcQbFdBMW3f2Qh3UbX/32RcLpbwASHcOGFUChsqc0fNv518Uzx0Oi yyaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kup094Is; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m20-20020a637114000000b004402f48dee0si10579807pgc.629.2022.10.09.18.31.58; Sun, 09 Oct 2022 18:32:10 -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=@kernel.org header.s=k20201202 header.b=kup094Is; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233518AbiJJA3h (ORCPT + 99 others); Sun, 9 Oct 2022 20:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232977AbiJJAYA (ORCPT ); Sun, 9 Oct 2022 20:24:00 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93BA23EA54; Sun, 9 Oct 2022 16:58:06 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 31D1E60DCC; Sun, 9 Oct 2022 23:58:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F24C8C433D6; Sun, 9 Oct 2022 23:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665359885; bh=x64p9PIf/71AI9EqI80e9YSybdV7Rzg21I92kH5YS6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kup094IsubeVm3mUrxEkIrM/6d/Ifb/zX0SE8TObwsA4nuBqUQHMavDHMNQvOJlj6 lD9mrb6sflmJ5BCDfabTCxOfjKa7H9LWxFhNK3OuOtTsf+rk3sX+utnmE5z+C58zCE q3jWMBZNBhD+iUsC0nhb6RLsNcqpGq07HGqixrYjzJbG5yFKE19qYgaThVF9PdhydN B0pVWUVMuZ3yKY8aPxTPQf+ScwCOgOyE6Nw0Ehy4YqdbbwChvP0HcGyMd23lu9wHXH ejM1b9PSq8+GISLWb9VV+x/fNeid5/WOSNAdrMBTeQcB2vEKx+aXkEIQ5MQAJiGr+E ihUCz4Yb+POYA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: hongao , Alex Deucher , Sasha Levin , christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, harry.wentland@amd.com, ville.syrjala@linux.intel.com, cssk@net-c.es, tzimmermann@suse.de, maxime@cerno.tech, zhou1615@umn.edu, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.19 09/10] drm/amdgpu: fix initial connector audio value Date: Sun, 9 Oct 2022 19:57:44 -0400 Message-Id: <20221009235746.1232129-9-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009235746.1232129-1-sashal@kernel.org> References: <20221009235746.1232129-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 3e4305c3c983..86ceefb8b8fb 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c @@ -1638,10 +1638,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; @@ -1746,6 +1748,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, @@ -1794,6 +1797,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, @@ -1839,6 +1843,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