asound: Channels count non available

Moderator: flatmax

Post Reply
sirduke
Posts: 5
Joined: Tue Jun 20, 2017 2:28 am

asound: Channels count non available

Post by sirduke » Tue Jun 20, 2017 5:48 am

Hello,

I followed the instructions in the "How to Setup" sticky post and can't get asound to record or play anything on the card. Recording from any number of channels (tried 1,2,3,4,5,6) fails and so does playing 1-8 channels.

Example
pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: audioinjectoroc [audioinjector-octo-soundcard], device 0: AudioInject-HIFI cs42448-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:~ $ arecord -d 10 -D hw:0,0 -r 96000 -f S24_LE -c 6 out.wav
Recording WAVE 'out.wav' : Signed 24 bit Little Endian, Rate 96000 Hz, Channels 6
arecord: set_params:1239: Channels count non available

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: asound: Channels count non available

Post by flatmax » Tue Jun 20, 2017 11:25 am

Hi there,

It is possible that your .asoundrc has been autowritten by the system.
Can you please copy your .asoundrc file here ? thanks

Also can you please show the output of the capitol letter version of the command you typed :

Code: Select all

arecord -L
thanks
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

sirduke
Posts: 5
Joined: Tue Jun 20, 2017 2:28 am

Re: asound: Channels count non available

Post by sirduke » Wed Jun 21, 2017 2:14 am

Code: Select all

pi@raspberrypi:~ $ arecord -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
anyChannelCount
sysdefault:CARD=audioinjectoroc
    audioinjector-octo-soundcard,
    Default Audio Device
dmix:CARD=audioinjectoroc,DEV=0
    audioinjector-octo-soundcard,
    Direct sample mixing device
dsnoop:CARD=audioinjectoroc,DEV=0
    audioinjector-octo-soundcard,
    Direct sample snooping device
hw:CARD=audioinjectoroc,DEV=0
    audioinjector-octo-soundcard,
    Direct hardware device without any conversions
plughw:CARD=audioinjectoroc,DEV=0
    audioinjector-octo-soundcard,
    Hardware device with all software conversions

Code: Select all

pi@raspberrypi:~ $ cat .asoundrc
pcm.!default {
#       type hw
#       card 0
        type hw
        slave.pcm "anyChannelCount"
}

ctl.!default {
        type hw
        card 0
}

pcm.anyChannelCount {
    type route
    slave.pcm "hw:0"
    slave.channels 8;
    ttable {
           0.0 1
           1.1 1
           2.2 1
           3.3 1
           4.4 1
           5.5 1
           6.6 1
           7.7 1
    }
}

ctl.anyChannelCount {
    type hw;
    card 0;
}

flatmax
Posts: 609
Joined: Sat Jul 23, 2016 11:39 pm

Re: asound: Channels count non available

Post by flatmax » Wed Jun 21, 2017 10:04 am

OK - there is a bug in the .asoundrc, it was originally set up correctly, however when you change any sound settings in pixel, it messes with the .asoundrc.
On line 4, can you change "type hw" to "type plug" as shown here in the manual settings section.

You can also try to stop if from being overwritten by making it read only :

Code: Select all

chmod a-w ~/.asoundrc
If you want to change the file in future, you have to give it write permissions.

Code: Select all

chmod ug-w ~/.asoundrc
Let me know how that goes.

Oh by the way, you should be able to test that you can use any channel count by using the awnyChannelCount plugin manually (even though it should be default) :

Code: Select all

aplay -DanyChannelCount file.wav
thanks
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

sirduke
Posts: 5
Joined: Tue Jun 20, 2017 2:28 am

Re: asound: Channels count non available

Post by sirduke » Thu Jun 22, 2017 5:24 am

Great! After changing that and downgrading my alsa-utils version, everything is working smoothly.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests