xref: /dflybsd-src/sys/dev/drm/radeon/dce3_1_afmt.c (revision c59a5c484fdf34b9afa6e283014e4fff693253cc)
1c6f73aabSFrançois Tigeot /*
2c6f73aabSFrançois Tigeot  * Copyright 2013 Advanced Micro Devices, Inc.
3c6f73aabSFrançois Tigeot  * Copyright 2014 Rafał Miłecki
4c6f73aabSFrançois Tigeot  *
5c6f73aabSFrançois Tigeot  * Permission is hereby granted, free of charge, to any person obtaining a
6c6f73aabSFrançois Tigeot  * copy of this software and associated documentation files (the "Software"),
7c6f73aabSFrançois Tigeot  * to deal in the Software without restriction, including without limitation
8c6f73aabSFrançois Tigeot  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9c6f73aabSFrançois Tigeot  * and/or sell copies of the Software, and to permit persons to whom the
10c6f73aabSFrançois Tigeot  * Software is furnished to do so, subject to the following conditions:
11c6f73aabSFrançois Tigeot  *
12c6f73aabSFrançois Tigeot  * The above copyright notice and this permission notice shall be included in
13c6f73aabSFrançois Tigeot  * all copies or substantial portions of the Software.
14c6f73aabSFrançois Tigeot  *
15c6f73aabSFrançois Tigeot  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16c6f73aabSFrançois Tigeot  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17c6f73aabSFrançois Tigeot  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18c6f73aabSFrançois Tigeot  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
19c6f73aabSFrançois Tigeot  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20c6f73aabSFrançois Tigeot  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21c6f73aabSFrançois Tigeot  * OTHER DEALINGS IN THE SOFTWARE.
22c6f73aabSFrançois Tigeot  */
23c6f73aabSFrançois Tigeot #include <linux/hdmi.h>
24c6f73aabSFrançois Tigeot #include <drm/drmP.h>
25c6f73aabSFrançois Tigeot #include "radeon.h"
26c6f73aabSFrançois Tigeot #include "radeon_asic.h"
27*c59a5c48SFrançois Tigeot #include "radeon_audio.h"
28c6f73aabSFrançois Tigeot #include "r600d.h"
29c6f73aabSFrançois Tigeot 
30*c59a5c48SFrançois Tigeot void dce3_2_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder,
31*c59a5c48SFrançois Tigeot 	u8 *sadb, int sad_count);
dce3_2_afmt_hdmi_write_speaker_allocation(struct drm_encoder * encoder,u8 * sadb,int sad_count)32*c59a5c48SFrançois Tigeot void dce3_2_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder,
33*c59a5c48SFrançois Tigeot 	u8 *sadb, int sad_count)
34c6f73aabSFrançois Tigeot {
35c6f73aabSFrançois Tigeot 	struct radeon_device *rdev = encoder->dev->dev_private;
36c6f73aabSFrançois Tigeot 	u32 tmp;
37c6f73aabSFrançois Tigeot 
38c6f73aabSFrançois Tigeot 	/* program the speaker allocation */
39*c59a5c48SFrançois Tigeot 	tmp = RREG32_ENDPOINT(0, AZ_F0_CODEC_PIN0_CONTROL_CHANNEL_SPEAKER);
40c6f73aabSFrançois Tigeot 	tmp &= ~(DP_CONNECTION | SPEAKER_ALLOCATION_MASK);
41c6f73aabSFrançois Tigeot 	/* set HDMI mode */
42c6f73aabSFrançois Tigeot 	tmp |= HDMI_CONNECTION;
43c6f73aabSFrançois Tigeot 	if (sad_count)
44c6f73aabSFrançois Tigeot 		tmp |= SPEAKER_ALLOCATION(sadb[0]);
45c6f73aabSFrançois Tigeot 	else
46c6f73aabSFrançois Tigeot 		tmp |= SPEAKER_ALLOCATION(5); /* stereo */
47*c59a5c48SFrançois Tigeot 	WREG32_ENDPOINT(0, AZ_F0_CODEC_PIN0_CONTROL_CHANNEL_SPEAKER, tmp);
48c6f73aabSFrançois Tigeot }
49c6f73aabSFrançois Tigeot 
50*c59a5c48SFrançois Tigeot void dce3_2_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder,
51*c59a5c48SFrançois Tigeot 	u8 *sadb, int sad_count);
dce3_2_afmt_dp_write_speaker_allocation(struct drm_encoder * encoder,u8 * sadb,int sad_count)52*c59a5c48SFrançois Tigeot void dce3_2_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder,
53*c59a5c48SFrançois Tigeot 	u8 *sadb, int sad_count)
54c6f73aabSFrançois Tigeot {
55c6f73aabSFrançois Tigeot 	struct radeon_device *rdev = encoder->dev->dev_private;
56*c59a5c48SFrançois Tigeot 	u32 tmp;
57c6f73aabSFrançois Tigeot 
58*c59a5c48SFrançois Tigeot 	/* program the speaker allocation */
59*c59a5c48SFrançois Tigeot 	tmp = RREG32_ENDPOINT(0, AZ_F0_CODEC_PIN0_CONTROL_CHANNEL_SPEAKER);
60*c59a5c48SFrançois Tigeot 	tmp &= ~(HDMI_CONNECTION | SPEAKER_ALLOCATION_MASK);
61*c59a5c48SFrançois Tigeot 	/* set DP mode */
62*c59a5c48SFrançois Tigeot 	tmp |= DP_CONNECTION;
63*c59a5c48SFrançois Tigeot 	if (sad_count)
64*c59a5c48SFrançois Tigeot 		tmp |= SPEAKER_ALLOCATION(sadb[0]);
65*c59a5c48SFrançois Tigeot 	else
66*c59a5c48SFrançois Tigeot 		tmp |= SPEAKER_ALLOCATION(5); /* stereo */
67*c59a5c48SFrançois Tigeot 	WREG32_ENDPOINT(0, AZ_F0_CODEC_PIN0_CONTROL_CHANNEL_SPEAKER, tmp);
68*c59a5c48SFrançois Tigeot }
69*c59a5c48SFrançois Tigeot 
70*c59a5c48SFrançois Tigeot void dce3_2_afmt_write_sad_regs(struct drm_encoder *encoder,
71*c59a5c48SFrançois Tigeot 	struct cea_sad *sads, int sad_count);
dce3_2_afmt_write_sad_regs(struct drm_encoder * encoder,struct cea_sad * sads,int sad_count)72*c59a5c48SFrançois Tigeot void dce3_2_afmt_write_sad_regs(struct drm_encoder *encoder,
73*c59a5c48SFrançois Tigeot 	struct cea_sad *sads, int sad_count)
74*c59a5c48SFrançois Tigeot {
75*c59a5c48SFrançois Tigeot 	int i;
76*c59a5c48SFrançois Tigeot 	struct radeon_device *rdev = encoder->dev->dev_private;
77c6f73aabSFrançois Tigeot 	static const u16 eld_reg_to_type[][2] = {
78c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR0, HDMI_AUDIO_CODING_TYPE_PCM },
79c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR1, HDMI_AUDIO_CODING_TYPE_AC3 },
80c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR2, HDMI_AUDIO_CODING_TYPE_MPEG1 },
81c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR3, HDMI_AUDIO_CODING_TYPE_MP3 },
82c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR4, HDMI_AUDIO_CODING_TYPE_MPEG2 },
83c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR5, HDMI_AUDIO_CODING_TYPE_AAC_LC },
84c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR6, HDMI_AUDIO_CODING_TYPE_DTS },
85c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR7, HDMI_AUDIO_CODING_TYPE_ATRAC },
86c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR9, HDMI_AUDIO_CODING_TYPE_EAC3 },
87c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR10, HDMI_AUDIO_CODING_TYPE_DTS_HD },
88c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR11, HDMI_AUDIO_CODING_TYPE_MLP },
89c6f73aabSFrançois Tigeot 		{ AZ_F0_CODEC_PIN0_CONTROL_AUDIO_DESCRIPTOR13, HDMI_AUDIO_CODING_TYPE_WMA_PRO },
90c6f73aabSFrançois Tigeot 	};
91c6f73aabSFrançois Tigeot 
92c6f73aabSFrançois Tigeot 	for (i = 0; i < ARRAY_SIZE(eld_reg_to_type); i++) {
93c6f73aabSFrançois Tigeot 		u32 value = 0;
94c6f73aabSFrançois Tigeot 		u8 stereo_freqs = 0;
95c6f73aabSFrançois Tigeot 		int max_channels = -1;
96c6f73aabSFrançois Tigeot 		int j;
97c6f73aabSFrançois Tigeot 
98c6f73aabSFrançois Tigeot 		for (j = 0; j < sad_count; j++) {
99c6f73aabSFrançois Tigeot 			struct cea_sad *sad = &sads[j];
100c6f73aabSFrançois Tigeot 
101c6f73aabSFrançois Tigeot 			if (sad->format == eld_reg_to_type[i][1]) {
102c6f73aabSFrançois Tigeot 				if (sad->channels > max_channels) {
103c6f73aabSFrançois Tigeot 					value = MAX_CHANNELS(sad->channels) |
104c6f73aabSFrançois Tigeot 						DESCRIPTOR_BYTE_2(sad->byte2) |
105c6f73aabSFrançois Tigeot 						SUPPORTED_FREQUENCIES(sad->freq);
106c6f73aabSFrançois Tigeot 					max_channels = sad->channels;
107c6f73aabSFrançois Tigeot 				}
108c6f73aabSFrançois Tigeot 
109c6f73aabSFrançois Tigeot 				if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM)
110c6f73aabSFrançois Tigeot 					stereo_freqs |= sad->freq;
111c6f73aabSFrançois Tigeot 				else
112c6f73aabSFrançois Tigeot 					break;
113c6f73aabSFrançois Tigeot 			}
114c6f73aabSFrançois Tigeot 		}
115c6f73aabSFrançois Tigeot 
116c6f73aabSFrançois Tigeot 		value |= SUPPORTED_FREQUENCIES_STEREO(stereo_freqs);
117c6f73aabSFrançois Tigeot 
118*c59a5c48SFrançois Tigeot 		WREG32_ENDPOINT(0, eld_reg_to_type[i][0], value);
119*c59a5c48SFrançois Tigeot 	}
120c6f73aabSFrançois Tigeot }
121c6f73aabSFrançois Tigeot 
122*c59a5c48SFrançois Tigeot void dce3_2_audio_set_dto(struct radeon_device *rdev,
123*c59a5c48SFrançois Tigeot 	struct radeon_crtc *crtc, unsigned int clock);
dce3_2_audio_set_dto(struct radeon_device * rdev,struct radeon_crtc * crtc,unsigned int clock)124*c59a5c48SFrançois Tigeot void dce3_2_audio_set_dto(struct radeon_device *rdev,
125*c59a5c48SFrançois Tigeot 	struct radeon_crtc *crtc, unsigned int clock)
126*c59a5c48SFrançois Tigeot {
127*c59a5c48SFrançois Tigeot 	struct radeon_encoder *radeon_encoder;
128*c59a5c48SFrançois Tigeot 	struct radeon_encoder_atom_dig *dig;
129*c59a5c48SFrançois Tigeot 	unsigned int max_ratio = clock / 24000;
130*c59a5c48SFrançois Tigeot 	u32 dto_phase;
131*c59a5c48SFrançois Tigeot 	u32 wallclock_ratio;
132*c59a5c48SFrançois Tigeot 	u32 dto_cntl;
133*c59a5c48SFrançois Tigeot 
134*c59a5c48SFrançois Tigeot 	if (!crtc)
135*c59a5c48SFrançois Tigeot 		return;
136*c59a5c48SFrançois Tigeot 
137*c59a5c48SFrançois Tigeot 	radeon_encoder = to_radeon_encoder(crtc->encoder);
138*c59a5c48SFrançois Tigeot 	dig = radeon_encoder->enc_priv;
139*c59a5c48SFrançois Tigeot 
140*c59a5c48SFrançois Tigeot 	if (!dig)
141*c59a5c48SFrançois Tigeot 		return;
142*c59a5c48SFrançois Tigeot 
143*c59a5c48SFrançois Tigeot 	if (max_ratio >= 8) {
144*c59a5c48SFrançois Tigeot 		dto_phase = 192 * 1000;
145*c59a5c48SFrançois Tigeot 		wallclock_ratio = 3;
146*c59a5c48SFrançois Tigeot 	} else if (max_ratio >= 4) {
147*c59a5c48SFrançois Tigeot 		dto_phase = 96 * 1000;
148*c59a5c48SFrançois Tigeot 		wallclock_ratio = 2;
149*c59a5c48SFrançois Tigeot 	} else if (max_ratio >= 2) {
150*c59a5c48SFrançois Tigeot 		dto_phase = 48 * 1000;
151*c59a5c48SFrançois Tigeot 		wallclock_ratio = 1;
152*c59a5c48SFrançois Tigeot 	} else {
153*c59a5c48SFrançois Tigeot 		dto_phase = 24 * 1000;
154*c59a5c48SFrançois Tigeot 		wallclock_ratio = 0;
155c6f73aabSFrançois Tigeot 	}
156c6f73aabSFrançois Tigeot 
157*c59a5c48SFrançois Tigeot 	/* Express [24MHz / target pixel clock] as an exact rational
158*c59a5c48SFrançois Tigeot 	 * number (coefficient of two integer numbers.  DCCG_AUDIO_DTOx_PHASE
159*c59a5c48SFrançois Tigeot 	 * is the numerator, DCCG_AUDIO_DTOx_MODULE is the denominator
160c6f73aabSFrançois Tigeot 	 */
161*c59a5c48SFrançois Tigeot 	if (dig->dig_encoder == 0) {
162*c59a5c48SFrançois Tigeot 		dto_cntl = RREG32(DCCG_AUDIO_DTO0_CNTL) & ~DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK;
163*c59a5c48SFrançois Tigeot 		dto_cntl |= DCCG_AUDIO_DTO_WALLCLOCK_RATIO(wallclock_ratio);
164*c59a5c48SFrançois Tigeot 		WREG32(DCCG_AUDIO_DTO0_CNTL, dto_cntl);
165*c59a5c48SFrançois Tigeot 		WREG32(DCCG_AUDIO_DTO0_PHASE, dto_phase);
166*c59a5c48SFrançois Tigeot 		WREG32(DCCG_AUDIO_DTO0_MODULE, clock);
167*c59a5c48SFrançois Tigeot 		WREG32(DCCG_AUDIO_DTO_SELECT, 0); /* select DTO0 */
168*c59a5c48SFrançois Tigeot 	} else {
169*c59a5c48SFrançois Tigeot 		dto_cntl = RREG32(DCCG_AUDIO_DTO1_CNTL) & ~DCCG_AUDIO_DTO_WALLCLOCK_RATIO_MASK;
170*c59a5c48SFrançois Tigeot 		dto_cntl |= DCCG_AUDIO_DTO_WALLCLOCK_RATIO(wallclock_ratio);
171*c59a5c48SFrançois Tigeot 		WREG32(DCCG_AUDIO_DTO1_CNTL, dto_cntl);
172*c59a5c48SFrançois Tigeot 		WREG32(DCCG_AUDIO_DTO1_PHASE, dto_phase);
173*c59a5c48SFrançois Tigeot 		WREG32(DCCG_AUDIO_DTO1_MODULE, clock);
174*c59a5c48SFrançois Tigeot 		WREG32(DCCG_AUDIO_DTO_SELECT, 1); /* select DTO1 */
175*c59a5c48SFrançois Tigeot 	}
176*c59a5c48SFrançois Tigeot }
177*c59a5c48SFrançois Tigeot 
178*c59a5c48SFrançois Tigeot void dce3_2_hdmi_update_acr(struct drm_encoder *encoder, long offset,
179*c59a5c48SFrançois Tigeot 	const struct radeon_hdmi_acr *acr);
dce3_2_hdmi_update_acr(struct drm_encoder * encoder,long offset,const struct radeon_hdmi_acr * acr)180*c59a5c48SFrançois Tigeot void dce3_2_hdmi_update_acr(struct drm_encoder *encoder, long offset,
181*c59a5c48SFrançois Tigeot 	const struct radeon_hdmi_acr *acr)
182c6f73aabSFrançois Tigeot {
183c6f73aabSFrançois Tigeot 	struct drm_device *dev = encoder->dev;
184c6f73aabSFrançois Tigeot 	struct radeon_device *rdev = dev->dev_private;
185c6f73aabSFrançois Tigeot 
186*c59a5c48SFrançois Tigeot 	WREG32(DCE3_HDMI0_ACR_PACKET_CONTROL + offset,
187*c59a5c48SFrançois Tigeot 		HDMI0_ACR_SOURCE |		/* select SW CTS value */
188*c59a5c48SFrançois Tigeot 		HDMI0_ACR_AUTO_SEND);	/* allow hw to sent ACR packets when required */
189c6f73aabSFrançois Tigeot 
190*c59a5c48SFrançois Tigeot 	WREG32_P(HDMI0_ACR_32_0 + offset,
191*c59a5c48SFrançois Tigeot 		HDMI0_ACR_CTS_32(acr->cts_32khz),
192*c59a5c48SFrançois Tigeot 		~HDMI0_ACR_CTS_32_MASK);
193*c59a5c48SFrançois Tigeot 	WREG32_P(HDMI0_ACR_32_1 + offset,
194*c59a5c48SFrançois Tigeot 		HDMI0_ACR_N_32(acr->n_32khz),
195*c59a5c48SFrançois Tigeot 		~HDMI0_ACR_N_32_MASK);
196c6f73aabSFrançois Tigeot 
197*c59a5c48SFrançois Tigeot 	WREG32_P(HDMI0_ACR_44_0 + offset,
198*c59a5c48SFrançois Tigeot 		HDMI0_ACR_CTS_44(acr->cts_44_1khz),
199*c59a5c48SFrançois Tigeot 		~HDMI0_ACR_CTS_44_MASK);
200*c59a5c48SFrançois Tigeot 	WREG32_P(HDMI0_ACR_44_1 + offset,
201*c59a5c48SFrançois Tigeot 		HDMI0_ACR_N_44(acr->n_44_1khz),
202*c59a5c48SFrançois Tigeot 		~HDMI0_ACR_N_44_MASK);
203c6f73aabSFrançois Tigeot 
204*c59a5c48SFrançois Tigeot 	WREG32_P(HDMI0_ACR_48_0 + offset,
205*c59a5c48SFrançois Tigeot 		HDMI0_ACR_CTS_48(acr->cts_48khz),
206*c59a5c48SFrançois Tigeot 		~HDMI0_ACR_CTS_48_MASK);
207*c59a5c48SFrançois Tigeot 	WREG32_P(HDMI0_ACR_48_1 + offset,
208*c59a5c48SFrançois Tigeot 		HDMI0_ACR_N_48(acr->n_48khz),
209*c59a5c48SFrançois Tigeot 		~HDMI0_ACR_N_48_MASK);
210*c59a5c48SFrançois Tigeot }
211c6f73aabSFrançois Tigeot 
212*c59a5c48SFrançois Tigeot void dce3_2_set_audio_packet(struct drm_encoder *encoder, u32 offset);
dce3_2_set_audio_packet(struct drm_encoder * encoder,u32 offset)213*c59a5c48SFrançois Tigeot void dce3_2_set_audio_packet(struct drm_encoder *encoder, u32 offset)
214*c59a5c48SFrançois Tigeot {
215*c59a5c48SFrançois Tigeot 	struct drm_device *dev = encoder->dev;
216*c59a5c48SFrançois Tigeot 	struct radeon_device *rdev = dev->dev_private;
217c6f73aabSFrançois Tigeot 
218c6f73aabSFrançois Tigeot 	WREG32(HDMI0_AUDIO_PACKET_CONTROL + offset,
219c6f73aabSFrançois Tigeot 		HDMI0_AUDIO_DELAY_EN(1) |			/* default audio delay */
220c6f73aabSFrançois Tigeot 		HDMI0_AUDIO_PACKETS_PER_LINE(3));	/* should be suffient for all audio modes and small enough for all hblanks */
221*c59a5c48SFrançois Tigeot 
222c6f73aabSFrançois Tigeot 	WREG32(AFMT_AUDIO_PACKET_CONTROL + offset,
223c6f73aabSFrançois Tigeot 		AFMT_AUDIO_SAMPLE_SEND |			/* send audio packets */
224c6f73aabSFrançois Tigeot 		AFMT_60958_CS_UPDATE);				/* allow 60958 channel status fields to be updated */
225c6f73aabSFrançois Tigeot 
226*c59a5c48SFrançois Tigeot 	WREG32_OR(HDMI0_INFOFRAME_CONTROL0 + offset,
227c6f73aabSFrançois Tigeot 		HDMI0_AUDIO_INFO_SEND |				/* enable audio info frames (frames won't be set until audio is enabled) */
228c6f73aabSFrançois Tigeot 		HDMI0_AUDIO_INFO_CONT);				/* send audio info frames every frame/field */
229c6f73aabSFrançois Tigeot 
230*c59a5c48SFrançois Tigeot 	WREG32_OR(HDMI0_INFOFRAME_CONTROL1 + offset,
231c6f73aabSFrançois Tigeot 		HDMI0_AUDIO_INFO_LINE(2));			/* anything other than 0 */
232c6f73aabSFrançois Tigeot }
233c6f73aabSFrançois Tigeot 
234*c59a5c48SFrançois Tigeot void dce3_2_set_mute(struct drm_encoder *encoder, u32 offset, bool mute);
dce3_2_set_mute(struct drm_encoder * encoder,u32 offset,bool mute)235*c59a5c48SFrançois Tigeot void dce3_2_set_mute(struct drm_encoder *encoder, u32 offset, bool mute)
236*c59a5c48SFrançois Tigeot {
237*c59a5c48SFrançois Tigeot 	struct drm_device *dev = encoder->dev;
238*c59a5c48SFrançois Tigeot 	struct radeon_device *rdev = dev->dev_private;
239c6f73aabSFrançois Tigeot 
240*c59a5c48SFrançois Tigeot 	if (mute)
241*c59a5c48SFrançois Tigeot 		WREG32_OR(HDMI0_GC + offset, HDMI0_GC_AVMUTE);
242*c59a5c48SFrançois Tigeot 	else
243*c59a5c48SFrançois Tigeot 		WREG32_AND(HDMI0_GC + offset, ~HDMI0_GC_AVMUTE);
244c6f73aabSFrançois Tigeot }
245