Re: [alsa-devel] [FFADO-devel] Call for testing: ALSA driver for Fireworks/BeBoB based devices
Dear Takashi,
Firstly: thank you so much for taking the time to do this! I am very, very grateful!
You asked for the following:
$ cat /proc/asound/card2/#clock Sampling rate: 48000 Clock Source: Internal (MSU-dest: 5) $ cat /proc/asound/card2/#firmware Manufacturer: bridgeCo Protocol Ver: 1 Build Ver: 0 GUID: 0x000D6C0A009D269F Model ID: 0x01 Model Rev: 1 Firmware Date: 20050905 Firmware Time: 091022 Firmware ID: 0xA Firmware Ver: 20 Base Addr: 0x20080000 Max Size: 1572864 Loader Date: 20040915 Loader Time: 175644 $ cat /proc/asound/card2/#formation Output Stream from device: Rate PCM MIDI 22050 0 0 24000 0 0 32000 0 0 44100 4 1 48000 4 1 88200 4 1 96000 4 1 176400 0 0 192000 0 0 Input Stream to device: Rate PCM MIDI 22050 0 0 24000 0 0 32000 0 0 44100 4 1 48000 4 1 88200 4 1 96000 4 1 176400 0 0 192000 0 0 $ cat /proc/asound/card2/#meter Analog In 1: 1328896 Analog In 2: 1216256 Analog In 3: 1326097920 Analog In 4: 8012800 Stream In 1: 0 Stream In 2: 0 Stream In 3: 0 Stream In 4: 0 Analog Out 1: 0 Analog Out 2: 0 Analog Out 3: 0 Analog Out 4: 0
Now, my experience:
I am testing on a new, well provisioned PC, freshly loaded with Ubuntu 13.10. My firewire card has a Texas Instruments chipset, and my device is the Ozonic. I install via DKMS, as per your instructions, and then sudo modprobe snd-bebob. The snd_firewire_lib and snd_bebob modules are now listed in the output of lsmod. The device has installed as card2 (hw:2,0). I can now test MIDI input with: $ amidi -p hw:2,0,0 -d ... which satisfies me that all MIDI output from the various controllers on the Ozonic is being received. I have not yet tried to send any MIDI data to the device.
I open Audacity, which now lists "Ozonic: Ozonic PCM (hw:2,0)" as ALSA input and output options. However, no audio input is shown when I try to monitor the audio input, and trying to play generated audio (e.g. DTMF tones) results in the message: "Error while opening sound device. Please check the output device settings and the project sample rate." I have repeated the experiment at all supported sampling rates (44100, 48000, 88200 & 96000 Hz), and obtained the same result in each case. I then close Audacity and try: $aplay -D hw:2,0 test.wav (where test.wav has been saved from Audacity) ... and this responds with: aplay: main:722: audio open error: Input/output error
Based on my experiences with the Ozonic under FFADO, I might easily have resigned myself to thinking that full functionality will only be apparent once a mixer is implemented. I had hacked together the "unmute-ozonic" utility under FFADO in order to overcome the need the need to dual boot in order to get I/O. However, the fact that an error message is returned upon trying to open the Ozonic's output makes me think that this is another problem entirely.
UPDATE: I have just this moment been able to do the following: $ aplay -D hw:2,0 Desktop/test.wav Playing WAVE 'Desktop/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono aplay: set_params:1239: Channels count not available ... which appears in order to me, except that no audio can be heard. I assume this is due to the lack of a mixer. I will retrace my steps to try and figure out why it is now apparently working. However, I now open Audacity again, and the first thing I notice is that my pass-through audio immediately disappears (I have a sound source playing into the unbalanced inputs throughout). Audacity responds exactly the same as before. I close Audacity and aplay can no longer open hw:2,0 (I/O error as before). Now I modprobe -r the modules (and lsmod to confirm they're gone), cycle the Ozonic's power off and on, and the audio pass-through has reappeared! I also see that lsmod lists both snd_firewire_lib & snd_bebob as having reloaded themselves automatically.
My testing is probably not particularly rigorous, and I would sincerely appreciate your advice on what steps to follow in order to verify your driver's functionality. In particular, you mention "(to control mixer channels please use FFADO upstream)". I have not yet set up FFADO on this machine, but I also see under "Note": "- Don't use simultaneously 'ALSA PCM/MIDI playback/capture' and 'jackd with Firewire (FFADO) backend'. Both of them try connecting to the device when another is running." Would you please explain? How should one rely on the "upstream" mixer functionality while keeping jackd out of ALSA's way?
Once again, thank you sincerely for doing this. I, for one, feel like a kid on Christmas Eve!
Kind regards, Mark Brand. ________________________________________ From: Takashi Sakamoto [o-takashi@sakamocchi.jp] Sent: Monday, October 14, 2013 5:17 AM To: alsa-devel@alsa-project.org; ffado-devel@lists.sf.net; linux1394-devel@lists.sourceforge.net; linux-audio-dev@lists.linuxaudio.org Subject: [FFADO-devel] Call for testing: ALSA driver for Fireworks/BeBoB based devices
Hi all,
This is a call for testing my ALSA driver for Fireworks/BeBoB based devices.
Please test 'snd-fireworks' for Fireworks and 'snd-bebob' for BeBoB if you have some devices listed in the end of this mail.
[snip]
Regards
Takashi Sakamoto o-takashi@sakamocchi.jp
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clk... _______________________________________________ FFADO-devel mailing list FFADO-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ffado-devel
________________________________
NOTICE: Please note that this eMail, and the contents thereof, is subject to the standard NMMU eMail disclaimer which may be found at: http://www.nmmu.ac.za/disclaimer/email.htm
Hi Mark,
Thanks for your testing. Ozonic is one of devices for which I test.
My testing is probably not particularly rigorous, and I would sincerely appreciate your advice on what steps to follow in order to verify your driver's functionality.
Try playback/capture PCM samples/MIDI messages with ALSA applications.
In particular, you mention "(to control mixer channels please use FFADO upstream)".
My drivers don't give ways to control device's internal mixer. So you need the other stuff for this purpose.
Please refer to this page. You can see some screenshots of ffado-mixer for 'M-Audio Ozonic'. I already commited these improvement to current FFADO trunk except for FW1814/ProjectMiX: MaudioBebob http://subversion.ffado.org/wiki/MaudioBebob
I have not yet set up FFADO on this machine, but I also see under "Note": "- Don't use simultaneously 'ALSA PCM/MIDI playback/capture' and 'jackd with Firewire (FFADO) backend'. Both of them try connecting to the device when another is running." Would you please explain? How should one rely on the "upstream" mixer functionality while keeping jackd out of ALSA's way?
Devices which my drivers support handle a pair of streams over IEEE1394 bus. PCM samples/MIDI messages are multiplexed into these streams. And snd-fireworks/snd-bebob uses 'duplex streams synchronization'. As a result: - ALSA PCM/MIDI functionality and jackd with firewire backend conflict for its streaming functionality. But: - ALSA PCM/MIDI fuctionality and ffado-dbus-server/ffado-mixer do not interrupt each other.
I open Audacity, which now lists "Ozonic: Ozonic PCM (hw:2,0)" as ALSA input and output options. However, no audio input is shown when I try to monitor the audio input
I confirm that Audacity has such bugs to detect ALSA PCM character devices. In detail, its PortAudio v19 codes includes bugs. I have no will to investigate this bug because it's not within my work for these drivers.
$aplay -D hw:2,0 test.wav (where test.wav has been saved from Audacity) ... and this responds with: aplay: main:722: audio open error: Input/output error
According to aplay codes, snd_pcm_open() generate this error. I guess that another application still uses PCM character device for Ozonic.
$ aplay -D hw:2,0 Desktop/test.wav Playing WAVE 'Desktop/test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono aplay: set_params:1239: Channels count not available
You MUST add 'c' option to indicate the number of channels with 'hw' PCM device. For convinience, use 'plughw' PCM device instead, like: $ aplay -D plughw:2,0 Desktop/test.wav
I note an item: - A few days ago, I fixed bug to fail to start stream for Ozonic. See: bebob: fix mappling for MIDI conformant data in stream channels https://github.com/takaswie/snd-firewire-improve/commit/545ab7068f1d53b2b17d...
Thanks
Takashi Sakamoto o-takashi@sakamocchi.jp
participants (2)
-
Brand, Mark (Mr) (Summerstrand Campus South)
-
Takashi Sakamoto