Re: [Alsa-user] Problem reading back periods

2017-09-14 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote: > If I open my sound output device (Intel HDA on Intel mobo), set its > parameters as follows: > > access = SND_PCM_ACCESS_RW_INTERLEAVED > format = SND_PCM_FORMAT_S32_LE > channels = 2 > rate = 48000 > periods = 4 > buffer_size = 1024 > > it returns no errors. If I use

Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote: > options snd slots=snd-soc-hifiberry-dacplus,snd-usb-audio > > midiC0D0 a USB MIDI device > midiC1D0 another USB MIDI device > pcmC2D0p and pcmC2D1p on-board crappy PWM audio > pcmC3D0p Hifiberry DAC > pcmC4D0p

Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote: >> Anyway, that slots options specifies only two slots. >> If you have five devices, it's a better idea to specify five slots. > > What I have is three devices that always exist, one of which is the > Hifiberry DAC that I want to use, and the others are the PWM audio and the

Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote: >> Paul D. DeRocco wrote: >>> options snd slots=snd-soc-hifiberry-dacplus,snd-usb-audio >>> >>> midiC0D0 a USB MIDI device >>> midiC1D0 another USB MIDI device >>> pcmC2D0p and pcmC2D1p on-board crappy PWM audio >>> pcmC3D0p

Re: [Alsa-user] Slot assignment not working

2017-10-08 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote: > Can this parameter be supplied on the kernel command line as snd.slots=...? Yes; this is possible for all parameters. Regards, Clemens -- Check out the vibrant tech community on one of the

Re: [Alsa-user] Sound BlasterX G1, incorrect sample rate

2017-10-10 Thread Clemens Ladisch via Alsa-user
Aaron Jackson wrote: > I bought a Sound BlasterX G1. The website says it supports 24/96 > but I can't get it to go any higher 16/44.1. Many Creative devices require a vendor-specific command to enable high speed. You'd have to monitor what commands the Windows driver sends, if you know how to do

Re: [Alsa-user] Advice on snd_pcm_writei sizes

2017-09-11 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote: > If my software naturally produces samples in 64-frame chunks, but the > device is set up to have 256-frame periods, is there any advantage to > accumulating four chunks in my own buffer and writing entire periods, > versus writing each chunk separately and expecting to be

Re: [Alsa-user] A soundcard to record IEC958_SUBFRAME from MiniDisc

2017-08-21 Thread Clemens Ladisch via Alsa-user
Mark Hills wrote: > a soundcard that has toslink input, and supports IEC958_SUBFRAME_* > sample formats In practice, PCI cards with a CMI8738/CMI8768 (not CMI878x) chip. Regards, Clemens -- Check out the vibrant tech

Re: [Alsa-user] Slot assignment not working

2017-10-10 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote: > Does anyone know the name of the Raspberry Pi HDMI sound device? udevadm > info shows a driver name of "vc4_hdmi" and an id attribute of "vc4hdmi". > lsmod only lists "vc4", nothing else with "vc4" in it. alsamixer shows > "vc4-hdmi". None of these names in the slots

Re: [Alsa-user] Changing device while stream is running

2017-10-22 Thread Clemens Ladisch via Alsa-user
John Z. wrote: >> There is no plugin that can do this dynamically, except "pulse". > > That's a bit unfortunate, as I've put a lot of effort to learn enough > about alsa so that I can be able to remove PA from my system. What is so bad about PA that an ALSA plugin would do better? > I don't mind

Re: [Alsa-user] can play back but can't capture

2017-11-24 Thread Clemens Ladisch via Alsa-user
Kent Tong wrote: > Simple mixer control 'Capture',0 > Front Left: Capture 63 [100%] [30.00dB] [on] > Front Right: Capture 63 [100%] [30.00dB] [on] > Simple mixer control 'Input Source',0 > Items: 'Front Mic' 'Rear Mic' 'Line' > Item0: 'Front Mic' > Simple mixer control 'Front Mic Boost',0

Re: [Alsa-user] can play back but can't capture

2017-11-23 Thread Clemens Ladisch via Alsa-user
Ralf Mardorf wrote: > On Thu, 23 Nov 2017 08:59:44 +0100, Clemens Ladisch via Alsa-user wrote: >>> Please find the aadebug.log below. >> >> I did not find it. > > It isn't below, it's attached. Well, I did look below where attachments would have been shown, but did

