DietPi Rock64 Sound Configuration Issues

Having issues with your DietPi installation, or, found a bug? Post it here.

DietPi Rock64 Sound Configuration Issues

Postby wbecks » Tue Jan 09, 2018 2:40 am

Hello.

I am running Linux rock64 4.4.77-rockchip-ayufan-118 on a Rock64 2G SBC and just love this image. However, there are some issues with the Linux sound configuration. First, amixer does not display any scntrols or scontents. aplay will not play any 1-channel mono audio sources but will play 2-channel stereo audio sources.

Here is the console output when attempting to play a mono audio wav file.

Code: Select all
root@rock64:~# aplay -vv test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: set_params:1305: Channels count non available
root@rock64:~#


Here is the console output when playing a stereo audio wave file.


Code: Select all
root@rock64:~# aplay -vv test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Warning: rate is not accurate (requested = 44100Hz, got = 48000Hz)
         please, try the plug plugin (-Dplug:default)
Hardware PCM card 1 'I2S' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 24000
  period_size  : 6000
  period_time  : 125000
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 6000
  period_event : 0
  start_threshold  : 24000
  stop_threshold   : 24000
  silence_threshold: 0
  silence_size : 0
  boundary     : 6755399441055744000
  appl_ptr     : 0
  hw_ptr       : 0
#########################################+         | 80%
root@rock64:~#


Is it possible there is a problem with the kernel driver or it's configuration? Any help to get this fixed would be very much appreciated!

Thanks,

Bill, WA8WG
wbecks
 
Posts: 2
Joined: Tue Jan 09, 2018 2:20 am

Re: DietPi Rock64 Sound Configuration Issues

Postby wbecks » Fri Jan 12, 2018 8:48 pm

This issue has been solved. Here is the fix that I used.

Edit: /etc/asound.conf

Remove the following lines ...

pcm.!default {
type hw
card 1
device 0
}
ctl.!default {
type hw
card 1
}

and replace with these...

defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0

(Save and close)

Bill, WA8WG
wbecks
 
Posts: 2
Joined: Tue Jan 09, 2018 2:20 am


Return to Troubleshooting

Who is online

Users browsing this forum: Bing [Bot], Fourdee, Nikkhah and 9 guests