Re: [Alsa-user] Slot assignment not working

2017-10-10 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote:
> Does anyone know the name of the Raspberry Pi HDMI sound device? udevadm
> info shows a driver name of "vc4_hdmi" and an id attribute of "vc4hdmi".
> lsmod only lists "vc4", nothing else with "vc4" in it. alsamixer shows
> "vc4-hdmi". None of these names in the slots option made any difference.
> When I read /proc/asound/modules, I get this:
>
>  0 snd_soc_hifiberry_dacplus
>  2 snd_bcm2835
>  3 snd_usb_audio
>  4 snd_usb_audio
>  5 (null)

Looks like a bug in that driver.  (I don't know how the ASoC framework
handles this.)


Regards,
Clemens

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-09 Thread Paul D. DeRocco
> > Paul D. DeRocco wrote:
> > Can this parameter be supplied on the kernel command line 
> > as snd.slots=...?

> From: Clemens Ladisch via Alsa-user 
> 
> Yes; this is possible for all parameters.

My first try was to leave snd as a built-in module, and pass the slots
parameter via the kernel command line:

snd.slots=snd-soc-hifiberry-dacplus,vc4,snd-bcm2835,snd-usb-audio

It showed up correctly in /proc/cmdline, but was totally ignored. All of
the slots were still wrong.

I recompiled the kernel with snd as a module, put the options back into
/etc/modprobe.d/alsa.conf, and it worked, basically. However, what I
thought was called vc4 (the HDMI sound) didn't get assigned to slot 1. But
slot 1 was still reserved, so the two USB MIDI ports took slots 3 and 4,
and the HDMI ended up in slot 5.

Does anyone know the name of the Raspberry Pi HDMI sound device? udevadm
info shows a driver name of "vc4_hdmi" and an id attribute of "vc4hdmi".
lsmod only lists "vc4", nothing else with "vc4" in it. alsamixer shows
"vc4-hdmi". None of these names in the slots option made any difference.
When I read /proc/asound/modules, I get this:

 0 snd_soc_hifiberry_dacplus
 2 snd_bcm2835
 3 snd_usb_audio
 4 snd_usb_audio
 5 (null)

Yet vc4 is indeed a loadable module, according to modinfo. Any ideas why
it appears to have no name to ALSA?

-- 

Ciao,   Paul D. DeRocco
Paulmailto:pdero...@ix.netcom.com


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote:
> Can this parameter be supplied on the kernel command line as snd.slots=...?

Yes; this is possible for all parameters.


Regards,
Clemens

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Ralf Mardorf
On Sun, 8 Oct 2017 11:44:06 -0700, Paul D. DeRocco wrote:
>> From: Clemens Ladisch via Alsa-user 
>>   
>> > I tried the following, and nothing changed:
>> >
>> >   options snd cards_limit=8 \
>> > slots=snd-soc-hifiberry-dacplus,vc4,snd-bcm2835,snd-usb-audio  
>> 
>> Are these drivers actually compiled as modules?
>> Are the names the same as in /proc/asound/modules?  
>
>The subsidiary ones are, but snd isn't. Can this parameter be supplied
>on the kernel command line as snd.slots=...? Or would it be better to
>recompile the kernel with snd as a module? If so, what's the CONFIG_
>symbol?

Probably it's

[rocketmouse@archlinux ~]$ zgrep -i snd /proc/config.gz | head -1
CONFIG_SND=m

https://cateee.net/lkddb/web-lkddb/SND.html

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Paul D. DeRocco
> From: Clemens Ladisch via Alsa-user 
> 
> > I tried the following, and nothing changed:
> >
> >   options snd cards_limit=8 \
> > slots=snd-soc-hifiberry-dacplus,vc4,snd-bcm2835,snd-usb-audio
> 
> Are these drivers actually compiled as modules?
> Are the names the same as in /proc/asound/modules?

The subsidiary ones are, but snd isn't. Can this parameter be supplied on
the kernel command line as snd.slots=...? Or would it be better to
recompile the kernel with snd as a module? If so, what's the CONFIG_
symbol?

-- 

Ciao,   Paul D. DeRocco
Paulmailto:pdero...@ix.netcom.com


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote:
>> Anyway, that slots options specifies only two slots.
>> If you have five devices, it's a better idea to specify five slots.
>
> What I have is three devices that always exist, one of which is the
> Hifiberry DAC that I want to use, and the others are the PWM audio and the
> HDMI audio. Then there are the unknown number of MIDI devices that someone
> might plug in. I tried specifying various cards_limit values.