Re: [Alsa-user] can play back but can't capture

2017-11-23 Thread Clemens Ladisch via Alsa-user
Kent Tong wrote: > Please find the aadebug.log below. I did not find it. > arecord captures basically silence Probably wrong mixer settings. Regards, Clemens -- Check out the vibrant tech community on one of the

Re: [Alsa-user] can play back but can't capture

2017-11-24 Thread Clemens Ladisch via Alsa-user
Kent Tong wrote: > Below is the output of "arecord -l". I have no idea what that Alt device is. > > card 0: PCH [HDA Intel PCH], device 0: Generic Analog [Generic Analog] hw:0,0 (or better plughw:0,2 for automatic sample format conversion) > card 0: PCH [HDA Intel PCH], device 2: Generic Alt

Re: [Alsa-user] PCM control in alsamixer not working when using asound.conf (dmix)

2017-11-14 Thread Clemens Ladisch via Alsa-user
Tobx wrote: > I want to set the sample rate to 44.1 kHz in dmix in order to prevent > upsampling. Override defaults.pcm.dmix.rate. > Is the Master control a hardware control? That depends on whether your hardware has it. Regards, Clemens

Re: [Alsa-user] [asoundrc] "lossless" format conversion without any rate conversion?

2017-11-16 Thread Clemens Ladisch via Alsa-user
Vincent Yu wrote: > Will any sample rate conversions occur with this .asoundrc config? > > pcm_slave.force_24_bit_no_rate_convert { > pcm "hw:0,0" > format S24_3LE # Or other 24-bit format > rate "unchanged" # Necessary? > } > > pcm.my_new_default { > type plug >

Re: [Alsa-user] aplay underrun length

2017-11-01 Thread Clemens Ladisch via Alsa-user
Samuele Carcagno wrote: > I often get underruns Is some other process blocking the CPU or disk I/O? Try increasing the period size. > a single underrun lasting about 122-ms would be negligible for my > experiment Please note that the stream is stopped, and restarted later. Can you actually

Re: [Alsa-user] Changing device while stream is running

2017-10-22 Thread Clemens Ladisch via Alsa-user
John Z. wrote: > My general problem is: I'd like to be able to switch device that > plays audio, while the audio stream is working - without player > application knowing anything happened. PulseAudio can do this. > My current asoundrc can switch the card through environmental >

Re: [Alsa-user] how to purge old ALSA controls without reboot

2018-05-14 Thread Clemens Ladisch via Alsa-user
frede...@ofb.net wrote: > I'm trying to figure out how to delete unused volume controls which > had appeared in previous versions of my .asoundrc. > > Can this be done without rebooting my computer? Unload the sound driver (rmmod), then remove the entries from asound.state, then re-load the

Re: [Alsa-user] Xonar D2X optical out problem

2018-06-08 Thread Clemens Ladisch via Alsa-user
David Woodfall wrote: > I've have had a Xonar D2X for some time now and normally use coax > spdif output to an SMSL Sanskrit DAC. > [...] > I couldn't get any signal via the optical out at all and there isn't > any light that you normally see shining through the output socket. The coax and

Re: [Alsa-user] Get triggered when the device opens

2018-06-04 Thread Clemens Ladisch via Alsa-user
Frank Thomas via Alsa-user wrote: > The actual sound controller is connected via an I²S interface and > synchronizes on its the word select signal. After the synchronisation, > additional configuration must to occur before you can get valid samples Then why don't you do the configuration in the

Re: [Alsa-user] Get triggered when the device opens

2018-06-05 Thread Clemens Ladisch via Alsa-user
Frank Thomas via Alsa-user wrote: > On Mon, 2018-06-04 at 15:23 +0200, Clemens Ladisch via Alsa-user wrote: >> Frank Thomas via Alsa-user wrote: >>> The actual sound controller is connected via an I²S interface and >>> synchronizes on its the word select signal

Re: [Alsa-user] No sound cards seen with kernel 4.17.2 and 4.17.3

2018-07-02 Thread Clemens Ladisch via Alsa-user
Pete wrote: > Linux phoenix 4.16.16: > 1 [Generic]: HDA-Intel - HD-Audio Generic "Generic" shows that the kernel does not know the HDA controller in your chipset. > Linux phoenix 4.17.3: > --- no soundcards --- There should be an error message in the system log. Regards, Clemens

Re: [Alsa-user] Phonic Helix Board 12 Universal: Recording is silent

2018-07-02 Thread Clemens Ladisch via Alsa-user
Andreas Böhler wrote: > all recordings are completely silent Please show the output of "amixer -c2". Regards, Clemens -- Check out the vibrant tech community on one of the world's most engaging tech sites,

Re: [Alsa-user] No sound cards seen with kernel 4.17.2 and 4.17.3

2018-07-03 Thread Clemens Ladisch via Alsa-user
Peter Chant wrote: > Clemens wrote: >> Pete wrote: >>> Linux phoenix 4.17.3: >>> --- no soundcards --- > >> There should be an error message in the system log. > > Jul 2 19:44:10 phoenix kernel: [ 12.072075] snd_hda_intel :09:00.1: > Handle vga_switcheroo audio client > Jul 2 19:44:10

Re: [Alsa-user] Phonic Helix Board 12 Universal: Recording is silent

2018-07-03 Thread Clemens Ladisch via Alsa-user
Andreas Böhler wrote: > On 02/07/18 23:02, Clemens Ladisch via Alsa-user wrote: >> Andreas Böhler wrote: >>> all recordings are completely silent >> >> Please show the output of "amixer -c2". > > There is no output at all. "alsamixer -c2"

Re: [Alsa-user] Problems opening devices

2018-01-07 Thread Clemens Ladisch via Alsa-user
Robert Bielik wrote: > After this I try snd_pcm_open on the IDs, most of which I get -EBUSY. Did you actually close the device from the previous try? Check in /proc/asound/cardX/pcm0p/sub0/status if the device is opened. Regards, Clemens

Re: [Alsa-user] Strange i/o problem

2018-01-15 Thread Clemens Ladisch via Alsa-user
Robert Bielik wrote: > It works nicely if I either: > 3. Pipe capture -> playback with a larger buffer size, such as 64. It's possible that the hardware does not actually handles size 32 correctly. > The rendering thread is (pseudo code): > > while (true) { > if(capture_active) { >

Re: [Alsa-user] Iec958 plugin usage

2018-01-22 Thread Clemens Ladisch via Alsa-user
(please don't top-post) maruthi srinivas wrote: > By AES, i mean AES standard as in: > https://en.m.wikipedia.org/wiki/AES3 This is a hardware standard; it does not define the format of samples in memory. > This will add 4bit before and 4 bit after pcm sample.it seems iec958 plugin > adds those

Re: [Alsa-user] alsactl sometimes fails to restore mixer settings at boot

2018-01-29 Thread Clemens Ladisch via Alsa-user
Nikos Chantziaras wrote: > alsactl sometimes fails to restore the mixer settings at system boot. Failure > rate is about 50/50. > > systemd-udevd[151]: Process '/usr/sbin/alsactl restore 1' failed with exit > code 99. > systemd-udevd[149]: Process '/usr/sbin/alsactl restore 0' failed with exit

Re: [Alsa-user] dmix with non-hw slave ?

2018-01-29 Thread Clemens Ladisch via Alsa-user
Robert Bielik wrote: > Is it possible on the ALSA side to setup dmix to use the "jack" type > plugin as backend ? No; dmix requires a feature that is supported only by the kernel driver. > Or will the jack plugin do the same job as dmix, i.e. mix together > applications using the device ? Every

Re: [Alsa-user] splitting a 4 channel usb sound card into master and headphone

2018-02-01 Thread Clemens Ladisch via Alsa-user
Samuel Nicholas wrote: > I have a Pioneer DDJ-WeGO, 4 channel USB device that outputs stereo > master and stereo headphone. > I've been scouring the internet trying to find out how I can possibly > split up the ports as it presents as a surround 4.0 device. Try something like this:

Re: [Alsa-user] splitting a 4 channel usb sound card into master and headphone

2018-02-04 Thread Clemens Ladisch via Alsa-user
Samuel Nicholas wrote: > src/conf/cards/USB-Audio.conf > > on lines 22 starts the description of configuring the usb device to be > two stereo devices not a surround40 No, that is for devices that implement two stereo devices in hardware and should be seen as a single 4.0 device by software.

Re: [Alsa-user] alsactl sometimes fails to restore mixer settings at boot

2018-02-04 Thread Clemens Ladisch via Alsa-user
Nikos Chantziaras wrote: > How do I assign numbers? With a line options snd slots=snd-virtuoso,snd-usb-audio in some .conf file in /etc/modprobe.d/. Regards, Clemens -- Check out the vibrant tech community on one

Re: [Alsa-user] MIDI subscription

2018-01-02 Thread Clemens Ladisch via Alsa-user
Paul D. DeRocco wrote: > Under "Subscription", it says "subscription is a connection between two > sequencer ports." The snd_seq_subscribe_port() function takes a > snd_seq_port_subscribe_t which specifies a sender and a receiver. But the > explanation always seems to refer to subscribing "to" a

Re: [Alsa-user] Bower's & Wilkins PX headphone - snd-usb-audio error

2018-07-28 Thread Clemens Ladisch via Alsa-user
a...@philippludwig.net wrote: > usb 3-4: New USB device found, idVendor=19b5, idProduct=0021, bcdDevice=25.20 > usb 3-4: Product: PX USB > usb 3-4: Manufacturer: Bowers & Wilkins > snd-usb-audio: probe of 3-4:1.0 failed with error -22 > usb 3-4: 2:1: cannot get min/max values for control 2 (id 2)

Re: [Alsa-user] MOTU Microbook iic support

2018-07-28 Thread Clemens Ladisch via Alsa-user
jidder--- wrote: > Anyone that could help getting the "Class compliant" Motu Microbook iic to > run under Linux? In theory: plug it in. If something different happens in practice, you have to tell us about it. Regards, Clemens

Re: [Alsa-user] MIDI events of custom USB device not appearing in aseqdump

2018-08-22 Thread Clemens Ladisch via Alsa-user
Kevin Cuzner wrote: > My device presents a USB Midistreaming interface with the following > characteristics: > - A single embedded MIDI IN jack with ID 1 > - A single embedded MIDI OUT jack with ID 2 > - A single element with ID 3 > - The embedded MIDI IN jack is attached to the single input

Re: [Alsa-user] List devices

2018-09-06 Thread Clemens Ladisch via Alsa-user
Robert Bielik wrote: > I cannot get it listed with ALSA API function snd_device_name_hint. This is undocumented; see the "hint" entries in the standard .conf files. Regards, Clemens -- Check out the vibrant tech

Re: [Alsa-user] aplay weirdness

2018-08-30 Thread Clemens Ladisch via Alsa-user
Philip Rhoades wrote: > This produces a crashing static sound: > > espeak --stdout 'words to speak' | aplay > > but this works as expected: > > espeak --stdout 'words to speak' > ./t > aplay ./t Is there a difference in the output of "hexdump -C -n48 ./t" and "espeak --stdout 'words to

Re: [Alsa-user] Help with Audient iD14

2018-07-05 Thread Clemens Ladisch via Alsa-user
Charles Mulder via Alsa-user wrote: > I am unable to select the device using alsamixer. What exactly happens when you try it? Regards, Clemens -- Check out the vibrant tech community on one of the world's most engaging

Re: [Alsa-user] USB Synchronization w/ALSA via g_audio

2018-07-13 Thread Clemens Ladisch via Alsa-user
Rob wrote: > I am capturing data from my microphone, and transmitting it via > pcm_write() to the USB gadget card, and arecording on the USB host. > If I query the buffer, I begin to see a creeping fill on the device > side buffers, such that after a few hours of constant streaming, the > buffer

Re: [Alsa-user] Best course of action with Audient iD14

2018-01-23 Thread Clemens Ladisch via Alsa-user
Charles Mulder wrote: > I would like to ask your help to establish what the best course of action > would be. Ask the PulseAudio developers how to configure it to detect the device correctly: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Community/ Regards, Clemens

Re: [Alsa-user] Best course of action with Audient iD14

2018-01-23 Thread Clemens Ladisch via Alsa-user
Charles Mulder wrote: > I am trying to set up a dedicated audio workstation for composing and > would like to keep it as minimal as possible. I was thinking of using > ALSA and Jack without Pulseaudio. > > In your opinion, is that a mistake? Probably not. But the "Analogue Surround 4.0"

Re: [Alsa-user] Iec958 plugin usage

2018-01-22 Thread Clemens Ladisch via Alsa-user
maruthi srinivas wrote: > On Monday, January 22, 2018, Clemens Ladisch > wrote: >> maruthi srinivas wrote: >>> I want to use plugin to convert either way and write to a file. >> >> What for? There is no standard for AES data in a file. >> > Aplay help lists

Re: [Alsa-user] Dmix problem

2018-01-22 Thread Clemens Ladisch via Alsa-user
Robert Bielik wrote: > is there some ALSA plugin that can coalesce buffering ? Meaning that > the plugin can take f.i. larger period_size than what the dmix device > is working with ? What problem would that solve? Regards, Clemens

Re: [Alsa-user] Dmix problem

2018-01-22 Thread Clemens Ladisch via Alsa-user
Robert Bielik wrote: >> Is there any other plugin doing the same thing as dmix... but working ? Yes, dmix with a larger buffer size (i.e., more periods). > I'd need a mixing plugin that does not do sample rate conversion, i.e. each > client connecting to it should be forced to use the mix plugs

Re: [Alsa-user] Iec958 plugin usage

2018-01-22 Thread Clemens Ladisch via Alsa-user
maruthi srinivas wrote: > Iam trying to convert pcm (from wav file) to AES and vice versa. What exactly do you mean with "AES"? > I found a alsa plugin iec958. Will that plugin does do what I want > to achieve ? The iec958 creates an IEC958 bit stream, which is required for S/PDIF on some very

Re: [Alsa-user] USB Audio and selecting optical out

2018-04-24 Thread Clemens Ladisch via Alsa-user
Marc Haber wrote: > On Tue, Apr 24, 2018 at 02:54:44PM +0200, Clemens Ladisch via Alsa-user wrote: >> Marc Haber wrote: >>> On Tue, Apr 24, 2018 at 02:43:01PM +0200, Clemens Ladisch via Alsa-user >>> wrote: >>>> Check if it's actually using 44.1 k

Re: [Alsa-user] USB Audio and selecting optical out

2018-04-22 Thread Clemens Ladisch via Alsa-user
Marc Haber wrote: > Is it possible that the USB device is only able to play back at 48 kHz? Yes, it's possible. Check /proc/asound/cardX/stream0. > On Sun, Apr 08, 2018 at 05:20:13PM +0100, James wrote: >> You might also need to mess with AES0 settings. Google for that. The USB audio driver

Re: [Alsa-user] USB Audio and selecting optical out

2018-04-24 Thread Clemens Ladisch via Alsa-user
Marc Haber wrote: > On Sun, Apr 22, 2018 at 10:45:11PM +0200, Clemens Ladisch via Alsa-user wrote: >> Marc Haber wrote: >>> Is it possible that the USB device is only able to play back at 48 kHz? >> >> Yes, it's possible. Check /proc/asound/cardX/stream0. > >

Re: [Alsa-user] USB Audio and selecting optical out

2018-04-24 Thread Clemens Ladisch via Alsa-user
Marc Haber wrote: > On Tue, Apr 24, 2018 at 02:43:01PM +0200, Clemens Ladisch via Alsa-user wrote: >> Marc Haber wrote: >>> Looks to me like it at least claims to be able to play back at 44.1 kHz. >>> Any other reason why the DAT deck won't sync if speakertest runs with

Re: [Alsa-user] Stereo Output on Asus Xonar DGX

2018-10-24 Thread Clemens Ladisch via Alsa-user
Chad Skeeters wrote: > It plays "Front Left", "Front Right" out of *both* speakers of headphones > connected to the green headphone port on the back of the card. Then it > plays "Rear Left", "Rear Right" out of both speakers of headphones > connected to the black surround port on the back of the

Re: [Alsa-user] ALSA on non-Linux systems

2018-09-26 Thread Clemens Ladisch via Alsa-user
Kevin Smallman wrote: > is that down to the hardware support provided by the kernel, or something > like ALSA or OSS? ALSA consists of three parts: - the userspace library, alsa-lib; - the ALSA framework in the kernel; and - various ALSA drivers, also in the kernel. The library can use other