On Sunday, 14 January 2018 17:51:51 GMT Terry Coles wrote:
> On Sunday, 14 January 2018 17:40:14 GMT Andrew wrote:
> > The IDs in lsusb won't help, they are the vendor ID and device ID for
> > that type of card, not that instance in your machine.
> 
> They would if I could tie the ID to the hw: channel in aplay, because I know
> which ID is plugged into the tower and which into the nave.
> 
> That's what I've been unable to do.
> 
> > It looks like aplay -D can use the whole device string, eg.
> > "plughw:CARD=Device,DEV=0" but mpg123 can't...
> > 
> > I've done some more experimenting and I can see how to do it... I think...
> > First list devices with 'aplay -l' (lowercase). On here I get this:
> > 
> > card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
> > 
> >    Subdevices: 1/1
> >    Subdevice #0: subdevice #0
> > 
> > card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
> > 
> >    Subdevices: 1/1
> >    Subdevice #0: subdevice #0
> > 
> > card 2: Device [USB Sound Device], device 0: USB Audio [USB Audio]
> > 
> >    Subdevices: 1/1
> >    Subdevice #0: subdevice #0
> > 
> > There's three cards here, and each has one device.
> > The middle one (HDMI), is card 1, device 3. I can play through that with:
> > mpg123 -o alsa -a hw:1,3 /path/to/audio
> > 
> > Or if I want the USB device:
> > mpg123 -o alsa -a hw:2,0 /path/to/audio
> > 
> > If I wanted the internal card that would be hw:0,0, but there's nothing
> > plugged in to it right now... :)
> 
> Yes.  I understand that.  I posted my version of aplay -l at the Raspberry
> Pi Forum, but here it is again:
> 
> terry@OptiPlex:~$ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 0: PCH [HDA Intel PCH], device 0: ALC269VB Analog [ALC269VB Analog]
>   Subdevices: 0/1
>   Subdevice #0: subdevice #0
> card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 3: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 4: Device_1 [USB PnP Sound Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> and here is what I got just now, with the same adaptors plugged into the
> same USB ports:
> 
> *terry@OptiPlex*:*~*$ aplay -l
Oops the thing didn't go through properly.  Here is the latest one again.

*terry@OptiPlex*:*~*$ aplay -l 


-- 



                Terry Coles
-- 
Next meeting:  Bournemouth, Tuesday, 2018-01-09 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to