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

No Sound Through Speakers on C201P #55

Open
dracnortw opened this issue Aug 28, 2021 · 12 comments
Open

No Sound Through Speakers on C201P #55

dracnortw opened this issue Aug 28, 2021 · 12 comments

Comments

@dracnortw
Copy link

I'm unable to hear anything through the speakers using C201P (everything else is working, including headphones). PulseAudio/Volume Control does show speakers in the Output Devices, and there is output/volume bars coming from applications. I tried bringing over some ucm files from another Chromebook I have (same model), but still no luck.

@petm5
Copy link

petm5 commented Sep 3, 2021

Maybe check the speaker connector inside the chromebook. After I disassembled mine sound wasn't working because I forgot to plug the connector back in.

@petm5
Copy link

petm5 commented Sep 3, 2021

I found a fix for this issue since sound wasn't working for me either when I installed Cadmium. Basically ALSA can't initialize the sound card properly due to a naming issue with the UCM files. Here is a fix:

cd /usr/share/alsa/ucm2
cp Rockchip/max98090/ VEYRON-I2S/ -r
mv VEYRON-I2S/max98090.conf VEYRON-I2S/VEYRON-I2S.conf
Then reboot or run alsaucm -c VEYRON-I2S set _verb HiFi

Sound through the speakers should now be working.

@WizzardSK
Copy link
Contributor

How did you know about that folder name VEYRON-I2S? I have similar problem with Acer Spin 513 (lazor), but it seems I do not have the correct ucm file at all. I copied all the files from recovery image, but they look like legacy ucm files.
I copied it to /usr/share/alsa/ucm2/SC7180/sc7180-rt5682-max98357a-1mic.conf and HiFi.conf, addes "Syntax 2" or "Syntax 3" line to sc7180-rt5682-max98357a-1mic.conf, but after restart I had no audio device available at all.

@dracnortw
Copy link
Author

I found a fix for this issue since sound wasn't working for me either when I installed Cadmium. Basically ALSA can't initialize the sound card properly due to a naming issue with the UCM files. Here is a fix:

cd /usr/share/alsa/ucm2
cp Rockchip/max98090/ VEYRON-I2S/ -r
mv VEYRON-I2S/max98090.conf VEYRON-I2S/VEYRON-I2S.conf
Then reboot or run alsaucm -c VEYRON-I2S set _verb HiFi

Sound through the speakers should now be working.

That did the trick. Thanks peter-marshall5!

@jthiem
Copy link

jthiem commented Sep 7, 2021

Had the same problem on the C100P (Minnie). Fix also worked for me, thanks!

@LoganMD
Copy link
Contributor

LoganMD commented Sep 7, 2021

I found a fix for this issue since sound wasn't working for me either when I installed Cadmium. Basically ALSA can't initialize the sound card properly due to a naming issue with the UCM files. Here is a fix:

cd /usr/share/alsa/ucm2
cp Rockchip/max98090/ VEYRON-I2S/ -r
mv VEYRON-I2S/max98090.conf VEYRON-I2S/VEYRON-I2S.conf
Then reboot or run alsaucm -c VEYRON-I2S set _verb HiFi

Sound through the speakers should now be working.

would you be able to submit a pull request with the fix applied to cadmium?

@petm5
Copy link

petm5 commented Sep 7, 2021

OK, I created a pull request with the required UCM files in place. It builds successfully and the UCM files are placed properly into /usr/share/alsa/ucm2.

@cvmiller
Copy link

I am running Cadmium on a C201PA, and I have tried the steps above, with no luck. I did reboot, still no sound. I tried the command alsaucm -c VEYRON-I2S set _verb HiFi and get the error:

$ alsaucm -c VEYRON-I2S set _verb HiFi
ALSA lib main.c:1412:(snd_use_case_mgr_open) error: failed to import VEYRON-I2S use case configuration -2
alsaucm: error failed to open sound card VEYRON-I2S: No such file or directory

Any suggestions? Audio does play out the headphone jack.

@petm5
Copy link

petm5 commented Mar 11, 2022

I found a fix:

For some reason now the correct name for the folder is "VEYRONI2S" instead of "VEYRON-I2S". To find out I typed cat /sys/class/sound/card0/id
To get sound working I just copied the UCM files from Chrome OS but renamed them accordingly. If you have Chrome OS installed on the internal storage, these commands might work to enable sound:

mount /dev/mmcblk0p5 /mnt
cp /mnt/usr/share/alsa/ucm/VEYRON-I2S /usr/share/alsa/ucm2/VEYRONI2S
mv /usr/share/alsa/ucm2/VEYRONI2S/VEYRON-I2S.conf /usr/share/alsa/ucm2/VEYRONI2S/VEYRONI2S.conf
alsaucm -c VEYRONI2S set _verb HiFi set _enadev Speaker

@Wooty-B
Copy link

Wooty-B commented Apr 23, 2022

