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

2018-04-26 Thread Marc Haber
On Wed, Apr 25, 2018 at 11:45:27PM +0100, James wrote:
> iecset is only useful up to a point. It tells you the settings when idle.
> They get overridden when you play something.
> 
> iec958:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
> 
> Those are the AES settings, in this case for AC3 encoding.
> 
> The numbers change depending on the format of the output.
> 
> The default is right for 48000 rate PCM, you will need different bits set
> for 44100.
> 
> One way of finding the right string is to type "iecset", it will describe
> the bits. then typing "iecset -x" will tell you which AES0 values match it.

So the correct way is to use iecset's mnemonic mode (e.g. do iecset -c
iec958:CARD=Device,DEV=0 copyright false original true) and then read
back the binary values with iecset -x?

I have noticed that iecset -x's output indeed changes when I do changes
with iecset foo bar, did I guess that behavior correctly?

Greetings
Marc

-- 
-----
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


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

2018-04-24 Thread Marc Haber
On Tue, Apr 24, 2018 at 02:43:01PM +0200, Clemens Ladisch via Alsa-user wrote:
> 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.
> >
> > Playback:
> > Rates: 44100, 48000
> > Capture:
> > Rates: 44100, 48000
> >
> > 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
> > rate 44100?
> 
> Check if it's actually using 44.1 kHz when playing.

Playback:
  Status: Running
Interface = 1
Altset = 2
Packet Size = 196
Momentary freq = 44100 Hz (0x2c.199a)

cross check:

Playback:
  Status: Running
Interface = 1
Altset = 2
Packet Size = 196
Momentary freq = 48000 Hz (0x30.)

Greetings
Marc
-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


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

2018-04-24 Thread Marc Haber
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:
> >> 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
> >>> rate 44100?
> >>
> >> Check if it's actually using 44.1 kHz when playing.
> >
> > How would I do that?
> 
> Check /proc/asound/cardX/stream0.

Now we're turning around in circles. Are you trying to say that the
contents of /proc/asound/cardX/stream0 will not only show the card's
capabilities but also what is currently going on while there is
something playing?

If so, you need to word that more explicitly or somebody with less than
35 years of IT experience will not be able to understand what you're
trying to say.

> > I am open to suggestions for devices that will do what I want and work
> > on Linux.
> 
> I do not know what your DAT actually requires.
> 
> But as far as I am aware, there is no USB solution that allows as much
> control as your C-Media PCI card.

Too bad, the machine in question will certainly be my last box with a
PCI slot, so when that mainboard dies, the C-Media PCI card will die
with it unless some vendor will come up with an afforable and supported
PCIe-to-PCI- or USB-to-PCI-Slot interface.

Additionally, the CMI8738 has caused me grief ever since. Compared with
the PCI card, the USB device is rather painless.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


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

2018-04-24 Thread Marc Haber
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
> > rate 44100?
> 
> Check if it's actually using 44.1 kHz when playing.

How would I do that?

