usb-audio: Reloop Play support (TI TUSB3200AC)
Hello,
I've bought a Reloop Play usb soundcard and I'd like to make it work with ALSA.
It is a 4-channels USB soundcard. It is currently correctly recognized by ALSA as a 4-channels soundcard and I can correctly open the channels and feed them with audio. However, no audio is output by the box.
It seems to contain a Texas Instrument TUSB3200AC chipset (same chipset as the Maya44 USB and Hercules DJ console). I guess the problem is a firmware problem but I don't know what to do about it.
I've got a MacOS X driver that works correctly, if that of any help. (I suppose the Windows driver works too but I don't have any Windows at hand.)
I'm willing to do whatever you need me to make it run with ALSA. Could you help me ?
I attached my alsa-info.sh output.
Didier Villevalois.
!!################################
!!ALSA Information Script v 0.4.61
!!################################
!!Script ran on: Tue Oct 16 08:45:03 UTC 2012
!!Linux Distribution
!!------------------
Ubuntu 12.10 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 12.10" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu quantal (12.10)"
!!DMI Information
!!---------------
Manufacturer: Apple Inc. Product Name: MacBookPro8,3 Product Version: 1.0 Firmware Version: MBP81.88Z.0047.B24.1110141131
!!Kernel Information
!!------------------
Kernel release: 3.5.4-mbp83 Operating System: GNU/Linux Architecture: x86_64 Processor: x86_64 SMP Enabled: Yes
!!ALSA Version
!!------------
Driver version: 1.0.25 Library version: 1.0.25 Utilities version: 1.0.25
!!Loaded ALSA modules
!!-------------------
snd_hda_intelsnd_usb_audio
!!Sound Servers on this system
!!----------------------------
Pulseaudio:
Installed - Yes (/usr/bin/pulseaudio)
Running - Yes
!!Soundcards recognised by ALSA
!!-----------------------------
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xb0900000 irq 48
1 [PLAY ]: USB-Audio - RELOOP PLAY
RELOOP RELOOP PLAY at usb-0000:00:1d.7-1.2, full speed!!PCI Soundcards installed in the system
!!--------------------------------------
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
!!Advanced information - PCI Vendor/Device/Subsystem ID's !!-------------------------------------------------------
00:1b.0 0403: 8086:1c20 (rev 05)
Subsystem: 8086:7270
!!Modprobe options (Sound related)
!!--------------------------------
snd-atiixp-modem: index=-2
snd-intel8x0m: index=-2
snd-via82xx-modem: index=-2
snd-usb-audio: index=-2
snd-usb-caiaq: index=-2
snd-usb-ua101: index=-2
snd-usb-us122l: index=-2
snd-usb-usx2y: index=-2
snd-cmipci: mpu_port=0x330 fm_port=0x388
snd-pcsp: index=-2
snd-usb-audio: index=-2
!!Loaded sound module options
!!---------------------------
!!Module: snd_hda_intel
align_buffer_size : -1 bdl_pos_adj : 1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y enable_msi : -1 id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null) index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null) position_fix : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 power_save : 0 power_save_controller : Y probe_mask : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 probe_only : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 single_cmd : N snoop : Y
!!Module: snd_usb_audio
async_unlink : Y device_setup : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null) ignore_ctl_error : N index : -2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 nrpacks : 8 pid : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 vid : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
!!HDA-Intel Codec information
!!---------------------------
--startcollapse--
Codec: Cirrus Logic CS4206
Address: 0
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x10134206
Subsystem Id: 0x106b2700
Revision Id: 0x100302
No Modem Function Group found
Default PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x3]: PCM FLOATDefault Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=4, o=0, i=0, unsolicited=0, wake=0
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[1]: enable=1, dir=1, wake=0, sticky=0, data=0, unsol=0 IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0 IO[3]: enable=1, dir=1, wake=0, sticky=0, data=1, unsol=0
Node 0x02 [Audio Output] wcaps 0xd041d: Stereo Amp-Out
Control: name="Master Playback Switch", index=0, device=0
Control: name="Master Playback Volume", index=0, device=0
Control: name="Headphone Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Headphone Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x73, nsteps=0x7f, stepsize=0x01, mute=1
Amp-Out vals: [0x4b 0x4b]
Converter: stream=8, channel=0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x3]: PCM FLOAT Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x03 [Audio Output] wcaps 0xd041d: Stereo Amp-Out
Control: name="Surround Speaker Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Surround Speaker Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x73, nsteps=0x7f, stepsize=0x01, mute=1
Amp-Out vals: [0x4b 0x4b]
Converter: stream=8, channel=0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x3]: PCM FLOAT Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x04 [Audio Output] wcaps 0xd041d: Stereo Amp-Out
Control: name="Front Speaker Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Front Speaker Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Device: name="Cirrus Analog", type="Audio", device=0
Amp-Out caps: ofs=0x73, nsteps=0x7f, stepsize=0x01, mute=1
Amp-Out vals: [0x4b 0x4b]
Converter: stream=8, channel=0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x3]: PCM FLOAT Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 13 samples
Node 0x05 [Audio Input] wcaps 0x18051b: Stereo Amp-In
Control: name="Capture Switch", index=0, device=0
Control: name="Capture Volume", index=0, device=0
Device: name="Cirrus Analog", type="Audio", device=0 Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1 Amp-In vals: [0x01 0x01] [0x01 0x01]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
bits [0x1e]: 16 20 24 32
formats [0x3]: PCM FLOAT
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 8 samples
Connection: 2
0x0c* 0x12Node 0x06 [Audio Input] wcaps 0x18051b: Stereo Amp-In
Control: name="Capture Switch", index=0, device=0
Control: name="Capture Volume", index=0, device=0 Amp-In caps: ofs=0x33, nsteps=0x3f, stepsize=0x03, mute=1 Amp-In vals: [0x01 0x01] [0x01 0x01]
Converter: stream=4, channel=0
SDI-Select: 0
PCM:
rates [0x1f5]: 8000 16000 32000 44100 48000 88200 96000
bits [0x1e]: 16 20 24 32
formats [0x3]: PCM FLOAT
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 8 samples
Connection: 2
0x0d* 0x0eNode 0x07 [Audio Input] wcaps 0x180791: Stereo Digital
Control: name="IEC958 Capture Switch", index=0, device=0
Control: name="IEC958 Capture Default", index=0, device=0
Device: name="Cirrus Digital", type="SPDIF", device=1
Converter: stream=0, channel=0
SDI-Select: 0
Digital: Preemphasis Non-Copyright
Digital category: 0x0
PCM:
rates [0x570]: 32000 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x7]: PCM FLOAT AC3
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 8 samples
Connection: 1
0x0fNode 0x08 [Audio Output] wcaps 0x40611: Stereo Digital
Control: name="IEC958 Playback Con Mask", index=0, device=0
Control: name="IEC958 Playback Pro Mask", index=0, device=0
Control: name="IEC958 Playback Default", index=0, device=0
Control: name="IEC958 Playback Switch", index=0, device=0
Control: name="IEC958 Default PCM Playback Switch", index=0, device=0
Device: name="Cirrus Digital", type="SPDIF", device=1
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x7]: PCM FLOAT AC3 Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 4 samples
Node 0x09 [Pin Complex] wcaps 0x410581: Stereo
Control: name="Headphone Jack", index=0, device=0 Pincap 0x0000001c: OUT HP Detect
Pin Default 0x002b4050: [Jack] HP Out at Ext N/A
Conn = Comb, Color = Green DefAssociation = 0x5, Sequence = 0x0
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=01, enabled=1
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 1 samples
Connection: 1
0x02
Node 0x0a [Pin Complex] wcaps 0x410581: Stereo
Pincap 0x00000054: OUT Detect Balanced
Pin Default 0x90100141: [Fixed] Speaker at Int N/A
Conn = Unknown, Color = Unknown DefAssociation = 0x4, Sequence = 0x1 Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 1 samples
Connection: 1
0x03
Node 0x0b [Pin Complex] wcaps 0x410101: Stereo
Pincap 0x00000050: OUT Balanced
Pin Default 0x90100140: [Fixed] Speaker at Int N/A
Conn = Unknown, Color = Unknown DefAssociation = 0x4, Sequence = 0x0 Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Delay: 1 samples
Connection: 1
0x04
Node 0x0c [Pin Complex] wcaps 0x41048b: Stereo Amp-In
Control: name="Line Capture Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0 Control: name="Line Jack", index=0, device=0 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Pincap 0x00000024: IN Detect
Pin Default 0x008b3020: [Jack] Line In at Ext N/A
Conn = Comb, Color = Blue
DefAssociation = 0x2, Sequence = 0x0
Pin-ctls: 0x20: IN
Unsolicited: tag=03, enabled=1
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 1 samples
Node 0x0d [Pin Complex] wcaps 0x41048b: Stereo Amp-In
Control: name="Mic Capture Volume", index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Control: name="Mic Phantom Jack", index=0, device=0 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Pincap 0x00001764: IN Detect Balanced
Vref caps: HIZ 50 GRD 80
Pin Default 0x90a00110: [Fixed] Mic at Int N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 1 samples
Node 0x0e [Pin Complex] wcaps 0x41000b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x00:
Delay: 1 samples
Node 0x0f [Pin Complex] wcaps 0x410681: Stereo Digital
Control: name="SPDIF In Jack", index=0, device=0 Pincap 0x00000024: IN Detect
Pin Default 0x00cbe030: [Jack] SPDIF In at Ext N/A
Conn = Comb, Color = White
DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=05, enabled=1
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 1 samples
Node 0x10 [Pin Complex] wcaps 0x410301: Stereo Digital
Control: name="SPDIF Phantom Jack", index=0, device=0 Pincap 0x00000010: OUT
Pin Default 0x004be060: [Jack] SPDIF Out at Ext N/A
Conn = Comb, Color = White
DefAssociation = 0x6, Sequence = 0x0
Pin-ctls: 0x00:
Delay: 1 samples
Connection: 1
0x08
Node 0x11 [Vendor Defined Widget] wcaps 0xf00040: Mono
Processing caps: benign=0, ncoeff=22
Node 0x12 [Pin Complex] wcaps 0x41000b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x02, stepsize=0x27, mute=0 Amp-In vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x00:
Delay: 1 samples
Node 0x13 [Beep Generator Widget] wcaps 0x700000: Mono Node 0x14 [Audio Output] wcaps 0x40611: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1e]: 16 20 24 32
formats [0x7]: PCM FLOAT AC3 Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Delay: 4 samples
Node 0x15 [Pin Complex] wcaps 0x410301: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x400000f0: [N/A] Line Out at Ext N/A
Conn = Unknown, Color = Unknown DefAssociation = 0xf, Sequence = 0x0
Pin-ctls: 0x00:
Delay: 1 samples
Connection: 1
0x14
--endcollapse--
!!USB Mixer information
!!---------------------
--startcollapse--
USB Mixer: usb_id=0x200c100b, ctrlif=0, ctlerr=0
Card: RELOOP RELOOP PLAY at usb-0000:00:1d.7-1.2, full speed
Unit: 7
Control: name="Tone Control - Treble", index=0
Info: id=7, control=5, cmask=0x0, channels=1, type="S8"
Volume: min=0, max=96, dBmin=0, dBmax=37
Unit: 7
Control: name="Tone Control - Bass", index=0
Info: id=7, control=3, cmask=0x0, channels=1, type="S8"
Volume: min=0, max=96, dBmin=0, dBmax=37
Unit: 7
Control: name="Speaker Playback Volume", index=0
Info: id=7, control=2, cmask=0x3, channels=2, type="S16"
Volume: min=0, max=7936, dBmin=0, dBmax=3100
Unit: 7
Control: name="Speaker Playback Switch", index=0
Info: id=7, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
Volume: min=0, max=1, dBmin=0, dBmax=0--endcollapse--
!!ALSA Device nodes
!!-----------------
crw-rw---T 1 root audio 116, 7 Oct 16 08:56 /dev/snd/controlC0 crw-rw---T 1 root audio 116, 9 Oct 16 10:40 /dev/snd/controlC1 crw-rw---T 1 root audio 116, 6 Oct 16 08:56 /dev/snd/hwC0D0 crw-rw---T 1 root audio 116, 5 Oct 16 08:57 /dev/snd/pcmC0D0c crw-rw---T 1 root audio 116, 4 Oct 16 10:44 /dev/snd/pcmC0D0p crw-rw---T 1 root audio 116, 3 Oct 16 08:57 /dev/snd/pcmC0D1c crw-rw---T 1 root audio 116, 2 Oct 16 08:57 /dev/snd/pcmC0D1p crw-rw---T 1 root audio 116, 8 Oct 16 10:40 /dev/snd/pcmC1D0p crw-rw---T 1 root audio 116, 1 Oct 16 08:56 /dev/snd/seq crw-rw---T 1 root audio 116, 33 Oct 16 08:56 /dev/snd/timer
/dev/snd/by-id:
total 0
drwxr-xr-x 2 root root 60 Oct 16 10:40 .
drwxr-xr-x 4 root root 280 Oct 16 10:40 ..
lrwxrwxrwx 1 root root 12 Oct 16 10:40 usb-RELOOP_RELOOP_PLAY_Thames_YU-00 -> ../controlC1
/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root 80 Oct 16 10:40 .
drwxr-xr-x 4 root root 280 Oct 16 10:40 ..
lrwxrwxrwx 1 root root 12 Oct 16 08:56 pci-0000:00:1b.0 -> ../controlC0 lrwxrwxrwx 1 root root 12 Oct 16 10:40 pci-0000:00:1d.7-usb-0:1.2:1.0 -> ../controlC1
!!Aplay/Arecord output
!!--------------------
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: Cirrus Analog [Cirrus Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: Cirrus Digital [Cirrus Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PLAY [RELOOP PLAY], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: Cirrus Analog [Cirrus Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: Cirrus Digital [Cirrus Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [PCH]
Card hw:0 'PCH'/'HDA Intel PCH at 0xb0900000 irq 48'
Mixer name : 'Cirrus Logic CS4206'
Components : 'HDA:10134206,106b2700,00100302'
Controls : 27
Simple ctrls : 11
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum Playback channels: Mono
Limits: Playback 0 - 115
Mono: Playback 75 [65%] [-20.00dB] [on]
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 115
Mono:
Front Left: Playback 115 [100%] [0.00dB] [on]
Front Right: Playback 115 [100%] [0.00dB] [on]
Simple mixer control 'PCM',0
Capabilities: pvolume penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Mono:
Front Left: Playback 254 [100%] [0.20dB]
Front Right: Playback 254 [100%] [0.20dB]
Simple mixer control 'Front Speaker',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 115
Mono:
Front Left: Playback 115 [100%] [0.00dB] [on]
Front Right: Playback 115 [100%] [0.00dB] [on]
Simple mixer control 'Surround Speaker',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 115
Mono:
Front Left: Playback 115 [100%] [0.00dB] [on]
Front Right: Playback 115 [100%] [0.00dB] [on]
Simple mixer control 'Line',0
Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive penum Capture exclusive group: 0
Capture channels: Front Left - Front Right
Limits: Capture 0 - 3
Front Left: Capture 0 [0%] [0.00dB] [off]
Front Right: Capture 0 [0%] [0.00dB] [off]
Simple mixer control 'Mic',0
Capabilities: cvolume cswitch cswitch-joined cswitch-exclusive penum Capture exclusive group: 0
Capture channels: Front Left - Front Right
Limits: Capture 0 - 3
Front Left: Capture 0 [0%] [0.00dB] [on]
Front Right: Capture 0 [0%] [0.00dB] [on]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined penum Playback channels: Mono
Capture channels: Mono
Mono: Playback [off] Capture [off]
Simple mixer control 'IEC958 Default PCM',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 63
Front Left: Capture 1 [2%] [-50.00dB] [on]
Front Right: Capture 1 [2%] [-50.00dB] [on]
Simple mixer control 'Digital',0
Capabilities: cvolume penum
Capture channels: Front Left - Front Right
Limits: Capture 0 - 120
Front Left: Capture 60 [50%] [0.00dB]
Front Right: Capture 60 [50%] [0.00dB]
!!-------Mixer controls for card 1 [PLAY]
Card hw:1 'PLAY'/'RELOOP RELOOP PLAY at usb-0000:00:1d.7-1.2, full speed'
Mixer name : 'USB Mixer'
Components : 'USB200c:100b'
Controls : 4
Simple ctrls : 3
Simple mixer control 'Speaker',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 0 [0%] [0.00dB] [on]
Front Right: Playback 0 [0%] [0.00dB] [on]
Simple mixer control 'Bass',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 96
Mono: 48 [50%]
Simple mixer control 'Treble',0
Capabilities: volume volume-joined penum
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 96
Mono: 48 [50%]
!!Alsactl output
!!--------------
--startcollapse--
state.PCH {
control.1 {
iface MIXER
name 'Master Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.2 {
iface MIXER
name 'Master Playback Volume'
value 75
comment {
access 'read write'
type INTEGER
count 1
range '0 - 115'
dbmin -5750
dbmax 0
dbvalue.0 -2000
}
}
control.3 {
iface MIXER
name 'Headphone Playback Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.4 {
iface MIXER
name 'Headphone Playback Volume'
value.0 115
value.1 115
comment {
access 'read write'
type INTEGER
count 2
range '0 - 115'
dbmin -5750
dbmax 0
dbvalue.0 0
dbvalue.1 0
}
}
control.5 {
iface MIXER
name 'Front Speaker Playback Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.6 {
iface MIXER
name 'Front Speaker Playback Volume'
value.0 115
value.1 115
comment {
access 'read write'
type INTEGER
count 2
range '0 - 115'
dbmin -5750
dbmax 0
dbvalue.0 0
dbvalue.1 0
}
}
control.7 {
iface MIXER
name 'Surround Speaker Playback Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.8 {
iface MIXER
name 'Surround Speaker Playback Volume'
value.0 115
value.1 115
comment {
access 'read write'
type INTEGER
count 2
range '0 - 115'
dbmin -5750
dbmax 0
dbvalue.0 0
dbvalue.1 0
}
}
control.9 {
iface MIXER
name 'Capture Switch'
value.0 true
value.1 true
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.10 {
iface MIXER
name 'Capture Volume'
value.0 1
value.1 1
comment {
access 'read write'
type INTEGER
count 2
range '0 - 63'
dbmin -5100
dbmax 1200
dbvalue.0 -5000
dbvalue.1 -5000
}
}
control.11 {
iface MIXER
name 'Capture Source'
value Mic
comment {
access 'read write'
type ENUMERATED
count 1
item.0 Mic
item.1 Line
}
}
control.12 {
iface MIXER
name 'Mic Capture Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 3'
dbmin 0
dbmax 3000
dbvalue.0 0
dbvalue.1 0
}
}
control.13 {
iface MIXER
name 'Line Capture Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 3'
dbmin 0
dbmax 3000
dbvalue.0 0
dbvalue.1 0
}
}
control.14 {
iface MIXER
name 'IEC958 Playback Con Mask'
value '0fff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access read
type IEC958
count 1
}
}
control.15 {
iface MIXER
name 'IEC958 Playback Pro Mask'
value '0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access read
type IEC958
count 1
}
}
control.16 {
iface MIXER
name 'IEC958 Playback Default'
value '0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access 'read write'
type IEC958
count 1
}
}
control.17 {
iface MIXER
name 'IEC958 Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.18 {
iface MIXER
name 'IEC958 Default PCM Playback Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.19 {
iface MIXER
name 'IEC958 Capture Switch'
value false
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.20 {
iface MIXER
name 'IEC958 Capture Default'
value '0800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
comment {
access read
type IEC958
count 1
}
}
control.21 {
iface CARD
name 'Headphone Jack'
value false
comment {
access read
type BOOLEAN
count 1
}
}
control.22 {
iface CARD
name 'Mic Phantom Jack'
value true
comment {
access read
type BOOLEAN
count 1
}
}
control.23 {
iface CARD
name 'Line Jack'
value false
comment {
access read
type BOOLEAN
count 1
}
}
control.24 {
iface CARD
name 'SPDIF Phantom Jack'
value true
comment {
access read
type BOOLEAN
count 1
}
}
control.25 {
iface CARD
name 'SPDIF In Jack'
value false
comment {
access read
type BOOLEAN
count 1
}
}
control.26 {
iface MIXER
name 'PCM Playback Volume'
value.0 254
value.1 254
comment {
access 'read write user'
type INTEGER
count 2
range '0 - 255'
tlv '0000000100000008ffffec1400000014'
dbmin -5100
dbmax 0
dbvalue.0 -20
dbvalue.1 -20
}
}
control.27 {
iface MIXER
name 'Digital Capture Volume'
value.0 60
value.1 60
comment {
access 'read write user'
type INTEGER
count 2
range '0 - 120'
tlv '0000000100000008fffff44800000032'
dbmin -3000
dbmax 3000
dbvalue.0 0
dbvalue.1 0
}
}
}
state.PLAY {
control.1 {
iface MIXER
name 'Speaker Playback Switch'
value true
comment {
access 'read write'
type BOOLEAN
count 1
}
}
control.2 {
iface MIXER
name 'Speaker Playback Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '0 - 31'
dbmin 0
dbmax 3100
dbvalue.0 0
dbvalue.1 0
}
}
control.3 {
iface MIXER
name 'Tone Control - Bass'
value 48
comment {
access 'read write'
type INTEGER
count 1
range '0 - 96'
}
}
control.4 {
iface MIXER
name 'Tone Control - Treble'
value 48
comment {
access 'read write'
type INTEGER
count 1
range '0 - 96'
}
}
}--endcollapse--
!!All Loaded Modules
!!------------------
Module
hfsplusip6table_filterip6_tablesipt_MASQUERADEiptable_natnf_natnf_conntrack_ipv4nf_defrag_ipv4xt_statenf_conntrackipt_REJECTiptable_manglext_tcpudpiptable_filterip_tablesx_tables
bridge
stp
llc
bnep
rfcomm
ipv6
btusb
bluetoothsnd_usb_audiosnd_usbmidi_libsnd_hda_codec_cirrus
b43snd_hda_intelsnd_hda_codecsnd_hwdepsnd_pcm_osssnd_mixer_osssnd_pcmsnd_seq_osssnd_seq_midi
applesmcled_classsnd_rawmidiinput_polldevsnd_seq_midi_event
coretempsnd_seqsnd_timersnd_seq_devicefirewire_ohci
joydevfirewire_core
bcma
sndsnd_page_allocnls_iso8859_1nls_cp437
vfat
fat
!!ALSA/HDA dmesg
!!--------------
bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0) snd_hda_intel 0000:00:1b.0: enabling device (0000 -> 0002) snd_hda_intel 0000:00:1b.0: irq 48 for MSI/MSI-X
usb 2-1.2: new full-speed USB device number 4 using ehci_hcd
--
Registered led device: b43-phy0::radio
input: HDA Intel PCH SPDIF In as /devices/pci0000:00/0000:00:1b.0/sound/card0/input7
input: HDA Intel PCH Line as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
applesmc: key=434 fan=2 temp=30 acc=1 lux=2 kbd=1
Quoted 8 lines · Didier 'Ptitjes' Villevalois
Hello,
I've bought a Reloop Play usb soundcard and I'd like to make it work with ALSA.
It is a 4-channels USB soundcard. It is currently correctly recognized by ALSA as a 4-channels soundcard and I can correctly open the channels and feed them with audio. However, no audio is output by the box.
You're most probably affected by a regression in the driver that was fixes in 3.6.0 and 3.5.5 (and all later kernels). Could you please try one of these and tell us if that works?
Quoted 7 lines
It seems to contain a Texas Instrument TUSB3200AC chipset (same chipset as the Maya44 USB and Hercules DJ console). I guess the problem is a firmware problem but I don't know what to do about it.
I've got a MacOS X driver that works correctly, if that of any help. (I suppose the Windows driver works too but I don't have any Windows at hand.)
Did you install any vendor driver on OS X or does it just work with the one that ships with the OS?
Daniel
A message that is not in the archive (sent off-list or not yet received): 1350654327.8310.4.camel@didier-laptop
[Please do not drop the mailing list address]
Quoted 11 lines · Didier 'Ptitjes' Villevalois
Quoted 10 lines · Daniel Mack
Quoted 8 lines · Didier 'Ptitjes' Villevalois
Hello,
I've bought a Reloop Play usb soundcard and I'd like to make it work with ALSA.
It is a 4-channels USB soundcard. It is currently correctly recognized by ALSA as a 4-channels soundcard and I can correctly open the channels and feed them with audio. However, no audio is output by the box.
Quoted 6 lines
Quoted 3 lines
You're most probably affected by a regression in the driver that was fixes in 3.6.0 and 3.5.5 (and all later kernels). Could you please try one of these and tell us if that works?
Sure, I'll do that now (I'm currently using 3.5.4 + mbp8,3 patches). I guess 3.5.7 is OK ? I'm building it now and will reboot on that.
Any kernel >= 3.6.0 and 3.5.5 should be ok.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
It seems to contain a Texas Instrument TUSB3200AC chipset (same chipset as the Maya44 USB and Hercules DJ console). I guess the problem is a firmware problem but I don't know what to do about it.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
I've got a MacOS X driver that works correctly, if that of any help. (I suppose the Windows driver works too but I don't have any Windows at hand.)
Did you install any vendor driver on OS X or does it just work with the one that ships with the OS?
Yep, I had to install the Vendor-provided driver.
What was the effect without that special driver? Could you see the device listed in the AudioMIDISetup? Could you stream audio? IOW, is the effect you see there comparable to how your Linux box behaves? You could try and remove that driver again and see what happens.
Quoted 2 lines
But it seems the
built-in USB soundcard support on MacOS is very poor.
No it's not. In fact, it's actually very good. Vendors who keep their hardware compliant to the USB audio spec don't have to ship any driver at all. And this is how it should be on Linux, too.
Quoted 5 lines
Also the mpkg install file (inside the provided install dmg file) was called something like "firmware0_and_driver.mpkg". This is why I suspected a firmware problem. However I tried to look at the package content and did not find any .bin file or whatever could be a standalone firmware file. Maybe it is embedded in the driver install executable.
Maybe, but they could also write the firmware permanently to the device once with that tool. That would be perfect for Linux users.
Daniel
Quoted 1 line · Daniel Mack
[Please do not drop the mailing list address]
Oups my bad... Sorry!
Quoted 12 lines · Didier 'Ptitjes' Villevalois
Quoted 11 lines · Daniel Mack
Quoted 10 lines · Didier 'Ptitjes' Villevalois
Quoted 8 lines
Hello,
I've bought a Reloop Play usb soundcard and I'd like to make it work with ALSA.
It is a 4-channels USB soundcard. It is currently correctly recognized by ALSA as a 4-channels soundcard and I can correctly open the channels and feed them with audio. However, no audio is output by the box.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
You're most probably affected by a regression in the driver that was fixes in 3.6.0 and 3.5.5 (and all later kernels). Could you please try one of these and tell us if that works?
Sure, I'll do that now (I'm currently using 3.5.4 + mbp8,3 patches). I guess 3.5.7 is OK ? I'm building it now and will reboot on that.
Any kernel >= 3.6.0 and 3.5.5 should be ok.
So there was no change after rebooting with 3.5.7 kernel.
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
It seems to contain a Texas Instrument TUSB3200AC chipset (same chipset as the Maya44 USB and Hercules DJ console). I guess the problem is a firmware problem but I don't know what to do about it.
I've got a MacOS X driver that works correctly, if that of any help. (I suppose the Windows driver works too but I don't have any Windows at hand.)
Did you install any vendor driver on OS X or does it just work with the one that ships with the OS?
Quoted 6 lines
Quoted 1 line
Yep, I had to install the Vendor-provided driver.
What was the effect without that special driver? Could you see the device listed in the AudioMIDISetup? Could you stream audio? IOW, is the effect you see there comparable to how your Linux box behaves? You could try and remove that driver again and see what happens.
So here is what I did:
1) Removed the MacOs X driver and rebooted
2) Launched AudioMIDISetup (I did not know of this tool before :p)
3) Launched Mixxx
Now the box is outputing some crazy sound when Mixxx is not playing. When I start playing a track some more noise adds to the existing noise. Is this simply a PCM format error (sample rate/bit depth) ??
The fun thing (if I can say that) is that after rebooting to Linux 3.5.7 there is now the same sound when I run Mixxx/Linux!! And I can observe the same added noise when I launch a track.
Quoted 6 lines
Quoted 2 lines
But it seems the
built-in USB soundcard support on MacOS is very poor.No it's not. In fact, it's actually very good. Vendors who keep their hardware compliant to the USB audio spec don't have to ship any driver at all. And this is how it should be on Linux, too.
Ah ok!
Quoted 8 lines
Quoted 5 lines
Also the mpkg install file (inside the provided install dmg file) was called something like "firmware0_and_driver.mpkg". This is why I suspected a firmware problem. However I tried to look at the package content and did not find any .bin file or whatever could be a standalone firmware file. Maybe it is embedded in the driver install executable.
Maybe, but they could also write the firmware permanently to the device once with that tool. That would be perfect for Linux users.
I took some screenshots of the AudioMIDISetup app and of the content of the driver install packages. I don't if that can be of any help. You can see them here: http://ptitjes.free.fr/screenshots/
I don't know what step I should take know. Reinstalling drivers on OS X to see if there is any change ?
Thanks again for your help.
Didier.
Quoted 26 lines · Didier 'Ptitjes' Villevalois
Quoted 11 lines · Daniel Mack
Quoted 11 lines
Quoted 10 lines
Quoted 7 lines
It seems to contain a Texas Instrument TUSB3200AC chipset (same chipset as the Maya44 USB and Hercules DJ console). I guess the problem is a firmware problem but I don't know what to do about it.
I've got a MacOS X driver that works correctly, if that of any help. (I suppose the Windows driver works too but I don't have any Windows at hand.)
Did you install any vendor driver on OS X or does it just work with the one that ships with the OS?
Quoted 6 lines
Quoted 1 line
Yep, I had to install the Vendor-provided driver.
What was the effect without that special driver? Could you see the device listed in the AudioMIDISetup? Could you stream audio? IOW, is the effect you see there comparable to how your Linux box behaves? You could try and remove that driver again and see what happens.
So here is what I did:
1) Removed the MacOs X driver and rebooted
2) Launched AudioMIDISetup (I did not know of this tool before :p)
3) Launched Mixxx
Quoted 7 lines
Now the box is outputing some crazy sound when Mixxx is not playing. When I start playing a track some more noise adds to the existing noise. Is this simply a PCM format error (sample rate/bit depth) ??
The fun thing (if I can say that) is that after rebooting to Linux 3.5.7 there is now the same sound when I run Mixxx/Linux!! And I can observe the same added noise when I launch a track.
Ok, so this proves that their driver downloads a volatile firmware to the device, which is rather bad news.
What you observe also tells us that even the new firmware is not compliant to the USB audio standard which is really strange. I don't know what they wouldn't go the class-compliant way with their firmware as that's much easier than writing an own driver :-/
Quoted 9 lines
Quoted 8 lines
Quoted 5 lines
Also the mpkg install file (inside the provided install dmg file) was called something like "firmware0_and_driver.mpkg". This is why I suspected a firmware problem. However I tried to look at the package content and did not find any .bin file or whatever could be a standalone firmware file. Maybe it is embedded in the driver install executable.
Maybe, but they could also write the firmware permanently to the device once with that tool. That would be perfect for Linux users.
Quoted 6 lines
I took some screenshots of the AudioMIDISetup app and of the content of the driver install packages. I don't if that can be of any help. You can see them here: http://ptitjes.free.fr/screenshots/
I don't know what step I should take know. Reinstalling drivers on OS X to see if there is any change ?
Ok, if you want to work on this, here are some ideas.
The first thing is that you need to understand how the driver and the device communicate. It's probably some protocol that resembles to the UAC standard in either version 1 or 2, but there has to be some difference, otherwise the device would already be working.
You can do that by sniffing the packets on the wire, either with an USB hardware analyzer or by some software tracer tool. Once you got a dump of the setup phase and some seconds of streaming, you have to analyze and reverse-egineer it.
As soon as you know where the differences are between the UAC standard protocol that the generic Linux driver implements and the one your device speaks is, you should share this information here so we can discuss what would be a good way to teach the driver that protocol. In some cases, the problem can be solved by simply adding a quirks entry and override the descriptor set with some hard-coded values (quirks-table.h). In other cases, the protocol code has to be tweaked by adding special cases.
Unfortunately, in the case of your device, you would also need to extract the firmware from the bitstream and add some functions to the driver to do the download. Which is really sad and will be quite some work to do.
Let me know of you make any progress here.
Daniel
On ven., 2012-10-19 at 20:02 +0200, Daniel Mack wrote:
[...]
Quoted 2 lines
Let me know of you make any progress here.
I diff-ed the ioreg output when the play is connected without the driver (-) and with the driver (+). So I can see that it is using its proprietary driver.
http://ptitjes.free.fr/reloop-play/play-ioreg-without-and-with-driver.diff
I also traced (with Apple's USB Probe tool) the USB when connecting the PLAY.
At log level 6:
http://ptitjes.free.fr/reloop-play/usb-log-withdriver-l6.txt
At log level 7: (3.5Mo!!)
http://ptitjes.free.fr/reloop-play/usb-log-withdriver-l7.txt
I have to do the same thing when streaming some sound. But should I output some easily recognizable sound ? Something like a sine or some silence ?
Didier.
Quoted 9 lines · Didier 'Ptitjes' Villevalois
On ven., 2012-10-19 at 20:02 +0200, Daniel Mack wrote:
[...]Quoted 2 lines
Let me know of you make any progress here.
I diff-ed the ioreg output when the play is connected without the driver (-) and with the driver (+). So I can see that it is using its proprietary driver.
http://ptitjes.free.fr/reloop-play/play-ioreg-without-and-with-driver.diff
Hmm, that output doesn't make a whole lot of sense. Could you do the same thing with lsusb under Linux? Boot into Linux after the OS X driver downloaded the firmware for one run, and freshly connect (power cycle) device for the other.
Quoted 6 lines
I also traced (with Apple's USB Probe tool) the USB when connecting the PLAY.
At log level 6:
http://ptitjes.free.fr/reloop-play/usb-log-withdriver-l6.txt
Quoted 6 lines
At log level 7: (3.5Mo!!)
http://ptitjes.free.fr/reloop-play/usb-log-withdriver-l7.txtI have to do the same thing when streaming some sound. But should I output some easily recognizable sound ? Something like a sine or some silence ?
Yes, that can help. You could for example stream a sine that is on just one channel, so you can debug the muxing (interleaving) on the wire. Or a sine at ~ -48dB, which would just leave the 8 MSB empty (to check the endianess).
Most probably though, the streaming mode is already supported by the Linux driver, and it's the recognition of the right format that fails, or the cards needs a different setup sequence than the generic one.
Daniel
I'm making some progress!! :)
I did not yet tried what you suggested below. But I did add that to quirk-table.h:
#if 1
/* Reloop Play */
{
USB_DEVICE(0x200c, 0x100b),
.bInterfaceClass = USB_CLASS_PER_INTERFACE,
.driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) {
.vendor_name = "Reloop",
.product_name = "Play",
.ifnum = QUIRK_ANY_INTERFACE,
.type = QUIRK_COMPOSITE,
.data = &(const struct snd_usb_audio_quirk[]) {
{
.ifnum = 0,
.type = QUIRK_IGNORE_INTERFACE,
},
{
.ifnum = 1,
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
.data = &(const struct audioformat) {
.formats = SNDRV_PCM_FMTBIT_S24_LE,
.channels = 4,
.iface = 1,
.altsetting = 1,
.altset_idx = 1,
.attributes = 0,
.endpoint = 0x01,
.ep_attr = 0x05,
.rates = SNDRV_PCM_RATE_44100 |
SNDRV_PCM_RATE_48000,
.rate_min = 44100,
.rate_max = 48000,
.nr_rates = 2,
.rate_table = (unsigned int[]) {
44100, 48000
}
}
},
{
.ifnum = -1
}
}
}
},#endif
Did some:
rmmod snd-usb-audio && make modules && cp -v sound/usb/snd-usb*.ko /lib/modules/3.5.7-mbp83+/kernel/sound/usb/
Added this to my .asoundrc:
pcm.play {
type plug
slave {
pcm "hw:1"
format S24_LE
channels 4
}
}And now I don't have strange sounds when plugin the card but silence. And I can hear a distant "Front Center" above some noise (but no noise in-beetween the words) when doing :
didier@didier-laptop ~ $ cat /proc/asound/card1/stream0 && aplay -Dplay /usr/share/sounds/alsa/Front_Center.wav
Reloop Play at usb-0000:00:1a.7-1.3, full speed : USB Audio
Playback:
Status: Stop
Interface 1
Altset 1
Format: S24_LE
Channels: 4
Endpoint: 1 OUT (ADAPTIVE)
Rates: 44100, 48000Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
I guess now is just finding the correct values for:
- .formats (which can any of the 24 bits formats)
- .maxPacketSize (not clear to me what this is)
- .ep_attr (not clear to me what a endpoint is and what are those ASYNC, ADAPTIVE, ISOCHRONOUS attributes are nor the hex value table)
Am I right ??
Didier.
Quoted 40 lines · Daniel Mack
Quoted 9 lines · Didier 'Ptitjes' Villevalois
On ven., 2012-10-19 at 20:02 +0200, Daniel Mack wrote:
[...]Quoted 2 lines
Let me know of you make any progress here.
I diff-ed the ioreg output when the play is connected without the driver (-) and with the driver (+). So I can see that it is using its proprietary driver.
http://ptitjes.free.fr/reloop-play/play-ioreg-without-and-with-driver.diff
Hmm, that output doesn't make a whole lot of sense. Could you do the same thing with lsusb under Linux? Boot into Linux after the OS X driver downloaded the firmware for one run, and freshly connect (power cycle) device for the other.
Quoted 6 lines
I also traced (with Apple's USB Probe tool) the USB when connecting the PLAY.
At log level 6:
http://ptitjes.free.fr/reloop-play/usb-log-withdriver-l6.txtQuoted 6 lines
At log level 7: (3.5Mo!!)
http://ptitjes.free.fr/reloop-play/usb-log-withdriver-l7.txtI have to do the same thing when streaming some sound. But should I output some easily recognizable sound ? Something like a sine or some silence ?
Yes, that can help. You could for example stream a sine that is on just one channel, so you can debug the muxing (interleaving) on the wire. Or a sine at ~ -48dB, which would just leave the 8 MSB empty (to check the endianess).
Most probably though, the streaming mode is already supported by the Linux driver, and it's the recognition of the right format that fails, or the cards needs a different setup sequence than the generic one.
Daniel
Quoted 1 line · Didier 'Ptitjes' Villevalois
I'm making some progress!! :)
Very good.
Quoted 63 lines
I did not yet tried what you suggested below. But I did add that to
quirk-table.h:#if 1
/* Reloop Play */{ USB_DEVICE(0x200c, 0x100b), .bInterfaceClass = USB_CLASS_PER_INTERFACE, .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { .vendor_name = "Reloop", .product_name = "Play", .ifnum = QUIRK_ANY_INTERFACE, .type = QUIRK_COMPOSITE, .data = &(const struct snd_usb_audio_quirk[]) { { .ifnum = 0, .type = QUIRK_IGNORE_INTERFACE, }, { .ifnum = 1, .type = QUIRK_AUDIO_FIXED_ENDPOINT, .data = &(const struct audioformat) { .formats = SNDRV_PCM_FMTBIT_S24_LE, .channels = 4, .iface = 1, .altsetting = 1, .altset_idx = 1, .attributes = 0, .endpoint = 0x01, .ep_attr = 0x05, .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000, .rate_min = 44100, .rate_max = 48000, .nr_rates = 2, .rate_table = (unsigned int[]) { 44100, 48000 } } }, { .ifnum = -1 } } } },#endif
Did some:
rmmod snd-usb-audio && make modules && cp -vsound/usb/snd-usb*.ko/lib/modules/3.5.7-mbp83+/kernel/sound/usb/Added this to my .asoundrc:
pcm.play { type plug slave { pcm "hw:1" format S24_LE channels 4 } }
Quoted 3 lines
And now I don't have strange sounds when plugin the card but silence. And I can hear a distant "Front Center" above some noise (but no noise in-beetween the words) when doing :
Ok, but you still need the firmware I guess? Or does this even work after you plugged in the device under Linux?
Quoted 15 lines
didier@didier-laptop ~ $ cat
/proc/asound/card1/stream0&& aplay -Dplay/usr/share/sounds/alsa/Front_Center.wav
Reloop Play at usb-0000:00:1a.7-1.3, full speed : USB AudioPlayback:
Status: Stop
Interface 1Altset 1 Format: S24_LE Channels: 4 Endpoint: 1 OUT (ADAPTIVE) Rates: 44100, 48000Playing WAVE '
/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
Quoted 8 lines
I guess now is just finding the correct values for:
- .formats (which can any of the 24 bits formats)
- .maxPacketSize (not clear to me what this is)
- .ep_attr (not clear to me what a endpoint is and what are those ASYNC, ADAPTIVE, ISOCHRONOUS attributes are nor the hex value table)Am I right ??
Possibly yes. You can try and blindly guess them, or really dive into the logs and try to understand the reason.
Daniel
[I hope I'm not making too much noise on the ML...]
Quoted 6 lines · Daniel Mack
Quoted 3 lines
And now I don't have strange sounds when plugin the card but silence. And I can hear a distant "Front Center" above some noise (but no noise in-beetween the words) when doing :
Ok, but you still need the firmware I guess? Or does this even work after you plugged in the device under Linux?
I can unplug, rmmod, replug and that behaviour remains. I understand that this means their firmware is not volatile, right ?
i experienced the same errors with my reloop play. i once had it functioning but now i only get some weird noises
Daniel,
I noticed something strange on the screenshots. AudioMIDISetup says the Reloop Play is a 24bit device (and indeed this is what is advertised on the Reloop page http://www.reloop.com/reloop-play). However, when I inspect the proposed audio formats through Javasound the only format proposed are:
Format: PCM_SIGNED unknown sample rate, 16 bit, mono, 2
bytes/frame, little-endian
Format: PCM_SIGNED unknown sample rate, 16 bit, mono, 2
bytes/frame, big-endian
Format: PCM_SIGNED unknown sample rate, 16 bit, stereo, 4
bytes/frame, little-endian
Format: PCM_SIGNED unknown sample rate, 16 bit, stereo, 4
bytes/frame, big-endian
Format: PCM_SIGNED unknown sample rate, 16 bit, 3 channels, 6
bytes/frame, little-endian
Format: PCM_SIGNED unknown sample rate, 16 bit, 3 channels, 6
bytes/frame, big-endian
Format: PCM_SIGNED unknown sample rate, 16 bit, 4 channels, 8
bytes/frame, little-endian
Format: PCM_SIGNED unknown sample rate, 16 bit, 4 channels, 8
bytes/frame, big-endian
Format: PCM_SIGNED unknown sample rate, 8 bit, mono, 1
bytes/frame,
Format: PCM_UNSIGNED unknown sample rate, 8 bit, mono, 1
bytes/frame,
Format: PCM_SIGNED unknown sample rate, 8 bit, stereo, 2
bytes/frame,
Format: PCM_UNSIGNED unknown sample rate, 8 bit, stereo, 2
bytes/frame,
Format: PCM_SIGNED unknown sample rate, 8 bit, 3 channels, 3
bytes/frame,
Format: PCM_UNSIGNED unknown sample rate, 8 bit, 3 channels, 3
bytes/frame,
Format: PCM_SIGNED unknown sample rate, 8 bit, 4 channels, 4
bytes/frame,
Format: PCM_UNSIGNED unknown sample rate, 8 bit, 4 channels, 4
bytes/frame,
Is it possible that ALSA does not correctly see that it is a 24-bit soundcard ?
Didier.
Quoted 7 lines · Didier 'Ptitjes' Villevalois
Daniel,
I noticed something strange on the screenshots. AudioMIDISetup says the Reloop Play is a 24bit device (and indeed this is what is advertised on the Reloop page http://www.reloop.com/reloop-play). However, when I inspect the proposed audio formats through Javasound the only format proposed are:
[...]
Quoted 2 lines
Is it possible that ALSA does not correctly see that it is a 24-bit soundcard ?
Yes, but I doubt that the only reason for them to ship an own driver.
Could you post the output of "lsusb -v" please? For both cases: the device freshly plugged in under Linux, and after the OSX driver downloaded its firmware. You can already check whether you spot any differences between them ...
Daniel
OK this quirk works perfectly! (hooray!!!)
/* Reloop Play */
{
USB_DEVICE(0x200c, 0x100b), .bInterfaceClass = USB_CLASS_PER_INTERFACE, .driver_info = (unsigned long) &(const struct
snd_usb_audio_quirk) {
.vendor_name = "Reloop",
.product_name = "Play",
.ifnum = QUIRK_ANY_INTERFACE,
.type = QUIRK_COMPOSITE,
.data = &(const struct snd_usb_audio_quirk[]) {
{
.ifnum = 0,
.type = QUIRK_AUDIO_STANDARD_MIXER,
},
{
.ifnum = 1,
.type = QUIRK_AUDIO_FIXED_ENDPOINT,
.data = &(const struct audioformat) {
.formats =
SNDRV_PCM_FMTBIT_S24_3LE,
.channels = 4,
.iface = 1,
.altsetting = 1,
.altset_idx = 1,
.attributes =
UAC_EP_CS_ATTR_SAMPLE_RATE,
.endpoint = 0x01,
.rates = SNDRV_PCM_RATE_44100 |
SNDRV_PCM_RATE_48000,
.rate_min = 44100,
.rate_max = 48000,
.nr_rates = 2,
.rate_table = (unsigned int[]) {
44100, 48000
}
}
},
{
.ifnum = -1
}
}
}
},Does anyone have additional comments to do before I make a patch ? Also are there some special ALSA rules or straight signed-off git-formated patches over the kernel tree are OK ?
Thanks again for your help! I'm really happy to have a working device! :D
Didier.
Quoted 2 lines · Didier 'Ptitjes' Villevalois
.vendor_name = "Reloop",
.product_name = "Play",
These aren't needed except when they are wrong in the descriptor.
Quoted 8 lines
.data = &(const struct audioformat) {
.formats = SNDRV_PCM_FMTBIT_S24_3LE,
.channels = 4,
.iface = 1,
.altsetting = 1,
.altset_idx = 1,
.attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
.endpoint = 0x01,You might as well set ep_attr to USB_ENDPOINT_SYNC_ADAPTIVE.
Regards,
Clemens
Quoted 5 lines · Clemens Ladisch
Quoted 2 lines · Didier 'Ptitjes' Villevalois
.vendor_name = "Reloop",
.product_name = "Play",These aren't needed except when they are wrong in the descriptor.
In fact there is nothing appearing when I do lsusb, even when I specify them in the quirk. Is this not related ?
Quoted 10 lines
Quoted 8 lines
.data = &(const struct audioformat) { .formats = SNDRV_PCM_FMTBIT_S24_3LE, .channels = 4, .iface = 1, .altsetting = 1, .altset_idx = 1, .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE, .endpoint = 0x01,You might as well set
ep_attrtoUSB_ENDPOINT_SYNC_ADAPTIVE.
Oki. I'll do that.
Didier.
Quoted 9 lines · Didier 'Ptitjes' Villevalois
Quoted 5 lines · Clemens Ladisch
Quoted 2 lines · Didier 'Ptitjes' Villevalois
.vendor_name = "Reloop",
.product_name = "Play",These aren't needed except when they are wrong in the descriptor.
In fact there is nothing appearing when I do lsusb, even when I specify them in the quirk. Is this not related ?
Are they wrong when you do not specify them in the quirk?
Regards,
Clemens
A message that is not in the archive (sent off-list or not yet received): 1350743061.25322.15.camel@didier-laptop
Quoted 44 lines · Didier Villevalois
OK this quirk works perfectly! (hooray!!!)
/* Reloop Play */
{ USB_DEVICE(0x200c, 0x100b), .bInterfaceClass = USB_CLASS_PER_INTERFACE, .driver_info = (unsigned long) &(const struct snd_usb_audio_quirk) { .vendor_name = "Reloop", .product_name = "Play", .ifnum = QUIRK_ANY_INTERFACE, .type = QUIRK_COMPOSITE, .data = &(const struct snd_usb_audio_quirk[]) { { .ifnum = 0, .type = QUIRK_AUDIO_STANDARD_MIXER, }, { .ifnum = 1, .type = QUIRK_AUDIO_FIXED_ENDPOINT, .data = &(const struct audioformat) { .formats = SNDRV_PCM_FMTBIT_S24_3LE, .channels = 4, .iface = 1, .altsetting = 1, .altset_idx = 1, .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE, .endpoint = 0x01, .rates = SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000, .rate_min = 44100, .rate_max = 48000, .nr_rates = 2, .rate_table = (unsigned int[]) { 44100, 48000 } } }, { .ifnum = -1 } } } },
Quoted 1 line
Does anyone have additional comments to do before I make a patch ?
Let's ask Clemens - the quirks master - for comments :)
Quoted 2 lines
Also are there some special ALSA rules or straight signed-off git-formated patches over the kernel tree are OK ?
That's ok. The patch should apply on top of
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
though.
Quoted 2 lines
Thanks again for your help! I'm really happy to have a working device! :D
Good work! I just really wonder what that updated firmware is all about ...
Daniel