Re: Configuring ALSA and SCHIIT BIfrost for "bit perfect"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12.09.2012 02:37, chris hermansen wrote:
> The build and install appeared to work just fine, though it seems one
> no longer needs to run the "update-initramfs" nor "update-grub" as
> they are executed by the dpkg on the image file.
> 
> The system rebooted fine, and according to uname -a I am now running
> 
> 3.6.0-rc3-custom #1 SMP Tue Sep 11 10:02:55 PDT 2012 i686 athlon i686 GNU/Linux[
> 
> which seems about right.
> 
> Finally, just to check that the patch is really there:
> 
> clh@nice:~/src/sound$ grep -i schiit sound/usb/quirks.c
> 	case USB_ID(0x0d8c, 0x0304): /* CMEDIA - Schiit USB Interface */
> 
> so that looks ok too.

Yes, well done :)

> So - all good, I guess!  Except that the !@)#!#*&$ thing still doesn't work:
> 
> using Guayadeque 3.5- with the output device set to hw:1,0 which is my
> Schiit Bifrost
> 
> If I start by playing a 44.1 16bit file, I get great sound.  If I then
> switch to a 192 24bit file, I can hear the elements of the melody but
> the instruments all sound completely unlike they are supposed to - a
> sort of tinny, grinding character.
> 
> If I then stop and restart the 192 24bit file, most of the time it
> soulnds just fine.
> 
> Same problem occurs now when I switch back to a 44.1 16 bit file.
> 
> Looking at the /proc/asound/card1/stream0 file, when the 192k 24bit
> file is playing poorly, it looks like this:
> 
> CMEDIA Schiit USB Interface at usb-0000:00:13.5-5, high speed : USB Audio
> 
> Playback:
>   Status: Running
>     Interface = 1
>     Altset = 2
>     Packet Size = 208
>     Momentary freq = 176426 Hz (0x16.0da0)
>     Feedback Format = 10.14
                        ^^^^^

>     Packet Size = 0
>     Momentary freq = 192000 Hz (0x18.0000)
>   Interface 1
>     Altset 1
>     Format: S16_LE
>     Channels: 2
>     Endpoint: 5 OUT (ASYNC)
>     Rates: 44100, 48000, 88200, 96000, 192000
>     Data packet interval: 125 us
>   Interface 1
>     Altset 2
>     Format: S32_LE
>     Channels: 2
>     Endpoint: 5 OUT (ASYNC)
>     Rates: 44100, 48000, 88200, 96000, 192000
>     Data packet interval: 125 us
> 
> (note the momentary frequenccy is closer to 176k than 192k)
> 
> Once I stop and restart it, the file looks like:
> 
> CMEDIA Schiit USB Interface at usb-0000:00:13.5-5, high speed : USB Audio
> 
> Playback:
>   Status: Running
>     Interface = 1
>     Altset = 2
>     Packet Size = 208
>     Momentary freq = 192027 Hz (0x18.00e0)
>     Feedback Format = 8.16
                        ^^^^

>     Packet Size = 0
>     Momentary freq = 192000 Hz (0x18.0000)
>   Interface 1
>     Altset 1
>     Format: S16_LE
>     Channels: 2
>     Endpoint: 5 OUT (ASYNC)
>     Rates: 44100, 48000, 88200, 96000, 192000
>     Data packet interval: 125 us
>   Interface 1
>     Altset 2
>     Format: S32_LE
>     Channels: 2
>     Endpoint: 5 OUT (ASYNC)
>     Rates: 44100, 48000, 88200, 96000, 192000
>     Data packet interval: 125 us
> 
> Going back the other way, the momentary frequency line first looks like:
> 
>     Momentary freq = 48007 Hz (0x6.0038)
> 
> then after re-start like this:
> 
>     Momentary freq = 44106 Hz (0x5.8368)
> 

Yes, it seems the feedback format detector still assumes wrong things.

What you could try is to make the driver ignore more of these packets by
changing the value in sound/usb/quirks.c (in the line that was added by
the path). Then rebuild, reinstall, reboot and test. Try higher values,
like ep->skip_packets = 50 or so maybe.

If that doesn't help, I need to come up with another idea.


Daniel


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux