Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Front headphone jack does not output audio #4

Closed
osy opened this issue Jun 27, 2019 · 11 comments
Closed

Front headphone jack does not output audio #4

osy opened this issue Jun 27, 2019 · 11 comments
Labels
hardware Hardware issues

Comments

@osy
Copy link
Owner

osy commented Jun 27, 2019

The front headphone path seems to be correct but no sound is being outputted. Appears to be a codec init issue.

Linux init calls these functions:

alc_update_coef_idx(codec, 0x4a, 1 << 15, 0); /* Combo jack auto trigger control */
snd_hda_codec_write(codec, hp_pin, 0, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE);
snd_hda_codec_write(codec, hp_pin, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT);
alc294_hp_init()

This commit may be relevant: torvalds/linux@bde1a74#diff-6cb60ab78549a5b6838f746b9e128105

@osy osy added the hardware Hardware issues label Jun 27, 2019
@osy
Copy link
Owner Author

osy commented Jul 6, 2019

Running the verbs from alc294_hp_init and then manually resetting (restarting) allows headphone output to work on the next boot. However, microphone still does not work, and sound breaks again after sleep/wakeup or headphone unplug/replug. Additionally, the audio quality is poor and requires some additional adjustment.

@22dm 22dm mentioned this issue Sep 8, 2019
6 tasks
@osy
Copy link
Owner Author

osy commented Sep 19, 2019

alsa-info.txt
hdaemu-log.txt

Attaching alsa info and hda-emu output.

@osy
Copy link
Owner Author

osy commented Oct 12, 2019

@osy osy closed this as completed Oct 12, 2019
@chrisallen
Copy link

@osy86 Should the front audio jack work for analog audio with the latest v2.4?

I see you close this saying it's fixed in AppleALC 1.4.2, but in the https://osy.gitbook.io/hac-mini-guide/ it reports Analog Audio (back port only)

Thanks in advanced :)

@osy
Copy link
Owner Author

osy commented Dec 10, 2019

It should work. Microphone still doesn't work though. I will update the guide.

@chrisallen
Copy link

Thank you @osy86 :) Should it mute the rear port when the front is connected?

@chrisallen
Copy link

Ahh I just tested, and it works in reverse. If I plug speakers into the rear and headphones into the front, audio only comes out the rear port. If I then unplug the speakers from the rear port then the front port starts working.

@osy
Copy link
Owner Author

osy commented Dec 10, 2019

Yeah I’m sure there’s a way to change that but I haven’t looked into it.

@chrisallen
Copy link

Could you reopen this GHI and edit the title to reflect the reversed behaviour? or should I raise a new GHI?

@osy
Copy link
Owner Author

osy commented Dec 10, 2019

Yeah open a new one

@chrisallen
Copy link

Thanks. I have raised a new GHI here: #144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hardware Hardware issues
Projects
None yet
Development

No branches or pull requests

2 participants