Re: [gentoo-user] USB sound

2020-05-01 Thread Steve Evans
On Fri, 1 May 2020 19:42:54 +0100
Steve Evans  wrote:

> On Fri, 1 May 2020 09:34:56 -0700
> Mark Knecht  wrote:
> 
> > On Fri, May 1, 2020 at 12:33 AM Peter Humphrey
> >  wrote:
> > >
> > > On Wednesday, 29 April 2020 20:37:23 BST Michael wrote:  
> > > > On Wednesday, 29 April 2020 16:24:31 BST Peter Humphrey wrote:  
> > >  
> > > > > Have I to go the PulseAudio route after all?  
> > > >
> > > > You do not *have to*, but if you find the PulseAudio server and
> > > >  
> > associated
> > > > GUI/CLI tools are convenient for you, then you can set up  
> > USE=pulseaudio and
> > > > use that to mix your sound sinks and sources devices with.
> > > >
> > > > As Canek has already posted in most cases it just works.
> > > > However, I  
> > must
> > > > confess I had a spate of pa processes racing up to 100% CPU and
> > > >  
> > annoyingly
> > > > respawning each time I tried to kill it.  An update eventually
> > > > fixed  
> > this
> > > > problem and it worked fine ever since.  
> > >
> > > Well, after setting USE=pulseaudio and emerging uaDvN @world,
> > > sound has reappeared. I haven't tried multiple sources yet, but -
> > > one thing at a  
> > time.
> > > Web-cam next, in between recommissioning other boxes with my new  
> > display-port
> > > KVM. I'm getting too old and stiff for this.  :(
> > >  
> > 
> > I'm glad you made forward progress!
> > 
> > QUESTION: I'm curious as to whether your Gentoo and my Kubuntu
> > systemsettings are more similar. Did adding the pulseaudio flag
> > create the Sound->Multimedia section with an 'Audio volume' area? If
> > so that area, if working like mine, would show where you can send
> > sound, allow you to enable/disable individual devices and set
> > relative volumes, etc. Also, did it build pavucontrol or some
> > version of it? If so that app is almost identical to my Multimedia
> > section but adds VU meters so you can watch multiple apps
> > generating audio, etc. I find it helpful when things don't go
> > exactly as I expected.
> > 
> 
> On my Gentoo system the KDE System Settings->Multimedia used to have
> the device priority section, but no longer does. However a search
> found another application called "Phonon Audio and Video" which
> displays the device priority. So maybe it has been moved from the
> System Settings in a recent version of KDE. This is with Plasma
> version 5.17.5.
> 
> Further investigation reveals that Kmix has an option "Audio Setup..."
> that does nothing, but examining xorg-session.log it outputs the
> error 
> 
>Could not find module 'kcm_phonon'. See kcmshell5 --list for the
>full list of modules.
> 
> which suggests a bug where either kcm_phonon should exist or kmix
> should not use it.
> 

I found some more information. The Phonon KCM module was removed on
July 21st 2019, see https://phabricator.kde.org/D22616. It is replaced
by plasma-pa, which is a pulseaudio applet. Documentation at
https://docs.kde.org/trunk5/en/kde-workspace/kcontrol/plasma-pa/index.html#plasmoid
suggests that it supplies a control module that has devices in it. So I
suspect that rebuilding KDE with pulseaudio enabled will result in the
resurrection of the ability to select devices in KDE.

Steve
-- 

Steve EvansE-mail: mailto:ste...@gorbag.com
Registered Linux user #217906: http://counter.li.org
Public Encryption Key: http://www.gorbag.com/public-key.html


5.4.28-gentoo Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz GNU/Linux

 20:48:55 up 7 days, 12:07,  4 users,  load average: 0.10, 0.48, 0.43

You have a tendency to feel you are superior to most computers.



Re: [gentoo-user] USB sound

2020-05-01 Thread Mark Knecht
On Fri, May 1, 2020 at 11:43 AM Steve Evans  wrote:
>
> On Fri, 1 May 2020 09:34:56 -0700
> Mark Knecht  wrote:
>

> > QUESTION: I'm curious as to whether your Gentoo and my Kubuntu
> > systemsettings are more similar. Did adding the pulseaudio flag
> > create the Sound->Multimedia section with an 'Audio volume' area? If
> > so that area, if working like mine, would show where you can send
> > sound, allow you to enable/disable individual devices and set
> > relative volumes, etc. Also, did it build pavucontrol or some version
> > of it? If so that app is almost identical to my Multimedia section
> > but adds VU meters so you can watch multiple apps generating audio,
> > etc. I find it helpful when things don't go exactly as I expected.
> >
>
> On my Gentoo system the KDE System Settings->Multimedia used to have
> the device priority section, but no longer does. However a search found
> another application called "Phonon Audio and Video" which displays the
> device priority. So maybe it has been moved from the System Settings in
> a recent version of KDE. This is with Plasma version 5.17.5.
>
> Further investigation reveals that Kmix has an option "Audio Setup..."
> that does nothing, but examining xorg-session.log it outputs the error
>
>Could not find module 'kcm_phonon'. See kcmshell5 --list for the
>full list of modules.
>
> which suggests a bug where either kcm_phonon should exist or kmix
> should not use it.
>
> Steve

I guess I'd better get ready for some changes then. My desktop is Kubuntu
19.10, the laptop is Kubuntu 18.04 LTS. They both have the 3 tabs (device,
applications, advanced) which I'm very used to. There's a new Kubuntu 20.??
LTS out but I'm giving it a few weeks before I upgrade. It will be
interesting (to me anyway) as to whether this is a KDE driven arrangement
or possibly chosen by the distro. I'll report back when I know. Assuming
pavucontrol doesn't disappear we still have that.

Still love Gentoo and would certainly consider running it again if I was to
buy a new PC but on my older machines it was just too much time trying to
keep up with packages changing every day. After maybe 14-15 years I ran out
of energy doing this on 4 machines at home. Binary-stable distros have
their place.

Thanks for the info!

Cheers,
Mark


Re: [gentoo-user] USB sound

2020-05-01 Thread Steve Evans
On Fri, 1 May 2020 09:34:56 -0700
Mark Knecht  wrote:

> On Fri, May 1, 2020 at 12:33 AM Peter Humphrey 
> wrote:
> >
> > On Wednesday, 29 April 2020 20:37:23 BST Michael wrote:  
> > > On Wednesday, 29 April 2020 16:24:31 BST Peter Humphrey wrote:  
> >  
> > > > Have I to go the PulseAudio route after all?  
> > >
> > > You do not *have to*, but if you find the PulseAudio server and  
> associated
> > > GUI/CLI tools are convenient for you, then you can set up  
> USE=pulseaudio and
> > > use that to mix your sound sinks and sources devices with.
> > >
> > > As Canek has already posted in most cases it just works.
> > > However, I  
> must
> > > confess I had a spate of pa processes racing up to 100% CPU and  
> annoyingly
> > > respawning each time I tried to kill it.  An update eventually
> > > fixed  
> this
> > > problem and it worked fine ever since.  
> >
> > Well, after setting USE=pulseaudio and emerging uaDvN @world, sound
> > has reappeared. I haven't tried multiple sources yet, but - one
> > thing at a  
> time.
> > Web-cam next, in between recommissioning other boxes with my new  
> display-port
> > KVM. I'm getting too old and stiff for this.  :(
> >  
> 
> I'm glad you made forward progress!
> 
> QUESTION: I'm curious as to whether your Gentoo and my Kubuntu
> systemsettings are more similar. Did adding the pulseaudio flag
> create the Sound->Multimedia section with an 'Audio volume' area? If
> so that area, if working like mine, would show where you can send
> sound, allow you to enable/disable individual devices and set
> relative volumes, etc. Also, did it build pavucontrol or some version
> of it? If so that app is almost identical to my Multimedia section
> but adds VU meters so you can watch multiple apps generating audio,
> etc. I find it helpful when things don't go exactly as I expected.
> 

On my Gentoo system the KDE System Settings->Multimedia used to have
the device priority section, but no longer does. However a search found
another application called "Phonon Audio and Video" which displays the
device priority. So maybe it has been moved from the System Settings in
a recent version of KDE. This is with Plasma version 5.17.5.

Further investigation reveals that Kmix has an option "Audio Setup..."
that does nothing, but examining xorg-session.log it outputs the error 

   Could not find module 'kcm_phonon'. See kcmshell5 --list for the
   full list of modules.

which suggests a bug where either kcm_phonon should exist or kmix
should not use it.

Steve
-- 

Steve EvansE-mail: mailto:ste...@gorbag.com
Registered Linux user #217906: http://counter.li.org
Public Encryption Key: http://www.gorbag.com/public-key.html


5.4.28-gentoo Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz GNU/Linux

 19:28:29 up 7 days, 10:47,  4 users,  load average: 0.17, 0.39, 0.35





Re: [gentoo-user] USB sound

