yangxiaohua2009 / custom-kernel

21 stars 5 forks source link

Sound not working with the kernel inside sof.zip #5

Open tusharvidhani3 opened 2 years ago

tusharvidhani3 commented 2 years ago

Not able to hear any sound with kernel in sof.zip

yangxiaohua2009 commented 2 years ago

Not able to hear any sound with kernel in sof.zip

Hi please provide your alsainfo

tusharvidhani3 commented 2 years ago

Not able to hear any sound with kernel in sof.zip

Hi please provide your alsainfo

Here is my alsa-info- alsa-info.txt

yangxiaohua2009 commented 2 years ago

Not able to hear any sound with kernel in sof.zip

Hi please provide your alsainfo

Here is my alsa-info- alsa-info.txt

use these commands and you should be able to hear sound:

amixer cset name='Headphone Switch' on amixer cset name='Speaker Switch' on amixer cset name='Headphone Playback Volume' 3,3 amixer cset name='Right Headphone Mixer Right DAC Switch' on amixer cset name='Left Headphone Mixer Left DAC Switch' on amixer cset name='DAC Playback Volume' 999,999 amixer cset name='Headphone Mixer Volume' 999,999

tusharvidhani3 commented 2 years ago

amixer cset name='Headphone Switch' on amixer cset name='Speaker Switch' on amixer cset name='Headphone Playback Volume' 3,3 amixer cset name='Right Headphone Mixer Right DAC Switch' on amixer cset name='Left Headphone Mixer Left DAC Switch' on amixer cset name='DAC Playback Volume' 999,999 amixer cset name='Headphone Mixer Volume' 999,999

After executing these commands I am able to hear a whispering sound but no other sound is coming

yangxiaohua2009 commented 2 years ago

Is the jack detection working? Can you provide your dmesg?

tusharvidhani3 commented 2 years ago

Is the jack detection working? Can you provide your dmesg?

Yes, jack detection is working properly and sound output from the jack is also working but the sound is very low. Here is the output of dmesg with headphone jack plugged in dmesg.txt

tusharvidhani3 commented 2 years ago

I just now noticed the speaker is also working but the sound is very low.

yangxiaohua2009 commented 2 years ago

Hi, just use alsamixer and set all vol to 100. You should have a loader sound

yangxiaohua2009 commented 2 years ago

image

tusharvidhani3 commented 2 years ago

amixer cset name='Headphone Playback Volume' 3,3

After using this command my problem is solved but mic is still not working.

yangxiaohua2009 commented 2 years ago

amixer cset name='Headphone Playback Volume' 3,3

After using this command my problem is solved but mic is still not working.

Use these commands: amixer cset name='ADC PGA Gain Volume' 999 amixer cset name='ADC Capture Volume' 999 amixer cset name='Internal Mic Switch' on Then select input mic by amixer cset name='Differential Mux' 'lin1-rin1' or amixer cset name='Differential Mux' 'lin2-rin2' You may use alsamixer instead of input commands, they are basically the same.

luispaulobio commented 2 years ago

@yangxiaohua2009

my mic doesn't work either. Speakers and jack all ok.

Captura de tela_2022-05-15_12-25-39

yangxiaohua2009 commented 2 years ago

@luispaulobio

my mic doesn't work either. Speakers and jack all ok.

Captura de tela_2022-05-15_12-25-39

have you tried these?

Use these commands: amixer cset name='ADC PGA Gain Volume' 999 amixer cset name='ADC Capture Volume' 999 amixer cset name='Internal Mic Switch' on amixer cset name='Headset Mic Switch' on Then select input mic by amixer cset name='Differential Mux' 'lin1-rin1' or amixer cset name='Differential Mux' 'lin2-rin2' You may use alsamixer instead of input commands, they are basically the same.

Please provide your amixer contents or alsainfo if you still have mic issue

tusharvidhani3 commented 2 years ago

Earlier, the sound was coming from your both kernels and the latest stable kernel also but mic was not working. Now I am not able to hear any sound from any of the kernel. Please help me to fix this issue alsa-info.txt

yangxiaohua2009 commented 2 years ago

Please refer to the previous comment and open the amixers amixer cset name='Headphone Switch' on amixer cset name='Speaker Switch' on amixer cset name='Headphone Playback Volume' 3,3 amixer cset name='Right Headphone Mixer Right DAC Switch' on amixer cset name='Left Headphone Mixer Left DAC Switch' on amixer cset name='DAC Playback Volume' 999,999 amixer cset name='Headphone Mixer Volume' 999,999

luispaulobio commented 2 years ago

@luispaulobio my mic doesn't work either. Speakers and jack all ok. Captura de tela_2022-05-15_12-25-39

have you tried these?

Use these commands: amixer cset name='ADC PGA Gain Volume' 999 amixer cset name='ADC Capture Volume' 999 amixer cset name='Internal Mic Switch' on amixer cset name='Headset Mic Switch' on Then select input mic by amixer cset name='Differential Mux' 'lin1-rin1' or amixer cset name='Differential Mux' 'lin2-rin2' You may use alsamixer instead of input commands, they are basically the same.

Please provide your amixer contents or alsainfo if you still have mic issue

I changed it to MX Linux (kernel 5.16.0-rc1-tgl), and I got sound through the speakers and jack (headphone). However, my microphone and hdmi sound do not work.

