Lines Matching refs:pin
67 offset = rdev->audio.pin[i].offset; in dce6_afmt_get_connected_pins()
71 rdev->audio.pin[i].connected = false; in dce6_afmt_get_connected_pins()
73 rdev->audio.pin[i].connected = true; in dce6_afmt_get_connected_pins()
82 struct r600_audio_pin *pin = NULL; in dce6_audio_get_pin() local
88 if (rdev->audio.pin[i].connected) { in dce6_audio_get_pin()
89 pin = &rdev->audio.pin[i]; in dce6_audio_get_pin()
96 if (dig->pin == pin) in dce6_audio_get_pin()
102 return pin; in dce6_audio_get_pin()
105 if (!pin) in dce6_audio_get_pin()
107 return pin; in dce6_audio_get_pin()
116 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_select_pin()
120 AFMT_AUDIO_SRC_SELECT(dig->pin->id)); in dce6_afmt_select_pin()
132 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_latency_fields()
148 WREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_write_latency_fields()
160 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_hdmi_write_speaker_allocation()
164 tmp = RREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_hdmi_write_speaker_allocation()
173 WREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_hdmi_write_speaker_allocation()
185 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_dp_write_speaker_allocation()
189 tmp = RREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_dp_write_speaker_allocation()
198 WREG32_ENDPOINT(dig->pin->offset, in dce6_afmt_dp_write_speaker_allocation()
224 if (!dig || !dig->afmt || !dig->pin) in dce6_afmt_write_sad_regs()
253 WREG32_ENDPOINT(dig->pin->offset, eld_reg_to_type[i][0], value); in dce6_afmt_write_sad_regs()
258 struct r600_audio_pin *pin, in dce6_audio_enable() argument
261 if (!pin) in dce6_audio_enable()
264 WREG32_ENDPOINT(pin->offset, AZ_F0_CODEC_PIN_CONTROL_HOT_PLUG_CONTROL, in dce6_audio_enable()