2020-05-01 Thread Mark Knecht
On Fri, May 1, 2020 at 12:33 AM Peter Humphrey 
wrote:
>
> On Wednesday, 29 April 2020 20:37:23 BST Michael wrote:
> > On Wednesday, 29 April 2020 16:24:31 BST Peter Humphrey wrote:
>
> > > Have I to go the PulseAudio route after all?
> >
> > You do not *have to*, but if you find the PulseAudio server and
associated
> > GUI/CLI tools are convenient for you, then you can set up
USE=pulseaudio and
> > use that to mix your sound sinks and sources devices with.
> >
> > As Canek has already posted in most cases it just works.  However, I
must
> > confess I had a spate of pa processes racing up to 100% CPU and
annoyingly
> > respawning each time I tried to kill it.  An update eventually fixed
this
> > problem and it worked fine ever since.
>
> Well, after setting USE=pulseaudio and emerging uaDvN @world, sound has
> reappeared. I haven't tried multiple sources yet, but - one thing at a
time.
> Web-cam next, in between recommissioning other boxes with my new
display-port
> KVM. I'm getting too old and stiff for this.  :(
>

I'm glad you made forward progress!

QUESTION: I'm curious as to whether your Gentoo and my Kubuntu
systemsettings are more similar. Did adding the pulseaudio flag create the
Sound->Multimedia section with an 'Audio volume' area? If so that area, if
working like mine, would show where you can send sound, allow you to
enable/disable individual devices and set relative volumes, etc. Also, did
it build pavucontrol or some version of it? If so that app is almost
identical to my Multimedia section but adds VU meters so you can watch
multiple apps generating audio, etc. I find it helpful when things don't go
exactly as I expected.

Cheers,
Mark


Re: [gentoo-user] USB sound

2020-05-01 Thread Peter Humphrey
On Wednesday, 29 April 2020 20:37:23 BST Michael wrote:
> On Wednesday, 29 April 2020 16:24:31 BST Peter Humphrey wrote:

> > Have I to go the PulseAudio route after all?
> 
> You do not *have to*, but if you find the PulseAudio server and associated
> GUI/CLI tools are convenient for you, then you can set up USE=pulseaudio and
> use that to mix your sound sinks and sources devices with.
> 
> As Canek has already posted in most cases it just works.  However, I must
> confess I had a spate of pa processes racing up to 100% CPU and annoyingly
> respawning each time I tried to kill it.  An update eventually fixed this
> problem and it worked fine ever since.

Well, after setting USE=pulseaudio and emerging uaDvN @world, sound has 
reappeared. I haven't tried multiple sources yet, but - one thing at a time. 
Web-cam next, in between recommissioning other boxes with my new display-port 
KVM. I'm getting too old and stiff for this.  :(

[OT] Fully in accordance with Murphy, yesterday's upgrade of ICU had already 
caused rebuilds of all the big packages (rust, qt-core, llvm, clang, 
virtualbox, libreoffice, firefox, both web kits ...). What with those, 
remerging 
everything took half the day.
[/OT]

-- 
Regards,
Peter.






Re: [gentoo-user] USB sound

2020-04-29 Thread Michael
On Wednesday, 29 April 2020 16:24:31 BST Peter Humphrey wrote:
> On Wednesday, 29 April 2020 10:15:09 BST Peter Humphrey wrote:
> > I'm still puzzled at why creating an asound.conf enabled - phonon? - to
> > pick the right device. Alsa is not installed here, apart from alsa-lib;
> > no applications.
> 
> Well, that was a hostage to fortune. Today, after a reboot and power cycle
> for maintenance work, I'm back to having no sound.
> 
> I suspected the devices of having been detected in the wrong order, but
> /proc/ asound/cards seemed to be pointing to the right one. Besides, it
> seemed unlikely that a USB device would be found and set up before the
> device in the display controller.

The PCI card 0 is initialised before USB hotplugging takes place.  Therefore 
the asound.conf content would be parsed by alsa and the appropriate audio card 
# (USB) would/should be set as the default device.  However, the device 
initialisation sequencing logic can be upset.

It is possible things will get messy if you have a second USB audio device, in 
your case a webcam.  I don't know if USB devices are always hotplugged in a 
predictable order, but I guess plugging/unplugging USB devices could change 
the order in which they are being detected and consequently their numbering.  
Therefore your card number in asound.conf could end up referencing the other 
USB device.


> Next was to blacklist all the intel* modules and reboot again. Just the one
> card found now, the USB device. Still no sound.

The fact there is no intel-snd module shows your sound problem is not related 
to the PCI device.   I expect the snd-usb-audio module was loaded though?

There are three kernel/alsa centric solutions I can think of, but may be more.

The first and simpler is to name your USB device in asound.conf not by card 
number, but by the name it is recognised as.  Run:

cat /proc/asound/cards

then look at the name enclosed in [square brackets] after the card number and 
use that.  There may be other naming conventions but unless I search for it 
I'm not sure what to advise.  Obviouisly if you have two USB devices 
identified as "USB" this solution won't work.

Another way is manage the order in which the USB devices are ordered when the 
module initialises them.  Create a /etc/module.d/alsa.conf file and add this:

alias snd-card-0 snd-usb-audio
alias snd-card-1 snd-usb-audio
options snd-usb-audio index=0,1 vid=0x,0x pid=0x,0x

Where vendor and product IDs can be obtained and entered in the desired order 
by looking at the corresponding device output of lsusb.

A third way is to create some udev rule(s) in /etc/udev/rules.d/ - see here 
for syntax:

https://alsa.opensrc.org/Udev

and here for different examples:

https://github.com/dh1tw/remoteAudio/wiki/Persistent-USB-Mapping-of-Audio-devices-(Linux)


> Have I to go the PulseAudio route after all?

You do not *have to*, but if you find the PulseAudio server and associated 
GUI/CLI tools are convenient for you, then you can set up USE=pulseaudio and 
use that to mix your sound sinks and sources devices with.

As Canek has already posted in most cases it just works.  However, I must 
confess I had a spate of pa processes racing up to 100% CPU and annoyingly 
respawning each time I tried to kill it.  An update eventually fixed this 
problem and it worked fine ever since.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] USB sound

2020-04-29 Thread Canek Peláez Valdés
On Wed, Apr 29, 2020 at 10:24 AM Peter Humphrey 
wrote:
[...]

> Have I to go the PulseAudio route after all?
>

Hi Peter; I had refrained to comment in this thread since I had nothing to
contribute regarding your original question. However, since you now ask if
you should go to the PA route, I'm going to put my two cents on the issue.

I moved to PulseAudio with Gnome 2.26 more than a decade ago, in 2009. I've
some small issues with it through the years, but the worst case scenario
always has been resolved with a quick "pulseaudio -k", and even that has
happened four or five times in all these years. Also, I do not work with
audio professionally, but I do use several audio sources and sinks
(including Bluetooth headphones and USB microphones) and since the
quarantine I had to record video for online courses, using the USB
microphone integrated to my webcam. PulseAudio usually just works™,
specially if you use its own tools, like pavucontrol.

(It also works incredible well with flatpak and Valve Proton in Steam,
which allows me the play Windows games in Linux almost flawlessly.)

For me, the most annoying thing I had to do with PulseAudio has been that
sometimes I need to plug and unplug a headphone jack connector so the sound
automatically goes through it. That's it.

However this easy of use (specially with plug-and-play) comes with a cost:
you are surrendering control of the audio stack to PulseAudio *completely*.
You can configure it inside the confines that PulseAudio itself defines;
but if you enable PulseAudio and you try to fight it, you ARE going to
lose. This is a feature; not a bug.

I use my Gentoo machines to work (and sometimes to play a video game); not
to learn the intricacies of ALSA. I'm fine with PulseAudio making the shots
regarding anything sound related; it's the same reason I use Gnome and
systemd. But I know a lot of people (specially Gentoo users) have *very*
strong feelings about the control they believe they have over the software
they use and that they usually didn't wrote nor contributed to it. As a
professional programmer and a college programming professor, I like to
think I know better.

If you want to keep 100% control on the audio in your system (or to believe
you have said control), in my experience what will happen is exactly your
current scenario: the moment your hardware is a little more dynamic than an
integrated or PCIe sound card, everything goes off the rails. Then is time
for the litany of searching the web and asking for help until it kinda
works, sometimes, except on Wednesdays and when it's raining... and then
you change a little your system and you need to start all over again.

Or you can try to trust a piece of software specifically written to handle
this kind of scenarios. But then you have to truly trust it; and with the
knowledge that it *WILL* sometimes fail, because no software is perfect.

I choose the second.

Now some concrete advise, if you choose to go the PulseAudio route:

1. Remove your user from the audio group.
2. Delete any /etc/asound* files
3. Delete any ${HOME}/.asoundrc file
4. Don't modify any file on /etc/pulse

It should just work™. Otherwise there is a piece of software or user/system
configuration trying to fight PulseAudio. That will not turn out OK.

Regards.
-- 
Dr. Canek Peláez Valdés
Profesor de Carrera Asociado C
Departamento de Matemáticas
Facultad de Ciencias
Universidad Nacional Autónoma de México


Re: [gentoo-user] USB sound

