Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp62064rwi; Sun, 9 Oct 2022 18:31:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM51hOimO+QrKJIc6m+eAv6laHIR0QqWh1gwxGBbiilufTW5hiKlvqOpjvFGG4TVE6IcvmUJ X-Received: by 2002:a17:907:2712:b0:78d:a223:729b with SMTP id w18-20020a170907271200b0078da223729bmr5049429ejk.443.1665365500647; Sun, 09 Oct 2022 18:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665365500; cv=none; d=google.com; s=arc-20160816; b=VS+rlkvPQiRy6dpiYVXTES+NbmWI0FnEsK/gZNuPNOyvOLQeSzEV3F2yZgITCGj2Et PYURkZQMwsFqyDCQr8DJ+J0HCnP+zOv6w3e1kSLl4R1KGd4soy+GoHtimZqPXI8CPpAA JUv2bt3zIIuH5MobDILWS+1u9loOIftO/0piYiWA/85v6ED3lakn8zC5AIwiIDiAtD2d iuP6x+YJ8Hcb1HV1Sq5yV1WuCD7O8G4ac68XwxKX5JRl9eOK8BURtr2v+7v2uNLqH960 2+PPC7wq94Igw7SW7Bs/q2g7svP/J4yrZO8jwtBdLuL9RuVdgiMO2VE+KGqN6md3TyfM B6rg== 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=6H1Hvnwj2euc17t+bG5TWAgsWSzGQ/yT94DqGdOj5vI=; b=WxBg487AOB6u6F1npP+z4lhhGHpdtvhWSzpJ9Foh3FGbKxaeXcXyrT2v/xCW6Ar81Y EoXzCIRUJavJDxrhMVC9y20w9H0KN9dfViVYiwCNsywEnaF0vjguS3B68U1drBNPKc5f FbJCiHSkSzCTMsEeSKEZGIlnFhBuJ/f3oouKkGY0GyGASDkW7wjOcAvNifFJzFzkV9oh 403XJXZaT/Nz0y4suooFQ7c5GMTDWE73B6zK75jhZUjCUf4XHvuAoiWT8LBl9DS5B2h2 NdOiELP8QtVlLdLfNYBcIZG4Le/fosbY2osKhIw7ZhmCLeAqEmL8RcIXC3/QUX5BWXRj WNPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MfpYh4GL; 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 t17-20020a50ab51000000b00456f89d82b0si8738902edc.252.2022.10.09.18.31.14; Sun, 09 Oct 2022 18:31:40 -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=MfpYh4GL; 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 S233101AbiJJA2r (ORCPT + 99 others); Sun, 9 Oct 2022 20:28:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232912AbiJJAXx (ORCPT ); Sun, 9 Oct 2022 20:23:53 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB84E252A4; Sun, 9 Oct 2022 16:57:39 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6E6F0B80DEA; Sun, 9 Oct 2022 23:57:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79628C433D6; Sun, 9 Oct 2022 23:57:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665359857; bh=urIQy0Zs8PsVFMCiFU6u2HlfNH0+WH5JcKKHZdSsssc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MfpYh4GLCSj3o7oV3l44+AhuSHyQiv+n5cuYQgpTfbVtGIZcMAICwFuJl/ozM1Gtb F+3Bx7Epq2E0urdOcjFKaMdOmTvFmEHqFuv82/ZiNbvvMNcO3nVWgbS0zD48xP90i4 B7dcnOu1OAbrYfyTLpG3WIeyYFD7zZgASt0O1VcWym0BfIS4dR154DuNkDTU9BctPJ +UUxUhMI+U6ACroBUfwCxBjOS1W3U2cfZB2Z6Cd8HfTl2WcYmfzKOxoqlbIV7a8zvp xCU3iiHZCKldwJat8icRXUU/IYyMTdvyWpnij4IRnl+QIckBOE7R9zZaCkN8KQ1+Dm MCQY6XjxFt1vg== 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, tzimmermann@suse.de, cssk@net-c.es, ville.syrjala@linux.intel.com, maxime@cerno.tech, zhou1615@umn.edu, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 5.4 11/14] drm/amdgpu: fix initial connector audio value Date: Sun, 9 Oct 2022 19:57:07 -0400 Message-Id: <20221009235710.1231937-11-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221009235710.1231937-1-sashal@kernel.org> References: <20221009235710.1231937-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 0e1cacf73169..cf80da354ba1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c @@ -1646,10 +1646,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; @@ -1771,6 +1773,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, @@ -1824,6 +1827,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, @@ -1874,6 +1878,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