[Alsa-user] Multi and Format

2016-12-06 Thread Ed Stark
We are designing a new USB sound card that combines analogue and digital 
outputs using the USB 2.0 audio driver. 

The incoming audio stream can be 32bit 44.1 to 192

To combine the analogue and the digital I am using a multi, but cannot specify 
different formats for the slaves when using a multi. Ideally I want to set the 
analogue at 32bit and force the digital to 24bit

This all seems to be working ok without the format being specified, however I 
would like to know if anyone knows a way to fix the format for each output when 
using a multi? 

Any suggestions would be greatly appreciated.


#/etc/asound.conf

pcm.player1 {
type softvol
slave.pcm "player1v"
control.name "p1.m"
control.card 0
resolution   2
}

pcm.player1v {
type softvol
slave {
pcm "player1mix"
}
control {
name "p1.v"
card  0
}
}

pcm.player1mix {
type plug
slave.pcm {
type multi
slaves {
a { pcm "analog1r" channels 2 }
b { pcm "digital1r" channels 2 }
}
bindings [
{ slave a channel 0 }
{ slave a channel 1 }
{ slave b channel 0 }
{ slave b channel 1 }
]
}
ttable [
[ 1 0 1 0 ]
[ 0 1 0 1 ]
]
}

pcm.analog1r {
type rate
slave analog1s
}

pcm_slave.analog1s {
pcm "hw:0,0"
rate 48000
}

pcm.digital1r {
type rate
slave digital1s
}

pcm_slave.digital1s {
 pcm "hw:0,1"
 rate 192000
}





Ed Stark--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Hotone Ravo USB audio

2016-12-06 Thread Dimitris Damigos
Bus 005 Device 002: ID 0416:0002 Winbond Electronics Corp.
Couldn't open device, some information will be missing
Device Descriptor:
 bLength18
 bDescriptorType 1
 bcdUSB   2.00
 bDeviceClass0
 bDeviceSubClass 0
 bDeviceProtocol 0
 bMaxPacketSize0 8
 idVendor   0x0416 Winbond Electronics Corp.
 idProduct  0x0002
 bcdDevice1.13
 iManufacturer   1
 iProduct2
 iSerial 0
 bNumConfigurations  1
 Configuration Descriptor:
   bLength 9
   bDescriptorType 2
   wTotalLength  286
   bNumInterfaces  5
   bConfigurationValue 1
   iConfiguration  0
   bmAttributes 0xc0
 Self Powered
   MaxPower   64mA
   Interface Descriptor:
 bLength 9
 bDescriptorType 4
 bInterfaceNumber0
 bAlternateSetting   0
 bNumEndpoints   0
 bInterfaceClass 1 Audio
 bInterfaceSubClass  1 Control Device
 bInterfaceProtocol  0
 iInterface  3
 AudioControl Interface Descriptor:
   bLength10
   bDescriptorType36
   bDescriptorSubtype  1 (HEADER)
   bcdADC   1.00
   wTotalLength   72
   bInCollection   2
   baInterfaceNr( 0)   1
   baInterfaceNr( 1)   2
 AudioControl Interface Descriptor:
   bLength12
   bDescriptorType36
   bDescriptorSubtype  2 (INPUT_TERMINAL)
   bTerminalID 1
   wTerminalType  0x0101 USB Streaming
   bAssocTerminal  0
   bNrChannels 2
   wChannelConfig 0x0003
 Left Front (L)
 Right Front (R)
   iChannelNames   0
   iTerminal   0
 AudioControl Interface Descriptor:
   bLength 9
   bDescriptorType36
   bDescriptorSubtype  3 (OUTPUT_TERMINAL)
   bTerminalID 2
   wTerminalType  0x0101 USB Streaming
   bAssocTerminal  0
   bSourceID   5
   iTerminal   0
 AudioControl Interface Descriptor:
   bLength10
   bDescriptorType36
   bDescriptorSubtype  6 (FEATURE_UNIT)
   bUnitID 5
   bSourceID   4
   bControlSize1
   bmaControls( 0)  0x01
 Mute Control
   bmaControls( 1)  0x02
 Volume Control
   bmaControls( 2)  0x02
 Volume Control
   iFeature0
 AudioControl Interface Descriptor:
   bLength10
   bDescriptorType36
   bDescriptorSubtype  6 (FEATURE_UNIT)
   bUnitID 6
   bSourceID   1
   bControlSize1
   bmaControls( 0)  0x01
 Mute Control
   bmaControls( 1)  0x02
 Volume Control
   bmaControls( 2)  0x02
 Volume Control
   iFeature0
 AudioControl Interface Descriptor:
   bLength 9
   bDescriptorType36
   bDescriptorSubtype  3 (OUTPUT_TERMINAL)
   bTerminalID 3
   wTerminalType  0x0301 Speaker
   bAssocTerminal  0
   bSourceID   6
   iTerminal   0
 AudioControl Interface Descriptor:
   bLength12
   bDescriptorType36
   bDescriptorSubtype  2 (INPUT_TERMINAL)
   bTerminalID 4
   wTerminalType  0x0201 Microphone
   bAssocTerminal  0
   bNrChannels 2
   wChannelConfig 0x0003
 Left Front (L)
 Right Front (R)
   iChannelNames   0
   iTerminal   0
   Interface Descriptor:
 bLength 9
 bDescriptorType 4
 bInterfaceNumber1
 bAlternateSetting   0
 bNumEndpoints   0
 bInterfaceClass 1 Audio
 bInterfaceSubClass  2 Streaming
 bInterfaceProtocol  0
 iInterface  0
   Interface Descriptor:
 bLength 9
 bDescriptorType 4
 bInterfaceNumber1
 bAlternateSetting   1
 bNumEndpoints   1
 bInterfaceClass 1 Audio
 bInterfaceSubClass  2 Streaming
 bInterfaceProtocol  0
 iInterface  0
 AudioStreaming Interface Descriptor:
   bLength 7
   bDescriptorType36
   bDescriptorSubtype  1 (AS_GENERAL)
   bTerminalLink   2
   bDelay  1 frames
   wFormatTag  1 PCM
 AudioStreaming Interface Descriptor:
   bLength11
   bDescriptorType36
   bDescriptorSubtype  2 (FORMAT_TYPE)