2020-04-29 Thread Mark Knecht
On Wed, Apr 29, 2020 at 8:25 AM Peter Humphrey 
wrote:
>
> On Wednesday, 29 April 2020 10:15:09 BST Peter Humphrey wrote:
>
> > I'm still puzzled at why creating an asound.conf enabled - phonon? - to
pick
> > the right device. Alsa is not installed here, apart from alsa-lib; no
> > applications.
>
> Well, that was a hostage to fortune. Today, after a reboot and power
cycle for
> maintenance work, I'm back to having no sound.
>
> I suspected the devices of having been detected in the wrong order, but
/proc/
> asound/cards seemed to be pointing to the right one. Besides, it seemed
> unlikely that a USB device would be found and set up before the device in
the
> display controller.
>
> Next was to blacklist all the intel* modules and reboot again. Just the
one
> card found now, the USB device. Still no sound.
>
> Have I to go the PulseAudio route after all?
>
> --
> Regards,
> Peter.

Sorry for your problems. I thought we were done with this also.

No, I don't think you should add pulseaudio. It might be a good solution in
the end, if you want to have both the USB and HDMI sound paths or you just
want more visibility when you are using multiple sound application. (If you
ever do) However if you just want USB then blacklist snd_hda_intel and you
should have only 1 sound card, the USB device which is my understanding of
where you are now.

This seems to vary from USB to USB device but does alsamixer give you any
control over the device? Possibly the volume is just off?

You can determine which card (if any in your case) is being fed audio by
watching different versions of the info file:

cat /proc/asound/card1/pcm0p/info

That path name can vary a bit with multiple cards in the system but it you
only have one it's hopefully pretty close.

When audio is not playing the last line should tell you you have a
subdevice available. When audio plays the subdevice being used becomes
unavailable. In your case I'd be interested in whether the audio is getting
to the USB device or going someplace else?

Again, sorry for your problems.

Mark


Re: [gentoo-user] USB sound

2020-04-29 Thread Peter Humphrey
On Wednesday, 29 April 2020 10:15:09 BST Peter Humphrey wrote:

> I'm still puzzled at why creating an asound.conf enabled - phonon? - to pick
> the right device. Alsa is not installed here, apart from alsa-lib; no
> applications.

Well, that was a hostage to fortune. Today, after a reboot and power cycle for 
maintenance work, I'm back to having no sound.

I suspected the devices of having been detected in the wrong order, but /proc/
asound/cards seemed to be pointing to the right one. Besides, it seemed 
unlikely that a USB device would be found and set up before the device in the 
display controller.

Next was to blacklist all the intel* modules and reboot again. Just the one 
card found now, the USB device. Still no sound.

Have I to go the PulseAudio route after all?

-- 
Regards,
Peter.






Re: [gentoo-user] USB sound

2020-04-29 Thread Peter Humphrey
On Tuesday, 28 April 2020 23:41:59 BST Michael wrote:
> On Tuesday, 28 April 2020 19:29:18 BST Mark Knecht wrote:
> > On Tue, Apr 28, 2020 at 8:11 AM Peter Humphrey 
> > wrote:
> > > On Tuesday, 28 April 2020 15:21:09 BST Mark Knecht wrote:
> > Ah, so now we have more clues about what's going on. KDE supplies
> > pulseaudio. AFAIK it's part of the KDE installation on other distros. I'm
> > running Kubuntu LTS, not Gentoo, so I have pulseaudio because it's what
> > the Kubuntu guys give me. You have a USE flag that __YOU__ took
> > responsibility for turning off. (I'm not clear from this discussion what
> > packages have a pulseaudio flag - multiple packages I assume?
> 
> I don't think pa is part of KDE, unless you install it along with systemd.
> Otherwise, KDE's phonon can be installed with the pulseaudio USE flag
> enabled, in which case pa is dragged in.
> 
>   media-libs/phonon
>  Available versions:
> 4.11.1-r1 [debug designer gstreamer pulseaudio +vlc]
>  Installed versions:  4.11.1-r1(10:37:13 04/12/19)(vlc -debug -designer
> - gstreamer -pulseaudio)
>  Homepage:https://phonon.kde.org/
>  Description: KDE multimedia abstraction library

That's exactly the same as mine.

> > Or your choice to disable USE flags has removed some of the 'features' of
> > KDE. Again, I'm using completely updated stable Kubuntu LTS for my
> > day-to-day systems so there are clearly differences. However I suggest
> > here that the reason there is no multimedia under audio in system settings
> > may be because you haven't included the pulseaudio USE flag.
> 
> I think with openrc the pulseaudio USE flag is optional, but haven't looked
> into the profile to see what it enables.

[Sepulchrally] Confirmed. (Remember ORAC?)

> > If Alsa under the hood is doing everything you need then let's drop the
> > pulseaudio part. pulseaudio is conceptually just a mixer.
> 
> Yes, and if some application requires pulseaudio, I think the apulse package
> provides a partial implementation of the PulseAudio API and libraries for
> alsa to use instead its own dmix, dsnoop, and plug plugins in place of
> pulseaudio.
> > Have you blacklisted the snd_hda_intel driver, at least as a test? If so,
> > do you only see the USB card and the snd_usb_driver in /proc/asound? If so
> > do you have sound from the USB device?
> 
> With a broken sound card which will never work again, blacklisting the
> snd_hda_intel driver is a 'sound' strategy (sorry, couldn't resist the pun).

I may do that yet, but pro tem I'll leave it as it's doing no harm. The faulty 
device is switched off in the BIOS, so having Intel modules loaded implies that 
the Radeon's display driver needs it.

> > I have nothing against creating an asound.conf file, if you want to, but I
> > don't have any recent experience with doing that. However it should allow
> > you to set your USB device as default if it's done correctly but in this
> > test configuration with blacklisted snd_hda_intel drivers I don't think
> > it's necessary and cannot see how it improves anything yet.
> > 
> > Mark
> 
> Right, an asound.conf file is just a way of configuring alsa itself to
> select an audio card as a primary device, rather than disabling a device at
> a kernel driver level.  Both approaches will work equally, although
> blacklisting a driver means it will be disabled for any other audio devices
> which may need it in the future.

I'm still puzzled at why creating an asound.conf enabled - phonon? - to pick 
the right device. Alsa is not installed here, apart from alsa-lib; no 
applications.

-- 
Regards,
Peter.






Re: [gentoo-user] USB sound

2020-04-28 Thread Michael
On Tuesday, 28 April 2020 19:29:18 BST Mark Knecht wrote:
> On Tue, Apr 28, 2020 at 8:11 AM Peter Humphrey 
> wrote:
> > On Tuesday, 28 April 2020 15:21:09 BST Mark Knecht wrote:

> Ah, so now we have more clues about what's going on. KDE supplies
> pulseaudio. AFAIK it's part of the KDE installation on other distros. I'm
> running Kubuntu LTS, not Gentoo, so I have pulseaudio because it's what the
> Kubuntu guys give me. You have a USE flag that __YOU__ took responsibility
> for turning off. (I'm not clear from this discussion what packages have a
> pulseaudio flag - multiple packages I assume?

I don't think pa is part of KDE, unless you install it along with systemd.  
Otherwise, KDE's phonon can be installed with the pulseaudio USE flag enabled, 
in which case pa is dragged in.

  media-libs/phonon
 Available versions:  
4.11.1-r1   [debug designer gstreamer pulseaudio +vlc]
 Installed versions:  4.11.1-r1(10:37:13 04/12/19)(vlc -debug -designer -
gstreamer -pulseaudio)
 Homepage:https://phonon.kde.org/
 Description: KDE multimedia abstraction library


> Or your choice to disable USE flags has removed some of the 'features' of
> KDE. Again, I'm using completely updated stable Kubuntu LTS for my
> day-to-day systems so there are clearly differences. However I suggest here
> that the reason there is no multimedia under audio in system settings may
> be because you haven't included the pulseaudio USE flag.

I think with openrc the pulseaudio USE flag is optional, but haven't looked 
into the profile to see what it enables.


> If Alsa under the hood is doing everything you need then let's drop the
> pulseaudio part. pulseaudio is conceptually just a mixer.

Yes, and if some application requires pulseaudio, I think the apulse package 
provides a partial implementation of the PulseAudio API and libraries for alsa 
to use instead its own dmix, dsnoop, and plug plugins in place of pulseaudio.


> Have you blacklisted the snd_hda_intel driver, at least as a test? If so,
> do you only see the USB card and the snd_usb_driver in /proc/asound? If so
> do you have sound from the USB device?

With a broken sound card which will never work again, blacklisting the 
snd_hda_intel driver is a 'sound' strategy (sorry, couldn't resist the pun).


> I have nothing against creating an asound.conf file, if you want to, but I
> don't have any recent experience with doing that. However it should allow
> you to set your USB device as default if it's done correctly but in this
> test configuration with blacklisted snd_hda_intel drivers I don't think
> it's necessary and cannot see how it improves anything yet.
> 
> Mark

Right, an asound.conf file is just a way of configuring alsa itself to select 
an audio card as a primary device, rather than disabling a device at a kernel 
driver level.  Both approaches will work equally, although blacklisting a 
driver means it will be disabled for any other audio devices which may need it 
in the future.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] USB sound

2020-04-28 Thread Peter Humphrey
On Tuesday, 28 April 2020 19:29:18 BST Mark Knecht wrote:

> Ah, so now we have more clues about what's going on. KDE supplies
> pulseaudio.

Not here, it doesn't, as far as I can see. It may emulate it, I suppose.

> AFAIK it's part of the KDE installation on other distros. I'm
> running Kubuntu LTS, not Gentoo, so I have pulseaudio because it's what the
> Kubuntu guys give me. You have a USE flag that __YOU__ took responsibility
> for turning off. (I'm not clear from this discussion what packages have a
> pulseaudio flag - multiple packages I assume?

I haven't switched any USE flags off. This is the standard plasma profile, 
apart 
from 18 package.use files that have nothing to do with sound.

>  I have no idea whether rebuilding 19 packages and installing 10
> new ones is a big deal for your system, nor can I say what the impact of
> those changes would be to the way your system operates, but you're a Gentoo
> guys so you must (!! ;) !!)) love building packages and experiments, right?
> ;-) (It's why I gave up using Gentoo for my desktop computers. I don't like
> experiments so much anymore!)

No, of course that many package changes aren't a big deal; I mentioned it to 
show what a big change would be involved to a previously working system.

> > > Use KDE systemsettings, search for sound, choose 'Multimedia', Under
> > > 'Audio Volume' what do you see? What device is set as default? (This
> > > part of systemsettings is very similar to pavucontrol but it doesn't
> > > give you the VU meters which are nicely visible to see what apps are
> > > generating audio.
> 
> > KDE system settings have changed since your day, Mark; there's now no
> > reference to the hardware at all under Multimedia; only CDDB.
> 
> Or your choice to disable USE flags has removed some of the 'features' of
> KDE.

Not so, as I said above.

> Again, I'm using completely updated stable Kubuntu LTS for my
> day-to-day systems so there are clearly differences. However I suggest here
> that the reason there is no multimedia under audio in system settings may
> be because you haven't included the pulseaudio USE flag.

I haven't _added_ a pulseaudio USE flag because I haven't needed it. I haven't 
removed one either.

> And I do understand that pulseaudio is sort of like Joan Jett singing Bad
> Reputation. Joan, pulseaudio and by extension Mr. Pottering pretty much
> 'just don't care about my bad reputation'.

Sorry, those allusions are lost on me.

--->8

> > Thanks for your help.
> 
> Not sure I've helped so far. Sorry!

Yes, you've given me several ideas, for which much thanks.

-- 
Regards,
Peter.






Re: [gentoo-user] USB sound

2020-04-28 Thread Mark Knecht
On Tue, Apr 28, 2020 at 8:11 AM Peter Humphrey 
wrote:
>
> On Tuesday, 28 April 2020 15:21:09 BST Mark Knecht wrote:
> > On Tue, Apr 28, 2020 at 6:51 AM Peter Humphrey 
>
> --->8
>
> > OK, so card 0 is using snd_hda_intel. Card 0 is most likely the default
> > location that sound is going. Blacklisting it will help. That said you
have
> > 2 USB devices so we need to be careful about extra confusion there. For
> > simplicity you might just unplug the webcam (if you can - if this is a
> > built-in in a laptop then I understand you have limitations.)
>
> --->8
>
> > > Nope. No pulseaudio.
> >
> > What is the output of pulseaudio at the command line?
>
> Not found.
>
> > Or maybe just no pluseaudio tools, or whatever it's called on Gentoo
> > assuming it's a separate package. I'm no longer running Gentoo (I just
find
> > this list the best place to get real info) A quick google for
pavucontrol
> > suggests you can emerge media-sound/pavucontrol to get it.
>
> Do I need it? I have sound without it. To install it I'd have to set the
> pulseaudio USE flag; then emerge -uaDvN @world would reinstall 19
packages and
> install 10 new ones.
>

Ah, so now we have more clues about what's going on. KDE supplies
pulseaudio. AFAIK it's part of the KDE installation on other distros. I'm
running Kubuntu LTS, not Gentoo, so I have pulseaudio because it's what the
Kubuntu guys give me. You have a USE flag that __YOU__ took responsibility
for turning off. (I'm not clear from this discussion what packages have a
pulseaudio flag - multiple packages I assume?

 I have no idea whether rebuilding 19 packages and installing 10
new ones is a big deal for your system, nor can I say what the impact of
those changes would be to the way your system operates, but you're a Gentoo
guys so you must (!! ;) !!)) love building packages and experiments, right?
;-) (It's why I gave up using Gentoo for my desktop computers. I don't like
experiments so much anymore!)