cards_limit is not related with that.

> I tried the following, and nothing changed:
>
>   options snd cards_limit=8 \
> slots=snd-soc-hifiberry-dacplus,vc4,snd-bcm2835,snd-usb-audio

Are these drivers actually compiled as modules?
Are the names the same as in /proc/asound/modules?

> This is really behaving as though "snd" isn't the right device name to
> address the slots option to.

Check in /sys/module/snd/parameters/slots.


Regards,
Clemens

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Paul D. DeRocco
> From: Clemens Ladisch via Alsa-user 
> 
> Paul D. DeRocco wrote:
> >> Paul D. DeRocco wrote:
> >>>  options snd slots=snd-soc-hifiberry-dacplus,snd-usb-audio
> >>>
> >>>   midiC0D0  a USB MIDI device
> >>>   midiC1D0  another USB MIDI device
> >>>   pcmC2D0p and pcmC2D1p on-board crappy PWM audio
> >>>   pcmC3D0p  Hifiberry DAC
> >>>   pcmC4D0p  HDMI audio
> >>
> >> Show your entire alsa.conf.
> >
> > I did. The one-liner you just quoted is all I used to need.
> 
> In theory, it should not be possible for snd-usb-audio to 
> grab the first slot.
> Are you sure there isn't any other "options snd" line in some 
> .conf file?

There are no other files in /etc/modprobe.d, and no /etc/modprobe.conf
file. There is a /lib/modprobe.d directory, although such a directory
isn't mentioned in the relevant man pages, but it's empty anyway.

> Anyway, that slots options specifies only two slots.
> If you have five devices, it's a better idea to specify five slots.

What I have is three devices that always exist, one of which is the
Hifiberry DAC that I want to use, and the others are the PWM audio and the
HDMI audio. Then there are the unknown number of MIDI devices that someone
might plug in. I tried specifying various cards_limit values. I tried the
following, and nothing changed:

  options snd cards_limit=8 \
slots=snd-soc-hifiberry-dacplus,vc4,snd-bcm2835,snd-usb-audio

(vc4 is the HDMI, apparently).

This is really behaving as though "snd" isn't the right device name to
address the slots option to.

-- 

Ciao,   Paul D. DeRocco
Paulmailto:pdero...@ix.netcom.com


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote:
>> Paul D. DeRocco wrote:
>>>  options snd slots=snd-soc-hifiberry-dacplus,snd-usb-audio
>>>
>>>   midiC0D0  a USB MIDI device
>>>   midiC1D0  another USB MIDI device
>>>   pcmC2D0p and pcmC2D1p on-board crappy PWM audio
>>>   pcmC3D0p  Hifiberry DAC
>>>   pcmC4D0p  HDMI audio
>>
>> Show your entire alsa.conf.
>
> I did. The one-liner you just quoted is all I used to need.

In theory, it should not be possible for snd-usb-audio to grab the first slot.
Are you sure there isn't any other "options snd" line in some .conf file?

Anyway, that slots options specifies only two slots.
If you have five devices, it's a better idea to specify five slots.


Regards,
Clemens

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Paul D. DeRocco
> From: Clemens Ladisch via Alsa-user 
> 
> Paul D. DeRocco wrote:
> >  options snd slots=snd-soc-hifiberry-dacplus,snd-usb-audio
> >
> >   midiC0D0  a USB MIDI device
> >   midiC1D0  another USB MIDI device
> >   pcmC2D0p and pcmC2D1p on-board crappy PWM audio
> >   pcmC3D0p  Hifiberry DAC
> >   pcmC4D0p  HDMI audio
> 
> Show your entire alsa.conf.

I did. The one-liner you just quoted is all I used to need. The
three-liner just added some test stuff to prove that modprobe was
installing drivers.

-- 

Ciao,   Paul D. DeRocco
Paulmailto:pdero...@ix.netcom.com


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote:
>  options snd slots=snd-soc-hifiberry-dacplus,snd-usb-audio
>
>   midiC0D0  a USB MIDI device
>   midiC1D0  another USB MIDI device
>   pcmC2D0p and pcmC2D1p on-board crappy PWM audio
>   pcmC3D0p  Hifiberry DAC
>   pcmC4D0p  HDMI audio

Show your entire alsa.conf.


Regards,
Clemens

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user