TechTablets › Forums › Jumper Discussion › EZBook series › Running Linux on the EZBook 2?
- This topic has 369 replies, 5 voices, and was last updated 5 years, 2 months ago by
Miguel.
-
AuthorPosts
-
October 15, 2017 at 9:14 am #73411
Anonymous
Inactive- Posts: 14
The bytcr_rt5651 driver does not have any auto-mute control. You have to use alsamixer or pavucontrol to switch over from headphone to speaker manually.
October 15, 2017 at 9:30 am #73412The bytcr_rt5651 driver does not have any auto-mute control. You have to use alsamixer or pavucontrol to switch over from headphone to speaker manually.
Hi,,,, BC
https://i.imgur.com/ftthgAr.jpg
Speakers do not work .
there is no way to pass your configuration?
Thanks in advance.
October 15, 2017 at 9:36 am #73413Anonymous
Inactive- Posts: 14
The asound.state I attached earlier is my ALSA configuration.
October 15, 2017 at 1:45 pm #73420@uno, try unlocking the L+R channels in pavucontrol and turn the volume of only one channel down to zero. Does it produce any sound?
October 15, 2017 at 1:53 pm #73421As you can see Linux audio (ALSA) is complicated. If it does not work “out of the box”, you need to go through all the details, especially the Troubleshooting section.
for example see the section “removing asound.state file“October 15, 2017 at 2:50 pm #73425hi…
jumper@123456 ~]$ su -c ‘python2 hda-analyzer.py’
Contraseña:
Using temporary directory: /dev/shm/hda-analyzer
You may remove this directory when finished or if you like to
download the most recent copy of hda-analyzer tool.
File cached /dev/shm/hda-analyzer/hda_analyzer.py
File cached /dev/shm/hda-analyzer/hda_guilib.py
File cached /dev/shm/hda-analyzer/hda_codec.py
File cached /dev/shm/hda-analyzer/hda_proc.py
File cached /dev/shm/hda-analyzer/hda_graph.py
File cached /dev/shm/hda-analyzer/hda_mixer.py
Downloaded all files, executing hda_analyzer.py
No HDA codecs were found or insufficient priviledges for
/dev/snd/controlC* and /dev/snd/hwdepC*D* device files.You may also check, if you compiled HDA driver with HWDEP
interface as well or close all application using HWDEP.Try run this program as root user.
[jumper@123456 ~]$can that be the problem?
Thanks
October 15, 2017 at 3:08 pm #73426@uno, when you run alsamixer is the speaker level set to zero?
did you do this from the troubleshooting guide?…
Output is muted after reboot
Run the following command:# alsactl restore
If the problem persists, verify that the
Auto-Muteoption in alsamixer is set toDisabled.In alsamixer try to increase the value of the sliders, unmuting channels if necessary. <– and still nothing? no audio?
Attachments:
You must be logged in to view attached files.October 15, 2017 at 3:32 pm #73428Hi Brad ,,, = no sound n speakers ,,,,,,
[jumper@123456 ~]$ pacmd list-cards
1 card(s) available.
index: 0
name: <alsa_card.platform-bytcr_rt5651>
driver: <module-alsa-card.c>
owner module: 6
properties:
alsa.card = “0”
alsa.card_name = “bytcr-rt5651”
alsa.long_card_name = “AMICorporation-EZbook-Defaultstring-CherryTrailCR”
alsa.driver_name = “snd_soc_sst_bytcr_rt5651”
device.bus_path = “platform-bytcr_rt5651”
sysfs.path = “/devices/pci0000:00/808622A8:00/bytcr_rt5651/sound/card0”
device.form_factor = “internal”
device.string = “0”
device.description = “Audio Interno”
module-udev-detect.discovered = “1”
device.icon_name = “audio-card”
profiles:
HiFi: Play HiFi quality Music (priority 8000, available: unknown)
off: Apagado (priority 0, available: unknown)
active profile: <HiFi>
sinks:
alsa_output.platform-bytcr_rt5651.HiFi__hw_bytcrrt5651__sink/#0: Audio Interno Speaker playback + Headphones playback
sources:
alsa_output.platform-bytcr_rt5651.HiFi__hw_bytcrrt5651__sink.monitor/#0: Monitor of Audio Interno Speaker playback + Headphones playback
ports:
[Out] Speaker: Speaker playback (priority 100, latency offset 0 usec, available: unknown)
properties:[Out] Headphones: Headphones playback (priority 100, latency offset 0 usec, available: unknown)
properties:[jumper@123456 ~]$ pacmd list-sinks
1 sink(s) available.
* index: 0
name: <alsa_output.platform-bytcr_rt5651.HiFi__hw_bytcrrt5651__sink>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 9000
volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 25,58 ms
max request: 7 KiB
max rewind: 375 KiB
monitor source: 0
sample spec: s16le 2ch 48000Hz
channel map: front-left,front-right
Estéreo
used by: 1
linked by: 3
configured latency: 40,00 ms; range is 0,50 .. 2000,00 ms
card: 0 <alsa_card.platform-bytcr_rt5651>
module: 6
properties:
alsa.resolution_bits = “16”
device.api = “alsa”
device.class = “sound”
alsa.class = “generic”
alsa.subclass = “generic-mix”
alsa.name = “”
alsa.id = “1”
alsa.subdevice = “0”
alsa.subdevice_name = “subdevice #0”
alsa.device = “0”
alsa.card = “0”
alsa.card_name = “bytcr-rt5651”
alsa.long_card_name = “AMICorporation-EZbook-Defaultstring-CherryTrailCR”
alsa.driver_name = “snd_soc_sst_bytcr_rt5651”
device.bus_path = “platform-bytcr_rt5651”
sysfs.path = “/devices/pci0000:00/808622A8:00/bytcr_rt5651/sound/card0”
device.form_factor = “internal”
device.string = “hw:bytcrrt5651”
device.buffering.buffer_size = “384000”
device.buffering.fragment_size = “192000”
device.access_mode = “mmap+timer”
device.profile.name = “HiFi: hw:bytcrrt5651: sink”
device.profile.description = “Speaker playback + Headphones playback”
device.description = “Audio Interno Speaker playback + Headphones playback”
module-udev-detect.discovered = “1”
device.icon_name = “audio-card”
ports:
[Out] Speaker: Speaker playback (priority 100, latency offset 0 usec, available: unknown)
properties:[Out] Headphones: Headphones playback (priority 100, latency offset 0 usec, available: unknown)
properties:active port: <[Out] Headphones>
[jumper@123456 ~]$ pacmd list-sink-inputs
1 sink input(s) available.
index: 95
driver: <protocol-native.c>
flags:
state: RUNNING
sink: 0 <alsa_output.platform-bytcr_rt5651.HiFi__hw_bytcrrt5651__sink>
volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
muted: no
current latency: 500,02 ms
requested latency: 460,00 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Estéreo
resample method: speex-float-1
module: 8
client: 14 <Audacious>
properties:
media.name = “Audacious”
application.name = “Audacious”
native-protocol.peer = “UNIX socket client”
native-protocol.version = “32”
application.process.id = “962”
application.process.user = “jumper”
application.process.host = “123456”
application.process.binary = “audacious”
application.language = “es_ES.UTF-8”
window.x11.display = “:0.0”
application.process.machine_id = “d51357b54e7340928a3b33dc86bb8090”
application.process.session_id = “c1”
application.icon_name = “audacious”
module-stream-restore.id = “sink-input-by-application-name:Audacious”
[jumper@123456 ~]$ sudo fuser -v /dev/snd/*
[sudo] password for jumper:
USER PID ACCESS COMMAND
/dev/snd/controlC0: root 308 f…. alsactl
jumper 432 F…. pulseaudio
/dev/snd/pcmC0D0p: jumper 432 F…m pulseaudio
[jumper@123456 ~]$October 15, 2017 at 3:50 pm #73429October 15, 2017 at 4:37 pm #73430Mi alsamixer https://i.imgur.com/QXkOmVi.jpg
In that picture your speaker volume is at level zero. If you select it and use the arrow keys can you increase the level?
October 15, 2017 at 5:39 pm #73433@uno, do this in a terminal window..
pulseaudio -k
pulseaudio –start –realtime=false –log-level=4 -vvvv –log-target=newfile:/tmp/pulseaudio.log
speaker-test -D hw:1,0 -c 2 -t wav
pulseaudio -k
then drag-drop the file /tmp/pulseaudio.log on https://gist.github.com and post the link to it here on the forum.
also if you grep the file it should look something like this…
grep rt5651 /tmp/pulseaudio.log
( 0.122| 0.000) D: [pulseaudio] module-udev-detect.c: /devices/pci0000:00/808622A8:00/bytcr_rt5651/sound/card1 is busy: no
( 0.122| 0.000) D: [pulseaudio] module-udev-detect.c: Loading module-alsa-card with arguments ‘device_id=”1″ name=”platform-bytcr_rt5651″ card_name=”alsa_card.platform-bytcr_rt5651″ namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties=”module-udev-detect.discovered=1″‘
( 0.124| 0.000) I: [pulseaudio] alsa-ucm.c: UCM available for card bytcr-rt5651
( 0.128| 0.003) D: [pulseaudio] alsa-ucm.c: Got PlaybackPCM for verb HiFi: hw:bytcrrt5651
( 0.128| 0.000) D: [pulseaudio] alsa-ucm.c: Got CapturePCM for verb HiFi: hw:bytcrrt5651
( 0.128| 0.000) D: [pulseaudio] alsa-ucm.c: UCM playback device Speaker fetch pcm from verb default hw:bytcrrt5651
( 0.128| 0.000) D: [pulseaudio] alsa-ucm.c: UCM playback device Headphones fetch pcm from verb default hw:bytcrrt5651
( 0.128| 0.000) D: [pulseaudio] alsa-ucm.c: UCM mapping: Mapping HiFi: hw:bytcrrt5651: sink dev Speaker
( 0.128| 0.000) D: [pulseaudio] alsa-ucm.c: UCM mapping: Mapping HiFi: hw:bytcrrt5651: sink dev Headphones
( 0.128| 0.000) D: [pulseaudio] alsa-mixer.c: Output HiFi: hw:bytcrrt5651: sink
( 0.128| 0.000) D: [pulseaudio] alsa-util.c: Trying hw:bytcrrt5651 with SND_PCM_NO_AUTO_FORMAT …
( 0.226| 0.002) D: [pulseaudio] alsa-util.c: Managed to open hw:bytcrrt5651October 15, 2017 at 7:15 pm #73437@uno, something else to try. Try going back to kernel 4.11 and test that (there have been some regression bugs reported about audio on CherryTrail recently).
Also, just to check again, you did this right? –> https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
What is your output of this in the terminal?…journalctl -b -2 | grep rt5
October 15, 2017 at 9:02 pm #73441Mi alsamixer https://i.imgur.com/QXkOmVi.jpg
In that picture your speaker volume is at level zero. If you select it and use the arrow keys can you increase the level?
No ,, no puedo
@uno, something else to try. Try going back to kernel 4.11 and test that (there have been some regression bugs reported about audio on CherryTrail recently). Also, just to check again, you did this right? –> https://github.com/plbossart/UCM/tree/master/bytcr-rt5651 What is your output of this in the terminal?…
journalctl -b -2 | grep rt5
[jumper@123456 ~]$ journalctl -b -2 | grep rt5
oct 15 17:16:18 123456 kernel: bytcr_rt5651 bytcr_rt5651: snd-soc-dummy-dai <-> media-cpu-dai mapping ok
oct 15 17:16:18 123456 kernel: bytcr_rt5651 bytcr_rt5651: snd-soc-dummy-dai <-> deepbuffer-cpu-dai mapping ok
oct 15 17:16:18 123456 kernel: bytcr_rt5651 bytcr_rt5651: rt5651-aif1 <-> ssp2-port mapping ok
oct 15 17:19:10 123456 pulseaudio[432]: E: [alsa-sink-1] alsa-sink.c: Most likely this is a bug in the ALSA driver ‘snd_soc_sst_bytcr_rt5651’. Please report this issue to the ALSA developers.
[jumper@123456 ~]$ uname -a
Linux 123456 4.13.6-1-ARCH #1 SMP PREEMPT Thu Oct 12 12:42:27 CEST 2017 x86_64 GNU/Linux[jumper@123456 ~]$ speaker-test -D hw:1,0 -c 2 -t wav
speaker-test 1.1.4
Playback device is hw:1,0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
Playback open error: -2,No existe el fichero o el directorio
[jumper@123456 ~]$October 15, 2017 at 11:27 pm #73443[jumper@123456 ~]$ speaker-test -D hw:1,0 -c 2 -t wav
[edit:] … sorry I didn’t notice the parameter “hw:1” is not valid.
Try it like this…
pulseaudio -k
pulseaudio –start –realtime=false –log-level=4 -vvvv –log-target=newfile:/tmp/pulseaudio.log
speaker-test -c 2 -t wav
pulseaudio -k
then upload the pulseaudio.log fileOctober 16, 2017 at 12:09 am #73446@uno, sorry, I never used these tools before. But this is what I did to show the two sound devices on my notebook and play the test.
I get the same error if I use “hw:0” (HDMI) on my notebook and using “hw:1” (generic) succeeds…[brad]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: CX20751/2 Analog [CX20751/2 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
[brad]$ speaker-test -D hw:0 -c 2 -t wavspeaker-test 1.1.4
Playback device is hw:0
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -2,No such file or directory
[brad]$ speaker-test -D hw:1 -c 2 -t wavspeaker-test 1.1.4
Playback device is hw:1
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
0 – Front Left
1 – Front Right -
AuthorPosts
- You must be logged in to reply to this topic.