> > Use KDE systemsettings, search for sound, choose 'Multimedia', Under
'Audio
> > Volume' what do you see? What device is set as default? (This part of
> > systemsettings is very similar to pavucontrol but it doesn't give you
the
> > VU meters which are nicely visible to see what apps are generating
audio.
>
> KDE system settings have changed since your day, Mark; there's now no
> reference to the hardware at all under Multimedia; only CDDB. There's no
> useful USE flag on it.
>

Or your choice to disable USE flags has removed some of the 'features' of
KDE. Again, I'm using completely updated stable Kubuntu LTS for my
day-to-day systems so there are clearly differences. However I suggest here
that the reason there is no multimedia under audio in system settings may
be because you haven't included the pulseaudio USE flag.

And I do understand that pulseaudio is sort of like Joan Jett singing Bad
Reputation. Joan, pulseaudio and by extension Mr. Pottering pretty much
'just don't care about my bad reputation'.

> --->8
>
> > > Third, I haven't any alsa packages installed, except for alsamixer
which I
> > > installed to help with this problem (it didn't). There's no starting
or
> > > stopping alsa; KDE seems to have what it needs without alsa
specifically.
> > > That's why I had no asound.conf; it's also why I rebooted instead of
doing
> > > something less heavy handed. Then again, why do I need an asound.conf?
> >
> > No. The fact that you can cat "/proc/asound" asound being "Alsa Sound"
says
> > Alsa is running. Alsa talks to your sound card hardware and provides a
> > "single application" interface to the sound cards. Pulseaudio provides a
> > mixer so that multiple apps can all send sound to your hardware.
>
> To clarify:
> prh@peak ~ $ eix -Ic alsa
> [I] media-libs/alsa-lib (1.2.2{tbz2}@22/04/20): Advanced Linux Sound
> Architecture Library
> prh@peak ~ $ eix -Ic audio
> [I] media-libs/audiofile (0.3.6-r3(0/1){tbz2}@11/04/20): An elegant API
for
> accessing audio files
>
> I can already send sound from several apps at once to the hardware - at
least,
> I could with the built-in Intel hardware. Time will tell how the USB
device
> fares. I think KDE must use media-libs/alsa-lib directly. It must be
doing a
> lot of work under the bonnet.
>

If Alsa under the hood is doing everything you need then let's drop the
pulseaudio part. pulseaudio is conceptually just a mixer.

> > I personally don't think you need asound.conf until you prove that you
have
> > a need to do some sort of non-standard configuration. That _might_ be
> > defining a different default card but KDE can do that for you in system
> > settings so my recommendation is no asound.conf for now. Use KDE as it's
> > intended and (over the long run) I think it's more maintainable.
However,
> > you are completely free to use your system any way you want.
>
> Thanks for your help.
>

Not sure I've helped so far. Sorry!

Have you blacklisted the snd_hda_intel driver, at least as a test? If so,
do you only see the USB card and 

Re: [gentoo-user] USB sound

2020-04-28 Thread Peter Humphrey
On Tuesday, 28 April 2020 15:21:09 BST Mark Knecht wrote:
> On Tue, Apr 28, 2020 at 6:51 AM Peter Humphrey 

--->8

> OK, so card 0 is using snd_hda_intel. Card 0 is most likely the default
> location that sound is going. Blacklisting it will help. That said you have
> 2 USB devices so we need to be careful about extra confusion there. For
> simplicity you might just unplug the webcam (if you can - if this is a
> built-in in a laptop then I understand you have limitations.)

--->8

> > Nope. No pulseaudio.
> 
> What is the output of pulseaudio at the command line?

Not found.
 
> Or maybe just no pluseaudio tools, or whatever it's called on Gentoo
> assuming it's a separate package. I'm no longer running Gentoo (I just find
> this list the best place to get real info) A quick google for pavucontrol
> suggests you can emerge media-sound/pavucontrol to get it.

Do I need it? I have sound without it. To install it I'd have to set the 
pulseaudio USE flag; then emerge -uaDvN @world would reinstall 19 packages and 
install 10 new ones.
 
> Use KDE systemsettings, search for sound, choose 'Multimedia', Under 'Audio
> Volume' what do you see? What device is set as default? (This part of
> systemsettings is very similar to pavucontrol but it doesn't give you the
> VU meters which are nicely visible to see what apps are generating audio.

KDE system settings have changed since your day, Mark; there's now no 
reference to the hardware at all under Multimedia; only CDDB. There's no 
useful USE flag on it.

--->8

> > Third, I haven't any alsa packages installed, except for alsamixer which I
> > installed to help with this problem (it didn't). There's no starting or
> > stopping alsa; KDE seems to have what it needs without alsa specifically.
> > That's why I had no asound.conf; it's also why I rebooted instead of doing
> > something less heavy handed. Then again, why do I need an asound.conf?
> 
> No. The fact that you can cat "/proc/asound" asound being "Alsa Sound" says
> Alsa is running. Alsa talks to your sound card hardware and provides a
> "single application" interface to the sound cards. Pulseaudio provides a
> mixer so that multiple apps can all send sound to your hardware.

To clarify: 
prh@peak ~ $ eix -Ic alsa
[I] media-libs/alsa-lib (1.2.2{tbz2}@22/04/20): Advanced Linux Sound 
Architecture Library
prh@peak ~ $ eix -Ic audio
[I] media-libs/audiofile (0.3.6-r3(0/1){tbz2}@11/04/20): An elegant API for 
accessing audio files

I can already send sound from several apps at once to the hardware - at least, 
I could with the built-in Intel hardware. Time will tell how the USB device 
fares. I think KDE must use media-libs/alsa-lib directly. It must be doing a 
lot of work under the bonnet.

> I personally don't think you need asound.conf until you prove that you have
> a need to do some sort of non-standard configuration. That _might_ be
> defining a different default card but KDE can do that for you in system
> settings so my recommendation is no asound.conf for now. Use KDE as it's
> intended and (over the long run) I think it's more maintainable. However,
> you are completely free to use your system any way you want.

Thanks for your help.

-- 
Regards,
Peter.






Re: [gentoo-user] USB sound

2020-04-28 Thread Michael
On Tuesday, 28 April 2020 15:21:09 BST Mark Knecht wrote:

> I personally don't think you need asound.conf until you prove that you have
> a need to do some sort of non-standard configuration. That _might_ be
> defining a different default card but KDE can do that for you in system
> settings so my recommendation is no asound.conf for now. Use KDE as it's
> intended and (over the long run) I think it's more maintainable. However,
> you are completely free to use your system any way you want.

Indeed, there's /more than one way to skin a cat/ and using an asound.conf to 
order sound devices for alsa is not absolutely necessary.  Removing modules 
for any unwanted devices will of course disable them and alsa will 
automatically pick up whichever device is left.

I tend to use asound.conf to make sure the order of devices is respected 
whatever DE I tend to boot into at any time, however, I do not need to 
permanently disable devices like Peter may want to.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] USB sound

2020-04-28 Thread Mark Knecht
On Tue, Apr 28, 2020 at 6:51 AM Peter Humphrey 
wrote:
>
> On Tuesday, 28 April 2020 14:18:52 BST Mark Knecht wrote:
>
> Has KMail started misbehaving again? I'm certain I read a reply from
Michael,
> but now there's no trace of it after a reboot (see below). Anyway, I
created
> an /etc/asound.conf with the content he recommended. That gave me sound
back.
> Thanks Michael.
>

I don't use asound.conf on any of my machines. Be careful about mixing
instructions from multiple folks trying to help you. It will confuse us (or
me anyway) to no end.

> > 1) First, if you really don't want the intel stuff loaded then either
don't
> > build it in your kernel or (easier - it's what I do) just blacklist the
> > intel sound driver. The following link has some instructions which
explain
> > the process.
>
> > https://www.techtimejourney.net/how-to-blacklist-a-sound-card-in-linux/
>
> Thanks for the pointer, Mark.
>
> > Please provide the output of
> >
> > ls /proc/asound
> > cat /proc/asound/cards
> > cat /proc/asound/modules
>
> # ls /proc/asound
> card0  card2  Device   HDMI   modules  pcm  timers  version
> card1  cards  devices  hwdep  oss  seq  USB
>
> # cat /proc/asound/cards
>  0 [HDMI   ]: HDA-Intel - HDA ATI HDMI
>   HDA ATI HDMI at 0xfbe6 irq 59
>  1 [USB]: USB-Audio - HD Webcam USB
>   HD Webcam USB HD Webcam USB at usb-:00:14.0-6,
high
> speed
>  2 [Device ]: USB-Audio - USB Audio Device
>   C-Media Electronics Inc. USB Audio Device at
> usb-:00:14.0-13, full speed
>
> # cat /proc/asound/modules
>  0 snd_hda_intel
>  1 snd_usb_audio
>  2 snd_usb_audio
>

OK, so card 0 is using snd_hda_intel. Card 0 is most likely the default
location that sound is going. Blacklisting it will help. That said you have
2 USB devices so we need to be careful about extra confusion there. For
simplicity you might just unplug the webcam (if you can - if this is a
built-in in a laptop then I understand you have limitations.)

> > 1) First, if you really don't want the intel stuff loaded then either
don't
> > build it in your kernel or (easier - it's what I do) just blacklist the
> > intel sound driver. The following link has some instructions which
explain
> > the process.
> >
> > https://www.techtimejourney.net/how-to-blacklist-a-sound-card-in-linux/
> >
> > Restart Alsa and double check the cards and modules shown in
/proc/asound.
> >
> > 2) As you are on KDE you likely have pulseaudio running. Run
pavucontrol,
> > run Firefox with some audio and see where you are sending Firefox audio.
>
> Nope. No pulseaudio.
>