Captura de tela_2022-05-23_08-07-46 Captura de tela_2022-05-23_08-08-32

yangxiaohua2009 commented 2 years ago

@luispaulobio Two ways to enable HDMI sound. One trick is edit default.pa run the command echo 'load-module module-alsa-sink device=hw:0,5 sink_name=HDMI sink_properties=device.description=HDMI' >> /etc/pulse/default.pa In sudo mode Then amixer sset -c 0 IEC968 on and you should see HDMI output in sound setting. The command amixer sset IEC968 on need to be inputted on boot so you may want to write it in .profile.

yangxiaohua2009 commented 2 years ago

The other is make a directory under /usr/share/alsa/ucm2 named sof-essx8336 and copy the three files into the folder /usr/share/alsa/ucm2/sof-essx8336 sof-essx8336(1).zip if alsaucm reload shows no error, you should have sound from hdmi

tusharvidhani3 commented 2 years ago

Please refer to the previous comment and open the amixers amixer cset name='Headphone Switch' on amixer cset name='Speaker Switch' on amixer cset name='Headphone Playback Volume' 3,3 amixer cset name='Right Headphone Mixer Right DAC Switch' on amixer cset name='Left Headphone Mixer Left DAC Switch' on amixer cset name='DAC Playback Volume' 999,999 amixer cset name='Headphone Mixer Volume' 999,999

Not able to solve the problem after using these commands Screenshot_20220524_153724

luispaulobio commented 2 years ago

@luispaulobio my mic doesn't work either. Speakers and jack all ok. Captura de tela_2022-05-15_12-25-39

have you tried these?

Use these commands: amixer cset name='ADC PGA Gain Volume' 999 amixer cset name='ADC Capture Volume' 999 amixer cset name='Internal Mic Switch' on amixer cset name='Headset Mic Switch' on Then select input mic by amixer cset name='Differential Mux' 'lin1-rin1' or amixer cset name='Differential Mux' 'lin2-rin2' You may use alsamixer instead of input commands, they are basically the same.

Please provide your amixer contents or alsainfo if you still have mic issue

The other is make a directory under /usr/share/alsa/ucm2 named sof-essx8336 and copy the three files into the folder /usr/share/alsa/ucm2/sof-essx8336 sof-essx8336(1).zip if alsaucm reload shows no error, you should have sound from hdmi

Hi, my HDMI has been displayed, but dont works sound. Also, mic dont works.

Captura de tela_2022-05-24_11-00-22 Captura de tela_2022-05-24_10-56-48

ameenjuz commented 2 years ago

Is it working on essx8336 comet lake laptop? I download this using git clone command but i m not able to unzip sof.zip I think sof.zip is corrupt please fix this It has under three .deb file

yangxiaohua2009 commented 2 years ago

@ameenjuz Please download all three sof.zip sof.z01 and sof.z02 file here may also help

ameenjuz commented 2 years ago

@yangxiaohua2009 thanks for guide me Now speaker is workung fine but when i plug my headphone no sound i can't hear any sound through headphone

yangxiaohua2009 commented 2 years ago

Please make sure it's not becase of low headphone volume, in sound settings and alsamixer

Your device may have two gpios. Dump dsdt refer to the doc. Find the device ESSX in dsdt and see if there are three gpios (two for sound and one for irq). If there are three, you need to update the kernel.

Please refer to issue3336 and wiki for latest kernel version. copy the dyndbg.conf to /etc/modprob.d/ so that you can read default quirk from dmesg. dmesg | grep quirk for example default quirk is 0x03. Then modify the file /etc/modprob.d/blacklist.conf, add options snd_soc_sof_es8336 quirk=0x43 This enables the second gpio.

ameenjuz commented 2 years ago

@yangxiaohua2009 thanks for replying You are correct there are three gpio in dsdt I have laptop huawei matebook d15 it is working only speaker like you are saying three gpio into dsdt you are right But i m not fimilair or expert to compile or build the kernel Please provide me latest recommended builded kernel i can't build kernel I installed fews days ago you provided me deb file Please provide just deb i want to install for working headphone too Screen Shot 2022-08-19 at 11 15 40 AM My default shows quirk 0x20 how can i add nd_soc_sof_es8336 quirk=0x43 into blacklist.conf end Screenshot from 2022-08-19 12-00-45

yangxiaohua2009 commented 2 years ago

Please refer to issue https://github.com/thesofproject/linux/issues/3336 People there have shared their kernels.

ameenjuz commented 2 years ago

@yangxiaohua2009 sorry i followed thier conversation i can't see any shared kernel
Can i download kernel from this link https://kernel.ubuntu.com/~kernel-ppa/mainline/ Is it integrated latest fixed commit into above kernel Sorry for my weak english is not my default language My language is farsi

ameenjuz commented 2 years ago

@yangxiaohua2009 What component needed for building kernel manualy What essentials packages i need to install to compiling kernel

yangxiaohua2009 commented 2 years ago

See the kernel here. Please follow the link here for if you want to compile by yourself

fbolgar commented 2 years ago

Hello, Are you sure you mean that: "Then modify the file /etc/modprob.d/blacklist.conf, add options snd_soc_sof_es8336 quirk=0x43" I feel like it should rather be added to the following file: /etc/modprobe.d/alsa-base.conf But I am no expert so I might be mistaken. Best regards