> > Is this likely a sloppy implementation of the Device or a bug in the driver?
> 
> S/PDIF has lots of metadata bits, but the USB audio 1.x specification does
> not have any mechanism to change them.  These bits must be set automatically
> by the device.  (Usually, receivers don't really care about them.)

I see.

> The CM106 datasheet mentions a register to control the S/PDIF output, but
> its contents are undocumented.  It's possible that this works only with the
> Windows driver.

That looks like "game over" here. Alas, too bad...

I am open to suggestions for devices that will do what I want and work
on Linux. I am willing to spend up to 150 Euro, but beyond that it looks
like my playback will continue to be analog. It's unlikely that my DAT
decks will ever _write_ to a tape again anyway.

Greetings
Marc

-- 
-----
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


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

2018-04-24 Thread Marc Haber
Hi Clemens,

thanks for the helpful comment.

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.

[2/4994]mh@fan:~ $ head -n-0  /proc/asound/card*/stream0
USB Sound Device at usb-:00:12.0-5, full speed : USB Audio

Playback:
  Status: Stop
  Interface 1
Altset 1
Format: S16_LE
Channels: 8
Endpoint: 6 OUT (ADAPTIVE)
Rates: 44100, 48000
  Interface 1
Altset 2
Format: S16_LE
Channels: 2
Endpoint: 6 OUT (ADAPTIVE)
Rates: 44100, 48000
  Interface 1
Altset 3
Format: S16_LE
Channels: 4
Endpoint: 6 OUT (ADAPTIVE)
Rates: 44100, 48000
  Interface 1
Altset 4
Format: S16_LE
Channels: 6
Endpoint: 6 OUT (ADAPTIVE)
Rates: 44100, 48000
  Interface 1
Altset 5
Format: S16_LE
Channels: 2
Endpoint: 6 OUT (ADAPTIVE)
Rates: 96000

Capture:
  Status: Stop
  Interface 2
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 5 IN (ASYNC)
Rates: 44100, 48000
[3/4995]mh@fan:~ $

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
rate 44100? Is this likely a sloppy implementation of the Device or a
bug in the driver? I don't have any clue about USB sound and don't know
how intelligent the hardware is and how much of the magic happens inside
the driver.

Greetings
Marc

-- 
-----
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


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

2018-04-22 Thread Marc Haber
On Sun, Apr 08, 2018 at 05:20:13PM +0100, James wrote:
> On 31/03/18 20:02, Marc Haber wrote:
> In order to get output to the digital output, you need to use the "iec958"
> device.
> E.g.:
> speaker-test -c2 -d iec958:CARD=CMI8738,DEV=0 --rate 48000
> 
> Note that you also appear to have a digital out of the SB card, so you need
> to select the card when outputting.

That would be CARD=Device to use the USB Device, and that actually
works. --rate 44100 does not seem to work. Is it possible that the USB
device is only able to play back at 48 kHz so that the PC needs to
resample, or can this be a driver issue that the frequency is not
correctly selected?

And even after successful playback with --rate 48000 and the DAT deck
still being synced to the input, iecset -c iec958:CARD=Device,DEV=0 says
Rate: 44100.

> You might also need to mess with AES0 settings. Google for that.

Google results are inconclusive, a ton of forum entries like
"AES0=number fixed it for me", but nothing resembling an explanation,
and nothing in the Documentation subdirectory in the kernel tree.

Greetings
Marc

-- 
-----
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


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

2018-04-22 Thread Marc Haber
Hi, sorry for the delay.

On Sun, Apr 08, 2018 at 05:09:28PM +0200, Ralf Mardorf wrote:
> On Sun, 8 Apr 2018 16:41:08 +0200, Marc Haber wrote:
> All my DAT recorder drives are broken, the only reason to keep them is
> to have DACs and ADCs I could use via S/PDIF, in addition to the analog
> I/Os and ADAT I/Os of my audio devices, just in case I ever should need
> additional I/Os, which actually never happened. You already could get a
> semi-professional OOTB Linux compatible, especially class compliant
> audio device, for half of the price even a second hand DAT recorder
> does cost. I could use my broken DAT recorders converters via S/PDIF
> with my audio devices.
> 
> 1. One of my broken DAT recorders is a Sony consumer DAT. Better
> discontinue to use a consumer DAT recorder, soon or later they all
> suffer from drive issues.

Maybe I'll be able to copy my tapes over to the computer until it
breaks.

Note that the DAT drive is already present, so the cost to obtain it is
zero.

> 2. If you wish to continue using a DAT recorder in combination with
> your computer, then consider to spend more than 23,85 € for your
> computer's audio device.

I'm open for suggestions.

Greetings
Marc

-- 
-----
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


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

2018-04-08 Thread Marc Haber
Ping? noone?

Greetings
Marc


On Sat, Mar 31, 2018 at 09:02:00PM +0200, Marc Haber wrote:
> I have been experimenting with USB audio devices recently and have
> settled on an USB device which seems to be a weird OEM device labeled by
> the german company CSL. The device announces itself on the USB as
> "0d8c:0102 C-Media Electronics, Inc. CM106 Like Sound Device". I am
> pasting the output of lsusb -v, aplay -l and aplay -L below and am
> willing to deliver any additional information that may helpful here.
> 
> It is very important for me that I can use the
> optical ports that the device has for both recording audio to the
> computer and playing back audio from the computer. Amazon Link:
> https://www.amazon.de/CSL-Soundkarte-Lautsprecher-gleichzeitige-Audiogeräte/dp/B00KXAVBQY
> 
> The device is recording audio just fine, from the analog inputs and from
> the optical input. What I have not been able to is playing back through
> the optical output. I have connected a Sony DTC-60ES DAT deck to the
> output, which does not seem to properly sync on the output. The "digital
> input" indicator on the DAT deck does not stop blinking which is an
> indicator of "no signal".
> 
> I have tried playing around with alsamixer, but didn't find any fader
> for the digital output, nor did I find an output switch. I was also
> never able to stop the device from playing back from the analog output.
> Even when I select the IEC958 digital output in pavucontrol, playback
> continues from the analog output.
> 
> I have tried:
>   - mpg321
>   - juk
>   - mixxx
>   - audacity
> 
> All of those with pulseaudio, with pasuspender active while tying to use
> plain ALSA, and I even made my first steps with jack. All I got was
> silence, or analog playbay, and never even a "yes, there is a signal to
> sync on" from the DAT deck.
> 
> Are there any ideas what I could additionally try?
> 
> Greetings
> Marc
> 
> 
> 
> 
> I apologize that the USB device is not the only sound device present in
> the machine, it does have on-board sound, an active sound link via
> DisplayPort to the Monitor and an CMI8738 PCI sound card that I am
> reluctant to pull without the new USB device working.
> 
> 
> [1/5013]mh@fan:~ $ sudo aplay -l
> [sudo] password for mh: 
>  List of PLAYBACK Hardware Devices 
> card 0: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 0: SB [HDA ATI SB], device 1: ALC892 Digital [ALC892 Digital]
>   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 1: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 1: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 1: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 1: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 1: HDMI [HDA ATI HDMI], device 11: HDMI 5 [HDMI 5]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 3: Device [USB Sound Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> [2/5014]mh@fan:~ $ sudo aplay -L
> default   
>
> Playback/recording through the PulseAudio sound server
>
> null  
>
> Discard all samples (playback) or generate zero samples (capture) 
>
> sysdefault:CARD=SB
>
> HDA ATI SB, ALC892 Analog 
>  

[Alsa-user] USB Audio and selecting optical out

2018-03-31 Thread Marc Haber
criptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber2
  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  10
bDelay  1 frames
wFormatTag  1 PCM
  AudioStreaming Interface Descriptor:
bLength14
bDescriptorType36
bDescriptorSubtype  2 (FORMAT_TYPE)
bFormatType 1 (FORMAT_TYPE_I)
bNrChannels 2
bSubframeSize   2
bBitResolution 16
bSamFreqType2 Discrete
tSamFreq[ 0]44100
tSamFreq[ 1]48000
  Endpoint Descriptor:
bLength 9
bDescriptorType 5
bEndpointAddress 0x85  EP 5 IN
bmAttributes5
  Transfer TypeIsochronous
  Synch Type   Asynchronous
  Usage Type   Data
wMaxPacketSize 0x00c8  1x 200 bytes
bInterval   1
bRefresh0
bSynchAddress   0
AudioControl Endpoint Descriptor:
  bLength 7
  bDescriptorType37
  bDescriptorSubtype  1 (EP_GENERAL)
  bmAttributes 0x01
Sampling Frequency
  bLockDelayUnits 0 Undefined
  wLockDelay  0 Undefined
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber3
  bAlternateSetting   0
  bNumEndpoints   1
  bInterfaceClass 3 Human Interface Device
  bInterfaceSubClass  0 No Subclass
  bInterfaceProtocol  0 None
  iInterface  0 
HID Device Descriptor:
  bLength 9
  bDescriptorType33
  bcdHID   1.00
  bCountryCode0 Not supported
  bNumDescriptors 1
  bDescriptorType34 Report
  wDescriptorLength  50
 Report Descriptors: 
   ** UNAVAILABLE **
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0003  1x 3 bytes
bInterval   1
Device Status: 0x
  (Bus Powered)



-- 
-----
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] How to Debug ALSA on KDE Plasma 5 (Pulseaudo in the way?)

2015-12-20 Thread Marc Haber
On Fri, Dec 11, 2015 at 06:48:45PM +0100, Marc Haber wrote:
> On Tue, Dec 08, 2015 at 09:31:25AM +0100, Clemens Ladisch wrote:
> > Marc Haber wrote:
> > > card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI 
> > > DAC/ADC]
> > > card 0: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd 
> > > DAC]
> > > card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI 
> > > IEC958]
> > 
> > > mpg321 -v -o alsa -a hw1,0. This results in
> > > "Can't open libao driver with device hw1,0 (is device in use?)".
> > 
> > The devices on CMI8738 cards share resources and cannot be used
> > independently.  But this should not matter if none of them is open.
> > 
> > Anyway, the correct ALSA device name would not be "hw1,0" but "hw:1,0".
> 
> Thanks for spotting my error. Things do work now. I first verified
> that mpg321 would happily play back to the on-board analog output and
> the told it to play back via the IEC958 interface, hw:0,2.