What is the output of pulseaudio at the command line?

Or maybe just no pluseaudio tools, or whatever it's called on Gentoo
assuming it's a separate package. I'm no longer running Gentoo (I just find
this list the best place to get real info) A quick google for pavucontrol
suggests you can emerge media-sound/pavucontrol to get it.

Use KDE systemsettings, search for sound, choose 'Multimedia', Under 'Audio
Volume' what do you see? What device is set as default? (This part of
systemsettings is very similar to pavucontrol but it doesn't give you the
VU meters which are nicely visible to see what apps are generating audio.


> > 3) You probably don't have to mess with Alsa configuration itself to fix
> > this so keep it simple for now. We can go there later if need be.
>
> Meanwhile there are a few complications. First, I also have a webcam with
a
> microphone. I should have unplugged this before asking my question.
>

Agreed. Leave it disconnected for now for simplicity.

> Second, there's a sound driver in my Radeon Pro WX 5100, which I may want
to
> experiment with later if I can find a way to extract the sound from my
> DisplayPort link (not HDMI after all; I was mistaken about that in an
earlier
> thread). I can't disable it anyway, as far as I know. It may account for
the
> Intel modules.
>

No problem. Either blacklist the driver (easy) or rebuild the kernel
WITHOUT the driver (easy). Either should get rid of snd_hda_intel

> Third, I haven't any alsa packages installed, except for alsamixer which I
> installed to help with this problem (it didn't). There's no starting or
> stopping alsa; KDE seems to have what it needs without alsa specifically.
> That's why I had no asound.conf; it's also why I rebooted instead of doing
> something less heavy handed. Then again, why do I need an asound.conf?
>

No. The fact that you can cat "/proc/asound" asound being "Alsa Sound" says
Alsa is running. Alsa talks to your sound card hardware and provides a
"single application" interface to the sound cards. Pulseaudio provides a
mixer so that multiple apps can all send sound to your hardware.

I personally don't think you need asound.conf until you prove that you have
a need to do some sort of non-standard configuration. That _might_ be
defining a different default card but KDE can do that for you in system
settings so my 

Re: [gentoo-user] USB sound

2020-04-28 Thread Peter Humphrey
On Tuesday, 28 April 2020 14:18:52 BST Mark Knecht wrote:

Has KMail started misbehaving again? I'm certain I read a reply from Michael, 
but now there's no trace of it after a reboot (see below). Anyway, I created 
an /etc/asound.conf with the content he recommended. That gave me sound back. 
Thanks Michael.

> 1) First, if you really don't want the intel stuff loaded then either don't
> build it in your kernel or (easier - it's what I do) just blacklist the
> intel sound driver. The following link has some instructions which explain
> the process.

> https://www.techtimejourney.net/how-to-blacklist-a-sound-card-in-linux/

Thanks for the pointer, Mark. 

> Please provide the output of
> 
> ls /proc/asound
> cat /proc/asound/cards
> cat /proc/asound/modules

# ls /proc/asound
card0  card2  Device   HDMI   modules  pcm  timers  version
card1  cards  devices  hwdep  oss  seq  USB

# cat /proc/asound/cards
 0 [HDMI   ]: HDA-Intel - HDA ATI HDMI
  HDA ATI HDMI at 0xfbe6 irq 59
 1 [USB]: USB-Audio - HD Webcam USB
  HD Webcam USB HD Webcam USB at usb-:00:14.0-6, high 
speed
 2 [Device ]: USB-Audio - USB Audio Device
  C-Media Electronics Inc. USB Audio Device at 
usb-:00:14.0-13, full speed

# cat /proc/asound/modules
 0 snd_hda_intel
 1 snd_usb_audio
 2 snd_usb_audio

> 1) First, if you really don't want the intel stuff loaded then either don't
> build it in your kernel or (easier - it's what I do) just blacklist the
> intel sound driver. The following link has some instructions which explain
> the process.
> 
> https://www.techtimejourney.net/how-to-blacklist-a-sound-card-in-linux/
> 
> Restart Alsa and double check the cards and modules shown in /proc/asound.
> 
> 2) As you are on KDE you likely have pulseaudio running. Run pavucontrol,
> run Firefox with some audio and see where you are sending Firefox audio.

Nope. No pulseaudio.

> 3) You probably don't have to mess with Alsa configuration itself to fix
> this so keep it simple for now. We can go there later if need be.

Meanwhile there are a few complications. First, I also have a webcam with a 
microphone. I should have unplugged this before asking my question.

Second, there's a sound driver in my Radeon Pro WX 5100, which I may want to 
experiment with later if I can find a way to extract the sound from my 
DisplayPort link (not HDMI after all; I was mistaken about that in an earlier 
thread). I can't disable it anyway, as far as I know. It may account for the 
Intel modules.