I am also having issues with sound on my C201P and have hit a roadblock.

Commands I used to set ALSA device:
cd /usr/share/alsa/ucm2
cp Rockchip/max98090/ VEYRONI2S/ -r
mv VEYRONI2CS/max98090.conf VEYRONI2S/VEYRONI2S.conf

alsaucm -c VEYRONI2S set _verb HiFi set _enadev Speaker
[Output]
ALSA lib ucm_subs.c:752:(uc_mgr_get_substituted_value) variable '${CardId}' is not defined in this context!
ALSA lib parser.c:1020:(parse_value) error: unable to parse a string for id 'PlaybackPCM'!
ALSA lib parser.c:1329:(parse_device) error: failed to parse Value
ALSA lib parser.c:1737:(parse_verb_file) error: /Rockchip/max98090/HiFi.conf failed to parse device
ALSA lib main.c:1412:(snd_use_case_mgr_open) error: failed to import VEYRONI2S use case configuration -22
alsaucm: error failed to open sound card VEYRONI2S: Invalid argument

Dmesg output:
dmesg | grep {sound,max98090,VEYRON-I2S}
rockchip-snd-max98090 sound: Soc register card failed -517
input: VEYRON-I2S Headset Jack as /devices/platform/sound/sound/card0/input0
input: VEYRON-I2S HDMI Jack as /devices/platform/sound/sound/card0/input1
max98090 2-0010: MAX98090 REVID=0x43
max98090 2-0010: use default 2.8v micbias
#0: VEYRON-I2S

Copying /usr/share/alsa/ucm2/VEYRONIC2S to VEYRON-I2CS w/ VEYRON-I2CS.conf naturally results in same error. Sound output VIA headphone jack is fine, however still no sound output from internal speakers.

@TheNathan0
Copy link

I am running Cadmium on a C201PA, and I have tried the steps above, with no luck. I did reboot, still no sound. I tried the command alsaucm -c VEYRON-I2S set _verb HiFi and get the error:


$ alsaucm -c VEYRON-I2S set _verb HiFi

ALSA lib main.c:1412:(snd_use_case_mgr_open) error: failed to import VEYRON-I2S use case configuration -2

alsaucm: error failed to open sound card VEYRON-I2S: No such file or directory



Any suggestions? Audio does play out the headphone jack.

I got the exact same thing on my C100PA. It doesn't work. Sound didn't work out of the box and it didn't work after the fix either (with the speakers). I don't have the original ChromeOS install either to try any file-swaps. This was done on version 0.3.0

@Wooty-B
Copy link

Wooty-B commented Sep 14, 2022

> I am also having issues with sound on my C201P and have hit a roadblock.

> Commands I used to set ALSA device: cd /usr/share/alsa/ucm2 cp Rockchip/max98090/ VEYRONI2S/ -r mv VEYRONI2CS/max98090.conf VEYRONI2S/VEYRONI2S.conf

> alsaucm -c VEYRONI2S set _verb HiFi set _enadev Speaker [Output] ALSA lib ucm_subs.c:752:(uc_mgr_get_substituted_value) variable '${CardId}' is not defined in this context! ALSA lib parser.c:1020:(parse_value) error: unable to parse a string for id 'PlaybackPCM'! ALSA lib parser.c:1329:(parse_device) error: failed to parse Value ALSA lib parser.c:1737:(parse_verb_file) error: /Rockchip/max98090/HiFi.conf failed to parse device ALSA lib main.c:1412:(snd_use_case_mgr_open) error: failed to import VEYRONI2S use case configuration -22 alsaucm: error failed to open sound card VEYRONI2S: Invalid argument

> Dmesg output: dmesg | grep {sound,max98090,VEYRON-I2S} rockchip-snd-max98090 sound: Soc register card failed -517 input: VEYRON-I2S Headset Jack as /devices/platform/sound/sound/card0/input0 input: VEYRON-I2S HDMI Jack as /devices/platform/sound/sound/card0/input1 max98090 2-0010: MAX98090 REVID=0x43 max98090 2-0010: use default 2.8v micbias #0: VEYRON-I2S

> Copying /usr/share/alsa/ucm2/VEYRONIC2S to VEYRON-I2CS w/ VEYRON-I2CS.conf naturally results in same error. Sound output VIA headphone jack is fine, however still no sound output from internal speakers.

@Maccraft123 Any updates on this..? Issue has been ongoing for almost 6 months now, I have re-run all commands in this thread as well as multiple re-installs. Headphone jack still works but no speaker output. Please let me know what info I can provide to help as I am totally lost on how to remedy this...

Please disregard, I was trying to make an old install work which was not conducive to resolving the issue. I ended up making a full backup, installing the latest image, and it appears that sound is working out-of-the-box.

That being said, not sure of C100 or other related models are affected but this may actually be able to be closed.

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

No branches or pull requests

8 participants