And a week later, it stopped working again. Whatever I do,
neither "mpg321 -o alsa -a hw:1,0" nor "mpg321 -o alsa -a hw:0,2" do
something different than "Can't open libao driver with device hw:1,0
(is device in use?)". I have chmodded /usr/bin/pulseaudio to 000 and
killed the running daemon, and fuser /dev/snd/* doesn't output
anything. Otoh, with an alsamixer running, fuser /dev/snd/* says that
/dev/snd/controlC2 is in use by that process.

What other things can be the reason for mpg321 -o alsa -a hw:0,2" not
working?

I have uploaded a new alsa-info.sh output to
http://paste.debian.net/352244/ valid until 12/23.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] How to Debug ALSA on KDE Plasma 5 (Pulseaudo in the way?)

2015-12-20 Thread Marc Haber
On Mon, Dec 14, 2015 at 10:57:09AM +0100, Clemens Ladisch wrote:
> Marc Haber wrote:
> > What would be the recommended application to control the ALSA mixer on
> > a KDE Plasma 5 desktop? Neither kmix nor plasma-pa seem to offer all
> > controls that the ALSA mixer provides.
> 
> Google says that programs named kalsamix, kalsamixer, and qalsamixer exist.

Neither of those are part of current Debian unstable. I guess they're
for KDE versions older than KDE Plasma 5.

Greetings
Marc

-- 
-----
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] How to Debug ALSA on KDE Plasma 5 (Pulseaudo in the way?)

2015-12-11 Thread Marc Haber
Hi Clemens,

On Tue, Dec 08, 2015 at 09:31:25AM +0100, Clemens Ladisch wrote:
> Marc Haber wrote:
> > card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI 
> > DAC/ADC]
> > card 0: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd 
> > DAC]
> > card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI 
> > IEC958]
> 
> > mpg321 -v -o alsa -a hw1,0. This results in
> > "Can't open libao driver with device hw1,0 (is device in use?)".
> 
> The devices on CMI8738 cards share resources and cannot be used
> independently.  But this should not matter if none of them is open.
> 
> Anyway, the correct ALSA device name would not be "hw1,0" but "hw:1,0".

Thanks for spotting my error. Things do work now. I first verified
that mpg321 would happily play back to the on-board analog output and
the told it to play back via the IEC958 interface, hw:0,2.

That didn't work, but I also say that the optical output was not lit.
I then used the text-mode alsamixer to enable the S/PDIF output which
made the output light up.

Am now playing back via the DAT deck.

What would be the recommended application to control the ALSA mixer on
a KDE Plasma 5 desktop? Neither kmix nor plasma-pa seem to offer all
controls that the ALSA mixer provides.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] How to Debug ALSA on KDE Plasma 5 (Pulseaudo in the way?)

2015-12-06 Thread Marc Haber
 [Reposting with correct sender, I apologize]

Hi,

my "big" desktop machine has a conventional audio device and an HDMI
audio device on board. Additionally I have a CMI8738 based PCI Sound
Card that is supposed to play audio via IEC 958 to my DAT recorder.

The system is Debian unstable with KDE Plasma 5. I have pasted the
output of alsa-info.sh to http://paste.debian.net/341693/ (which will
hold until December 9). I am currently using pulseaudio for playback
(good enough for me at the moment).

However, when I configure pulseaudio via pavucontrol to play back via
the CMI card's IEC958 output, the output still comes out of the card's
analog outputs, and the DAT recorder doesn't even sync to any data
stream.

I therefore tried debugging from the bottom up. In the first step, I
tried playing back via on-board analog audio via plain ALSA.

 List of PLAYBACK Hardware Devices 
card 0: CMI8738 [C-Media CMI8738], device 0: CMI8738-MC6 [C-Media PCI DAC/ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 1: CMI8738-MC6 [C-Media PCI 2nd DAC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: CMI8738 [C-Media CMI8738], device 2: CMI8738-MC6 [C-Media PCI IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


I configured all output devices to "Off" in pavucontrol and tried
mpg321 -v -o alsa -a hw1,0. This results in
"Can't open libao driver with device hw1,0 (is device in use?)".

This is probably true since pulseaudio is still in use and the
pulseaudio daemon is still running. When I ask pulseaudio kindly to
terminate by use of the kill(1) command, some helpful other component
starts a new pulseaudio daemon immediately.


--
Question (1)
Can I find out which process has locked a certain ALSA audio device?
--



I then looked in KDE system settings for a probably checked "Enable
KDE Sound System" checkbox which I remember being there from KDE 3,
when I did "serious" sound on Linux for the last time. Nothing. KDE
Plasma 5 does have a "Audio Hardware Setup" Tab which offers me the
devices to use, pulseaudio not being one of them, and it says "Phonon
VLC" as Sound Backend. I guess that phonon is somehow configured to
use pulseaudio, which in turn keeps hold of my ALSA devices.



--
Question (2)
Which software component of my system do I reconfigure in which way to
let go of my audio devices so that I can do low-level debugging of
ALSA on my system to find out which software component is at fault for
the digital audio malfunctions of my CMI8737 card?
--



Any hints would be apprecited.

Greetings
Marc

-- 
-----
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] USB Audio with multiple Devices

2015-05-21 Thread Marc Haber
Hi,

On Sat, May 16, 2015 at 02:52:47PM +0200, Ralf Mardorf wrote:
 On Sat, 16 May 2015 13:25:24 +0200, Marc Haber wrote:
 Alsamixer says about the DDJ-WeGo2 Chip: USB Mixer, This sound device
 does not have any controls.
 
 does it have got any mixer controls?

I don't know. I just have never seen any sound card without a mixer of
any kind.

 Why does ALSA onle see a single audio device? I think it should see
 two or even three.
 
 Are you confusing the devices with the ports available by the devices?

Maybe, I don't have too much clue about ALSA.

 /proc/asound/card...

[3/500]mh@fan:~$ cat /proc/asound/cards
 0 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfe8f4000 irq 16
 1 [HDMI   ]: HDA-Intel - HDA ATI HDMI
  HDA ATI HDMI at 0xfe9bc000 irq 37
 2 [CMI8738]: CMI8738-MC6 - C-Media CMI8738
  C-Media CMI8738 (model 55) at 0xd800, irq 22
 3 [DDJWeGO2   ]: USB-Audio - PIONEER DDJ-WeGO2
  Pioneer PIONEER DDJ-WeGO2 at usb-:00:13.2-1.1, full 
speed
[4/501]mh@fan:~$ find /proc/asound/card3/
/proc/asound/card3/
/proc/asound/card3/id
/proc/asound/card3/midi0
/proc/asound/card3/pcm0p
/proc/asound/card3/pcm0p/oss
/proc/asound/card3/pcm0p/info
/proc/asound/card3/pcm0p/sub0
/proc/asound/card3/pcm0p/sub0/info
/proc/asound/card3/pcm0p/sub0/status
/proc/asound/card3/pcm0p/sub0/hw_params
/proc/asound/card3/pcm0p/sub0/sw_params
/proc/asound/card3/usbid
/proc/asound/card3/usbbus
/proc/asound/card3/stream0
/proc/asound/card3/usbmixer
/proc/asound/card3/oss_mixer
[5/502]mh@fan:~$

While I have solved the issue by noticing that the only device
exported by the WeGo has _four_ output channels, and finding out that
channels 1-2 are the RCA output and channels 3-4 are the headphone and
ignoring the microphone input, I would like to learn more about how I
can find out device properties with ALSA. How do I do that?

 The system I am trying this on has pulseaudio installed, and I'd like
 to keep it for the other audio devices. Is there a chance that pulse
 is interfering here? Is there a way to tell pulse to keep its fingers
 off hw3?
 
 You should use the jackd sound server to make your live easier.

Probably, but there is no time to get accustomed with an entirely new
sound server, having been through OSS, aRts, plain ALSA and pulseaudio
in little more than ten years.

 Are you aware that if you want to use different sound devices parallel
 for production, that you need to sync them?

The results of the WeGo with Mixxx is reasonably well, I don't beatmix
well enough anyway ;-)

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things.Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] USB Audio with multiple Devices

2015-05-16 Thread Marc Haber
Hallo,

a friend has lent me one Pioneer DDJ-WeGo2. That device is a DJ
controlle which has - the controller functions aside - two Audio
outputs (one RCA output for the PA and one headphone) and one
microphone input.

The normal snd-usb-audio modul takes the device, /sys entries look
like this:

|[2/499]mh@fan:~$ cat /proc/asound/cards
| 0 [SB ]: HDA-Intel - HDA ATI SB
|  HDA ATI SB at 0xfe8f4000 irq 16
| 1 [HDMI   ]: HDA-Intel - HDA ATI HDMI
|  HDA ATI HDMI at 0xfe9bc000 irq 37
| 2 [CMI8738]: CMI8738-MC6 - C-Media CMI8738
|  C-Media CMI8738 (model 55) at 0xd800, irq 22
| 3 [DDJWeGO2   ]: USB-Audio - PIONEER DDJ-WeGO2
|  Pioneer PIONEER DDJ-WeGO2 at usb-:00:13.2-1.1, full 
speed
|[3/500]mh@fan:~$ cat /proc/asound/devices
|  1:: sequencer
|  2: [ 1]   : control
|  3: [ 1- 3]: digital audio playback
|  4: [ 1- 0]: hardware dependent
|  5: [ 2]   : control
|  6: [ 2- 0]: digital audio playback
|  7: [ 2- 0]: digital audio capture
|  8: [ 2- 1]: digital audio playback
|  9: [ 2- 2]: digital audio playback
| 10: [ 2- 2]: digital audio capture
| 11: [ 2- 0]: raw midi
| 12: [ 2- 0]: hardware dependent
| 13: [ 0]   : control
| 14: [ 0- 0]: digital audio playback
| 15: [ 0- 0]: digital audio capture
| 16: [ 0- 1]: digital audio playback
| 17: [ 0- 2]: digital audio capture
| 18: [ 0- 0]: hardware dependent
| 19: [ 3]   : control
| 20: [ 3- 0]: digital audio playback
| 21: [ 3- 0]: raw midi
| 33:: timer


Alsamixer says about the DDJ-WeGo2 Chip: USB Mixer, This sound device
does not have any controls.

Why does ALSA onle see a single audio device? I think it should see
two or even three.

Do I see correctly that output played via aplayer to hw3,0 should
either show up on the RCA output or on the headphone?

The system I am trying this on has pulseaudio installed, and I'd like
to keep it for the other audio devices. Is there a chance that pulse
is interfering here? Is there a way to tell pulse to keep its fingers
off hw3?

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things.Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] digital S/PDIF recording with 44.1 kHz

2007-01-05 Thread Marc Haber
Hi,

I have a number of DAT tapes recorded with a sampling frequency of
44.1 kHz (16 bit stereo, of course), and would like to have these
recordings moved to the computer without leaving the digital domain,
and if possible without resampling. On Linux.

I own a Zoltrix Nightingale Pro 6 sound card with S/PDIF daughter
board (showing up in lspci as 02:03.0 Multimedia audio controller:
C-Media Electronics Inc CM8738 (rev 10)), which works fine on
Windows.

When I use this card with arecord on Linux
(using arecord -Dhw:0,2 -f cd), the wav file that gets written is
correctly detected by file(1) as 44.1 kHz stereo 16 bit, but is
playing back about a third too fast: A 10 seconds recording plays in
like 7 seconds, with the pitch shifted up appropriately as well. I can
upload a test file to a web server if that's of any help.

Can anybody say what is going wrong here?

My OS is Debian sid, and I can experiment, and deliver any debugging
information that might be useful.

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] digital S/PDIF recording with 44.1 kHz

2006-11-08 Thread Marc Haber
Hi again,

On Sat, Nov 04, 2006 at 11:31:10AM +0100, Marc Haber wrote:
 I have a number of DAT tapes recorded with a sampling frequency of
 44.1 kHz (16 bit stereo, of course), and would like to have these
 recordings moved to the computer without leaving the digital domain,
 and if possible without resampling. On Linux.

Looks like I have hit the wrong forum with this question. Can somebody
point me to a mailing list, forum, or newsgroup where somebody can
help me with my issue?

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Alsa-user] digital S/PDIF recording with 44.1 kHz

2006-11-04 Thread Marc Haber
Hi,

I have a number of DAT tapes recorded with a sampling frequency of
44.1 kHz (16 bit stereo, of course), and would like to have these
recordings moved to the computer without leaving the digital domain,
and if possible without resampling. On Linux.

I have bought a Zoltrix Nightingale Pro 6 sound card with S/PDIF
daughter board (showing up in lspci as 02:03.0 Multimedia audio
controller: C-Media Electronics Inc CM8738 (rev 10)), which works
fine on Windows. On Linux, it seems that I can only access the analog
inputs.

Has anybody ever gotten this sound card to deliver the signal from the
digital input to a user space application? How can I accomplish this?

In response to a hint CM8738 sucks, get a decent sound card, for
example one based on the Emu10K chip I bought a cheap SoundBlaster
Live! card with the Digital Bracket made by Hoontech, which seems to
resample the digital input to 48 kHz when used on Windows. I haven't
yet tried that card on Linux.

I'd appreciate any hints which way to go. Thanks in advance.

My OS is Debian sid, and I can experiment, and deliver any debugging
information that might be useful.

Greetings
Marc

-- 
-
Marc Haber | I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things.Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user