Third, I haven't any alsa packages installed, except for alsamixer which I 
installed to help with this problem (it didn't). There's no starting or 
stopping alsa; KDE seems to have what it needs without alsa specifically. 
That's why I had no asound.conf; it's also why I rebooted instead of doing 
something less heavy handed. Then again, why do I need an asound.conf?

-- 
Regards,
Peter.






Re: [gentoo-user] USB sound

2020-04-28 Thread Mark Knecht
On Tue, Apr 28, 2020 at 2:43 AM Peter Humphrey 
wrote:
>
> Morning all,
>
> The motherboard sound chip failed, so I bought a USB sound adapter [1].
> Problem: no sound: firefox says it isn't working and KDE sounds don't
'appear'.
> I have all the likely-looking options set in the kernel (5.4.28), modules
> where possible. I've read the Gentoo wiki articles on USB and audio, but
they
> didn't offer any help.

> # aplay -l
>  List of PLAYBACK Hardware Devices 
> card 0: HDMI [HDA ATI HDMI], device 3: Generic Digital [Generic Digital]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
>
> # arecord -l
>  List of CAPTURE Hardware Devices 
> card 1: USB [HD Webcam USB], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
> snd_seq_device 16384  1 snd_rawmidi
> mc 40960  4
videodev,snd_usb_audio,videobuf2_v4l2,videobuf2_common
> snd_hda_codec_generic77824  1
> snd_hda_intel  28672  0
> snd_intel_nhlt 16384  1 snd_hda_intel
> snd_hda_codec 122880  2 snd_hda_codec_generic,snd_hda_intel
> snd_hda_core   73728  3
snd_hda_codec_generic,snd_hda_intel,snd_hda_codec
> snd_pcm98304  4
snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
> snd_timer  32768  1 snd_pcm
> snd81920  10
snd_hda_codec_generic,snd_seq_device,snd_hwdep,snd_hda_i>
> soundcore  16384  1 snd
>
> Why those Intel modules? The built-in Intel device is switched off in the
BIOS.
>

Because your video card probably makes sound available to send to your TV
over HDMI and it uses the Intel driver, or because the BIOS switch wasn't
honored by the kernel.


> Can anyone point me in the right direction?
>
> 1.  The device is a 'Sabrent USB External Stereo Sound Adapter'; The
blurb at amazon.co.uk includes Linux in its list of OSes. I bought it via
https://smile.amazon.co.uk/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B00IRVQ0F8/ref=sr_1_3?dchild=1=usb+sound=1588065420=8-3

Please provide the output of

ls /proc/asound
cat /proc/asound/cards
cat /proc/asound/modules

1) First, if you really don't want the intel stuff loaded then either don't
build it in your kernel or (easier - it's what I do) just blacklist the
intel sound driver. The following link has some instructions which explain
the process.

https://www.techtimejourney.net/how-to-blacklist-a-sound-card-in-linux/

Restart Alsa and double check the cards and modules shown in /proc/asound.

2) As you are on KDE you likely have pulseaudio running. Run pavucontrol,
run Firefox with some audio and see where you are sending Firefox audio.

3) You probably don't have to mess with Alsa configuration itself to fix
this so keep it simple for now. We can go there later if need be.

Mark


Re: [gentoo-user] USB sound

2020-04-28 Thread Michael
On Tuesday, 28 April 2020 12:32:04 BST tu...@posteo.de wrote:
> On 04/28 10:43, Peter Humphrey wrote:
> > Morning all,
> > 
> > The motherboard sound chip failed, so I bought a USB sound adapter [1].
> > Problem: no sound: firefox says it isn't working and KDE sounds don't
> > 'appear'. I have all the likely-looking options set in the kernel
> > (5.4.28), modules where possible. I've read the Gentoo wiki articles on
> > USB and audio, but they didn't offer any help.
> > 
> > The device uses USB-2 and I have it in a USB-2 socket. I get this on
> > plugging it in:
> > 
> > $ dmesg -Hw
> > [Apr28 09:49] usb 3-13: new full-speed USB device number 17 using xhci_hcd
> > [  +0.127080] usb 3-13: New USB device found, idVendor=0d8c,
> > idProduct=0014, bcdDevice= 1.00 [  +0.02] usb 3-13: New USB device
> > strings: Mfr=1, Product=2, SerialNumber=0 [  +0.02] usb 3-13:
> > Product: USB Audio Device
> > [  +0.01] usb 3-13: Manufacturer: C-Media Electronics Inc.
> > [  +0.007851] input: C-Media Electronics Inc. USB Audio Device as
> > /devices/pci:00/:00:14.0/usb3/3-13/3-13:1.3/0003:0D8C:0014.000D/i
> > nput/input20 [  +0.051184] hid-generic 0003:0D8C:0014.000D: input,hidraw4:
> > USB HID v1.00 Device [C-Media Electronics Inc. USB Audio Device] on
> > usb-:00:14.0-13/input3
> > 
> > Some more diagnostics:
> > 
> > # aplay -l
> >  List of PLAYBACK Hardware Devices 
> > card 0: HDMI [HDA ATI HDMI], device 3: Generic Digital [Generic Digital]
> > 
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > 
> > card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
> > 
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > 
> > # arecord -l
> >  List of CAPTURE Hardware Devices 
> > card 1: USB [HD Webcam USB], device 0: USB Audio [USB Audio]
> > 
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > 
> > card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
> > 
> >   Subdevices: 1/1
> >   Subdevice #0: subdevice #0
> > 
> > # lsusb -t | grep -i audio
> > 
> > |__ Port 6: Dev 3, If 2, Class=Audio, Driver=snd-usb-audio, 480M
> > |__ Port 6: Dev 3, If 3, Class=Audio, Driver=snd-usb-audio, 480M
> > |__ Port 13: Dev 17, If 0, Class=Audio, Driver=snd-usb-audio, 12M
> > |__ Port 13: Dev 17, If 1, Class=Audio, Driver=snd-usb-audio, 12M
> > |__ Port 13: Dev 17, If 2, Class=Audio, Driver=snd-usb-audio, 12M
> > 
> > # lsmod | grep snd
> > snd_usb_audio 233472  0
> > snd_hwdep  16384  1 snd_usb_audio
> > snd_usbmidi_lib28672  1 snd_usb_audio
> > snd_rawmidi32768  1 snd_usbmidi_lib
> > snd_seq_device 16384  1 snd_rawmidi
> > mc 40960  4
> > videodev,snd_usb_audio,videobuf2_v4l2,videobuf2_common
> > snd_hda_codec_generic77824  1
> > snd_hda_intel  28672  0
> > snd_intel_nhlt 16384  1 snd_hda_intel
> > snd_hda_codec 122880  2 snd_hda_codec_generic,snd_hda_intel
> > snd_hda_core   73728  3
> > snd_hda_codec_generic,snd_hda_intel,snd_hda_codec snd_pcm   
> > 98304  4 snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core snd_timer
> >  32768  1 snd_pcm
> > snd81920  10
> > snd_hda_codec_generic,snd_seq_device,snd_hwdep,snd_hda_i> soundcore  
> >16384  1 snd
> > 
> > Why those Intel modules? The built-in Intel device is switched off in the
> > BIOS.
> > 
> > Can anyone point me in the right direction?
> > 
> > 1.  The device is a 'Sabrent USB External Stereo Sound Adapter'; The blurb
> > at amazon.co.uk includes Linux in its list of OSes. I bought it via
> > https://smile.amazon.co.uk/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B0
> > 0IRVQ0F8/ref=sr_1_3?dchild=1=usb+sound=1588065420=8-3
> Hi Peter,
> 
> not long ago I had fallen over a very similiar effect.
> What cured the problem here was to reboot into the BIOS and  to
> disable the AUDIO device.
> 
> Cheers!
> Meino

Or, if you need to use all 3, or in this case 2 working devices use /etc/
asound.conf to set the preferred default card without altering BIOS settings:

defaults.pcm.card 2;
defaults.ctl.card 2;

As per wiki page, FF may also need specifying 'rate 48000' for alsa to 
resample FF's output when feeding it to the card.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] USB sound

