Re: [Alsa-user] Get SPDIF-in sample rate

2017-07-19 Thread Denis Shulyaka
2017-07-19 8:46 GMT+02:00 Clemens Ladisch : > The HID interface is managed by another driver. The kernel driver > already knows how to write to these registers with a control request > instead (see below). Could you check if a control read request works, > or if the response

Re: [Alsa-user] Get SPDIF-in sample rate

2017-07-19 Thread Clemens Ladisch
Denis Shulyaka wrote: > 2017-07-18 8:47 GMT+02:00 Clemens Ladisch: > > > Does ALSA provide any general interface for the userspace applications > > > that indicates the SPDIF source sample rate? > > > > Yes, but the USB audio driver does not implement it because the USB > > audio specification

Re: [Alsa-user] Get SPDIF-in sample rate

2017-07-18 Thread Denis Shulyaka
2017-07-18 8:47 GMT+02:00 Clemens Ladisch : > In general, SPDIF inputs do not resample, and if you try to record with > the wrong sample rate, the result has the original sample rate and is > just labelled wrong. > That is a good news, but I would still prefer to know the

Re: [Alsa-user] Get SPDIF-in sample rate

2017-07-18 Thread Clemens Ladisch
Denis Shulyaka wrote: > I have a CM106-based usb sound card (0d8c:0102) with SPDIF-In. My aim > is to decode the compressed audio formats that may come from this > source. And the first task for this is to get the original sample rate > of the source to avoid any resampling. In general, SPDIF