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-25 Thread James

On 22/04/18 13:14, Marc Haber wrote:

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


Ok, so you are making some progress and have 48000 working.

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.


Some playing with iecset gives the following:

AC3
AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
44100
AES0=0x04,AES1=0x00,AES2=0x00,AES3=0x00
48000
AES0=0x04,AES1=0x00,AES2=0x00,AES3=0x02


--
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 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 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?

Yes, the "Status: Stop" part shows more information when not stopped.


Regards,
Clemens

--
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 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
>>> rate 44100?
>>
>> Check if it's actually using 44.1 kHz when playing.
>
> How would I do that?

Check /proc/asound/cardX/stream0.

> 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.


Regards,
Clemens

--
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 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.
>
> 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.

> 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.)

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.


Regards,
Clemens

--
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 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 does not have these settings.


Regards,
Clemens

--
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 Ralf Mardorf
On Sun, 22 Apr 2018 14:07:04 +0200, Marc Haber wrote:
>> 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.

My apologies, it's a bad idea, now I notice that all cheaper
semi-professional USB devices around 300,- € only provide Coaxial
S/PDIF input and output, the only exception seems to be
Behringer, providing at least one device for around 200,- € with optical
ADAT IOs. The user manual mentions that this Behringer device's ADAT IOs
also could be used as optical S/PDIF IOs (not all devices with ADAT IOs
allow usage of those IOs as S/PDIF IOs). While I suspect (I don't know)
that the Behringer device works as good as devices from other vendors
with Linux, I've got concerns regarding durability, so I advice against
Behringer. There are second hand semi-professional PCI cards for less
than 50,-€ available, providing optical S/PDIF, but this doesn't help
you, if you need USB.

--
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 James

On 31/03/18 20:02, Marc Haber wrote:

Hi,

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.

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
iec958:CARD=SB,DEV=0
 HDA ATI SB, ALC892 Digital
 IEC958 (S/PDIF) Digital Audio Output
iec958:CARD=CMI8738,DEV=0
 C-Media CMI8738, C-Media PCI DAC/ADC
 IEC958 (S/PDIF) Digital Audio Output
iec958:CARD=Device,DEV=0
 USB Sound Device, USB Audio
 IEC958 (S/PDIF) Digital Audio Output

Hi,

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.


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

Kind Regards

James


--
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 Ralf Mardorf
On Sun, 8 Apr 2018 16:41:08 +0200, Marc Haber wrote:
>Ping? noone?

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.

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.

It isn't worth the hassle to save on the wrong things.

--
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 
>
> Default Audio Device  
>
> front:CARD=SB,DEV=0   
>
> HDA ATI