2020-04-28 Thread tuxic
On 04/28 10:43, Peter Humphrey wrote:
> Morning all,
> 
> The motherboard sound chip failed, so I bought a USB sound adapter [1].
> Problem: no sound: firefox says it isn't working and KDE sounds don't 
> 'appear'.
> I have all the likely-looking options set in the kernel (5.4.28), modules
> where possible. I've read the Gentoo wiki articles on USB and audio, but they
> didn't offer any help.
> 
> The device uses USB-2 and I have it in a USB-2 socket. I get this on plugging 
> it in:
> 
> $ dmesg -Hw
> [Apr28 09:49] usb 3-13: new full-speed USB device number 17 using xhci_hcd
> [  +0.127080] usb 3-13: New USB device found, idVendor=0d8c, idProduct=0014, 
> bcdDevice= 1.00
> [  +0.02] usb 3-13: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=0
> [  +0.02] usb 3-13: Product: USB Audio Device
> [  +0.01] usb 3-13: Manufacturer: C-Media Electronics Inc.
> [  +0.007851] input: C-Media Electronics Inc. USB Audio Device as 
> /devices/pci:00/:00:14.0/usb3/3-13/3-13:1.3/0003:0D8C:0014.000D/input/input20
> [  +0.051184] hid-generic 0003:0D8C:0014.000D: input,hidraw4: USB HID v1.00 
> Device [C-Media Electronics Inc. USB Audio Device] on 
> usb-:00:14.0-13/input3
> 
> Some more diagnostics:
> 
> # aplay -l
>  List of PLAYBACK Hardware Devices 
> card 0: HDMI [HDA ATI HDMI], device 3: Generic Digital [Generic Digital]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> # arecord -l
>  List of CAPTURE Hardware Devices 
> card 1: USB [HD Webcam USB], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> # lsusb -t | grep -i audio
> |__ Port 6: Dev 3, If 2, Class=Audio, Driver=snd-usb-audio, 480M
> |__ Port 6: Dev 3, If 3, Class=Audio, Driver=snd-usb-audio, 480M
> |__ Port 13: Dev 17, If 0, Class=Audio, Driver=snd-usb-audio, 12M
> |__ Port 13: Dev 17, If 1, Class=Audio, Driver=snd-usb-audio, 12M
> |__ Port 13: Dev 17, If 2, Class=Audio, Driver=snd-usb-audio, 12M
> 
> # lsmod | grep snd
> snd_usb_audio 233472  0
> snd_hwdep  16384  1 snd_usb_audio
> snd_usbmidi_lib28672  1 snd_usb_audio
> snd_rawmidi32768  1 snd_usbmidi_lib
> snd_seq_device 16384  1 snd_rawmidi
> mc 40960  4 
> videodev,snd_usb_audio,videobuf2_v4l2,videobuf2_common
> snd_hda_codec_generic77824  1
> snd_hda_intel  28672  0
> snd_intel_nhlt 16384  1 snd_hda_intel
> snd_hda_codec 122880  2 snd_hda_codec_generic,snd_hda_intel
> snd_hda_core   73728  3 
> snd_hda_codec_generic,snd_hda_intel,snd_hda_codec
> snd_pcm98304  4 
> snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core
> snd_timer  32768  1 snd_pcm
> snd81920  10 
> snd_hda_codec_generic,snd_seq_device,snd_hwdep,snd_hda_i>
> soundcore  16384  1 snd
> 
> Why those Intel modules? The built-in Intel device is switched off in the 
> BIOS.
> 
> Can anyone point me in the right direction?
> 
> 1.  The device is a 'Sabrent USB External Stereo Sound Adapter'; The blurb at 
> amazon.co.uk includes Linux in its list of OSes. I bought it via 
> https://smile.amazon.co.uk/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B00IRVQ0F8/ref=sr_1_3?dchild=1=usb+sound=1588065420=8-3
> 
> -- 
> Regards,
> Peter.
> 
> 
> 
> 


Hi Peter,

not long ago I had fallen over a very similiar effect.
What cured the problem here was to reboot into the BIOS and  to 
disable the AUDIO device.

Cheers!
Meino





Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-25 Thread edes


el 2020-01-23 a las 13:59 Mick escribió:

> The way I went about it was to comment out the offending lines in these
> files and recompile the kernel.  It is a bit of pain, since I have to
> perform this manual editing with each kernel so far.
> 
> You could try to comment out the lines which break your card for now and
> see if this fixes the problem.

This option might be a bit over my head, since I don't know C/C++, and the
changes between 5.4.10 and 5.4.11 in drivers/usb/core/config.c have been
important:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/usb/core/config.c?id=v5.4.11=v5.4.10

Not to mention further changes in the following kernels.

I might try to keep the old version of the file and see what happens, but
I'm not sure of the consequences.


> I would start with BGO in the first instance:
> 
> https://bugs.gentoo.org/
> 
> providing info on the affected hardware, the errors you've identified
> and the files you suspect containing the changes in the code.

Will do, although this is a problem in the linux kernel and not specific
to gentoo.

Thanks for your help.


--



Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-23 Thread Wols Lists
On 23/01/20 13:59, Mick wrote:
>> Where can I post this problem? I've been using Linux for 20 years, but
>> > this is my first problem with the kernel. I found these forums:
>> > 
>> > https://forum.linuxfoundation.org/categories/drivers
>> > https://www.linuxquestions.org/questions/linux-kernel-70/
>> > 
>> > And of course the kernel mailing list, but seems to be for developers.
> I would start with BGO in the first instance:
> 
> https://bugs.gentoo.org/
> 
> providing info on the affected hardware, the errors you've identified and the 
> files you suspect containing the changes in the code.

Look in the kernel for the maintainers file, and see if you can see who
is responsible for the code.

Given that the drivers have stopped working, this is a regression, and
it's actually quite a serious bug (or at least, seen as such).

If you know who it is - or especially if it's a mailing list! - try
pinging them, with a diff of the changes you had to make to get it working.

IFF you get a response from that, then there's hopefully a good chance
you'll get asked to help fix it, and the problem will go away :-)

Cheers,
Wol




Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-23 Thread Mick
On Thursday, 23 January 2020 13:50:59 GMT edes wrote:
> el 2020-01-19 a las 16:49 Mick escribió:
> > You could compare the dmesg output of working and non-working kernels
> > and see what differences are present, then google for bugs/solutions on
> > that basis.
> 
> [...]
> 
> > You could also diff the two different kernel tree versions and see what
> > drivers have changed.
> 
> Hello, thanks for your suggestions.
> 
> I'm not a programmer and I know nothing about C or kernel development, but
> I found that, beginning with 5.4.11, several changes were introduced in
> drivers/usb/core/config.c, that seem to be consistent with the message
> that appears now when I connect my card:
> 
> [  129.153850] usb 3-10.3: config 1 interface 2 altsetting 1 has a
> duplicate endpoint with address 0x85, skipping
> [  129.153854] usb 3-10.3: config 1 interface 2 altsetting 2 has a
> duplicate endpoint with address 0x85, skipping

I've suffered from a similar problem, changes in a number of files in some 
previous version stopped my WiFi NIC from working and pegged the CPU to 100%.  
The way I went about it was to comment out the offending lines in these files 
and recompile the kernel.  It is a bit of pain, since I have to perform this 
manual editing with each kernel so far.

You could try to comment out the lines which break your card for now and see 
if this fixes the problem.


> Where can I post this problem? I've been using Linux for 20 years, but
> this is my first problem with the kernel. I found these forums:
> 
> https://forum.linuxfoundation.org/categories/drivers
> https://www.linuxquestions.org/questions/linux-kernel-70/
> 
> And of course the kernel mailing list, but seems to be for developers.

I would start with BGO in the first instance:

https://bugs.gentoo.org/

providing info on the affected hardware, the errors you've identified and the 
files you suspect containing the changes in the code.
-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-23 Thread edes


el 2020-01-19 a las 16:49 Mick escribió:

> You could compare the dmesg output of working and non-working kernels
> and see what differences are present, then google for bugs/solutions on
> that basis.

[...]
 
> You could also diff the two different kernel tree versions and see what 
> drivers have changed.

Hello, thanks for your suggestions. 

I'm not a programmer and I know nothing about C or kernel development, but
I found that, beginning with 5.4.11, several changes were introduced in
drivers/usb/core/config.c, that seem to be consistent with the message
that appears now when I connect my card:

[  129.153850] usb 3-10.3: config 1 interface 2 altsetting 1 has a
duplicate endpoint with address 0x85, skipping
[  129.153854] usb 3-10.3: config 1 interface 2 altsetting 2 has a
duplicate endpoint with address 0x85, skipping

Where can I post this problem? I've been using Linux for 20 years, but
this is my first problem with the kernel. I found these forums:

https://forum.linuxfoundation.org/categories/drivers
https://www.linuxquestions.org/questions/linux-kernel-70/

And of course the kernel mailing list, but seems to be for developers.


-



Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-19 Thread Mick
On Sunday, 19 January 2020 15:02:36 GMT edes wrote:
> el 2020-01-18 a las 12:58 edes escribió:
> > But now for some reason it works as playback device, but is not
> > recognized as capture device.
> 
> I kept investigating, and all the evidence points to a kernel problem
> (gentoo-sources).
> 
> I tried several versions, everything works fine with kernels up to 5.4.10,
> problems appear with 5.4.11, 12 and 13. Same results on two different
> machines with two different cards (same model).
> 
> It seems that some changes were introduced in 5.4.11 that affect USB
> audio. This only affects my Sound Devices USPre2 cards, I tried with a
> cheap card, and it continues to work normally with all kernels.
> 
> Where should I report this problem and who could help?
> 
> Thanks.
> 
> 
> --

You could compare the dmesg output of working and non-working kernels and see 
what differences are present, then google for bugs/solutions on that basis.

You could also diff the two different kernel tree versions and see what 
drivers have changed.  Also, check the kernel git repo to see what the 
changelog reports, which could narrow down the diff'ed files:

https://github.com/torvalds/linux

You could post a bug in BGO, but the devs may ask you to enable/undertake 
kernel debugging, which is not a 5 minute job and/or use vanilla kernel 
sources and report it upstream, depending on how rare this problem is and if 
they have been bitten by the same bug themselves.

https://wiki.gentoo.org/wiki/Kernel_Crash_Dumps
https://www.oreilly.com/library/view/linux-device-drivers/0596005903/ch04.html

-- 
Regards,

Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] USB sound card not recognized as capture device

2020-01-19 Thread edes


el 2020-01-18 a las 12:58 edes escribió:

> But now for some reason it works as playback device, but is not
> recognized as capture device.

I kept investigating, and all the evidence points to a kernel problem
(gentoo-sources).

I tried several versions, everything works fine with kernels up to 5.4.10,
problems appear with 5.4.11, 12 and 13. Same results on two different
machines with two different cards (same model).

It seems that some changes were introduced in 5.4.11 that affect USB
audio. This only affects my Sound Devices USPre2 cards, I tried with a
cheap card, and it continues to work normally with all kernels.

Where should I report this problem and who could help?

Thanks.


--



Re: [gentoo-user] Usb sound and ALSA

2006-10-31 Thread Christoph Eckert

 Any clue? Thank you,

your device identifies itself to the kernel as human input device (HID). 
Many manufacturers seem to like to make their devices to behave like 
this.

On ALSA, the module snd_usb_audio is responsible to drive your card. But 
as it already works, it seems to be loaded.

Then (as others suggested) there are some applications which allow you 
to select the device to use (see the xmms preferences for an example). 
Use cat /proc/asound/cards to see which cards are present on your 
system.

To make the USB card the default device, create an .asoundrc file as 
suggested by Richard.

As I'm using various USB cards (MIDI controllers and the like), I 
adjusted /etc/modules.d/alsa to force the same numbering at every 
system boot. Looks like:

options snd device_mode=0666

options snd cards_limit=8
alias snd-card-0 snd-intel8x0
alias sound-slot-0 snd-intel8x0
alias snd-card-1 snd-intel8x0m
alias snd-card-2 snd-usb-audio
alias snd-card-3 snd-usb-audio
alias snd-card-4 snd-usb-audio
alias snd-card-5 snd-usb-audio
alias snd-card-6 snd-usb-audio
# alias snd-card-7 snd-virmidi

options snd-intel8x0 index=0
options snd-intel8x0m index=1
options snd-usb-audio index=2,3,4,5,6 
vid=0x0582,0x0763,0x0763,0x0582,0x0ccd   
pid=0x0074,0x1033,0x0117,0x0009,0x0028 nrpacks=1

Didn't try it, but maybe the above block can be used to make the USB 
card the card at position 0 (=default card) and to move the internal 
card to 1.

HTH,

ce

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Usb sound and ALSA

2006-10-30 Thread Richard Fish

On 10/30/06, Leandro Melo de Sales [EMAIL PROTECTED] wrote:

Hi list...

   I have an usb sound system from Gradiente company (an eletronic
device factory) and I plugged it on my system. dmesg command shows
this:

input: Gradiente AS-M5X0 as /class/input/input3
input: USB HID v1.00 Device [Gradiente AS-M5X0] on usb-:00:1d.1-1

   But when I play a mp3 media the sound is not forwarded to my usb
device, instand, the sound is still played through my integrated
laptop device.
   On windows I use it without problem. So, what do I have to do to
forward the sound to my usb device?


Probably windows is disabling any existing sound card or at least
making the USB the default sound device.  Unfortunately there is no
equivalent with alsa currently.

So assuming that you've got the alsa drivers loaded for this device
(/proc/asound/cards should contain two entries), you can usually
specify alsa device as hw1,0.  The exact method for doing this
depends on what app you are using.  For example on amarok with the
xine it is under Configure Amarok... - Engine - ALSA Device
Configuration.  If you enter hw1,0 for Stereo there, then 2 channel
audio should be played on the first pcm of the second sound card.

You should also be able to do this with a .asoundrc file, with an entry like:

pcm.default {
   type hw
   card 1
   device 1
}

The above is really primitive, without any dmix plugin (software
mixing), so only one app could use the device at a time unless it does
hardware mixing.  Mostly this is just to give you an idea of where to
look! ;-)

-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Usb sound and ALSA

2006-10-30 Thread Leandro Melo de Sales

Hi... The device is configured and I type cat xxx  /dev/sound/dsp1
and I got an strange sound, but this prove that the device was
recognized by the kernel. I also can control volume of the second
audio device through alsamixer. The question is: how can I specify (on
alsa) that the default device is /dev/sound/dsp1 or something like
that?
  I tried to do what you said on Amarok, but the Alsa Device
Configuration section is disabled, why?

[]s
Leandro.

2006/10/31, Richard Fish [EMAIL PROTECTED]:

On 10/30/06, Leandro Melo de Sales [EMAIL PROTECTED] wrote:
 Hi list...

I have an usb sound system from Gradiente company (an eletronic
 device factory) and I plugged it on my system. dmesg command shows
 this:

 input: Gradiente AS-M5X0 as /class/input/input3
 input: USB HID v1.00 Device [Gradiente AS-M5X0] on usb-:00:1d.1-1

But when I play a mp3 media the sound is not forwarded to my usb
 device, instand, the sound is still played through my integrated
 laptop device.
On windows I use it without problem. So, what do I have to do to
 forward the sound to my usb device?

Probably windows is disabling any existing sound card or at least
making the USB the default sound device.  Unfortunately there is no
equivalent with alsa currently.

So assuming that you've got the alsa drivers loaded for this device
(/proc/asound/cards should contain two entries), you can usually
specify alsa device as hw1,0.  The exact method for doing this
depends on what app you are using.  For example on amarok with the
xine it is under Configure Amarok... - Engine - ALSA Device
Configuration.  If you enter hw1,0 for Stereo there, then 2 channel
audio should be played on the first pcm of the second sound card.

You should also be able to do this with a .asoundrc file, with an entry like:

pcm.default {
type hw
card 1
device 1
}

The above is really primitive, without any dmix plugin (software
mixing), so only one app could use the device at a time unless it does
hardware mixing.  Mostly this is just to give you an idea of where to
look! ;-)

-Richard
--
gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Usb sound and ALSA

2006-10-30 Thread Leandro Melo de Sales

Hi,

After I click on Apply button the Alsa Device Configuration section
become enabled, but when I specify hw1,0 in Stereo text field and play
a song amarok shows the message: Audio output unavailable; the device
is busy..

/proc/asound/ # ls
ASM5X0  Modem  card1  cardshwdeposs  seq version
ICH6card0  card2  devices  modules  pcm  timers

the file ASM5X0 is a symbolic link to card2.

/proc/asound/ # cat cards
0 [ICH6   ]: ICH4 - Intel ICH6
 Intel ICH6 with unknown codec at 0xc8000800, irq 18
1 [Modem  ]: ICH-MODEM - Intel ICH6 Modem
 Intel ICH6 Modem at 0x3400, irq 18
2 [ASM5X0 ]: USB-Audio - AS-M5X0
 Gradiente AS-M5X0 at usb-:00:1d.1-1, full speed

I also tried to specify hw2,0 but the message is the same, device is busy! :(

But a good news is that if I do:

mpg123 -a /dev/sound/dsp1 music.mp3

... the file is played on my usb device perfectly!!! So, this is the
proof that kernel recognize the device and I just don't know how
switch alsa default device do /dev/sound/dsp1.

Any clue? Thank you,

Leandro.

2006/10/31, Leandro Melo de Sales [EMAIL PROTECTED]:

Hi... The device is configured and I type cat xxx  /dev/sound/dsp1
and I got an strange sound, but this prove that the device was
recognized by the kernel. I also can control volume of the second
audio device through alsamixer. The question is: how can I specify (on
alsa) that the default device is /dev/sound/dsp1 or something like
that?
   I tried to do what you said on Amarok, but the Alsa Device
Configuration section is disabled, why?

[]s
Leandro.

2006/10/31, Richard Fish [EMAIL PROTECTED]:
 On 10/30/06, Leandro Melo de Sales [EMAIL PROTECTED] wrote:
  Hi list...
 
 I have an usb sound system from Gradiente company (an eletronic
  device factory) and I plugged it on my system. dmesg command shows
  this:
 
  input: Gradiente AS-M5X0 as /class/input/input3
  input: USB HID v1.00 Device [Gradiente AS-M5X0] on usb-:00:1d.1-1
 
 But when I play a mp3 media the sound is not forwarded to my usb
  device, instand, the sound is still played through my integrated
  laptop device.
 On windows I use it without problem. So, what do I have to do to
  forward the sound to my usb device?

 Probably windows is disabling any existing sound card or at least
 making the USB the default sound device.  Unfortunately there is no
 equivalent with alsa currently.

 So assuming that you've got the alsa drivers loaded for this device
 (/proc/asound/cards should contain two entries), you can usually
 specify alsa device as hw1,0.  The exact method for doing this
 depends on what app you are using.  For example on amarok with the
 xine it is under Configure Amarok... - Engine - ALSA Device
 Configuration.  If you enter hw1,0 for Stereo there, then 2 channel
 audio should be played on the first pcm of the second sound card.

 You should also be able to do this with a .asoundrc file, with an entry like:

 pcm.default {
 type hw
 card 1
 device 1
 }

 The above is really primitive, without any dmix plugin (software
 mixing), so only one app could use the device at a time unless it does
 hardware mixing.  Mostly this is just to give you an idea of where to
 look! ;-)

 -Richard
 --
 gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list