[Voyage-linux] Voyage-linux Digest, Vol 95, Issue 4
Demian Martin
(spam-protected)
Sun Nov 11 11:31:09 HKT 2012
I have the HiFace adapter working now on all the sample rates. I did a few
hacks to integrate the source into Linux3.6.6 Kernel and compiled and it
all worked fine.
I have attached the revised Kconfig and Makefile. These go into the
/sound/usb directory of the source tree. I have only tested it in 3.6.6. I
hope the author can be persuaded to submit it to Alsa.
Here is the config stuff for mpd:
#
audio_output {
type "alsa"
name "USB"
device "hw:1" # optional
}
#
If there is a problem it may be because I forgot some tweak, or because its
not destined to work in any other implementation and I was just lucky. Let
me know and I'll check what I did.
> -----Original Message-----
> From: Demian Martin [mailto:demian at auraliti.com]
> Sent: Monday, November 05, 2012 8:34 PM
> To: 'voyage-linux at list.voyage.hk'; 'martin.larsson2 at gmail.com';
> 'grossi at di.unipi.it'
> Subject: RE: Voyage-linux Digest, Vol 95, Issue 4
>
> There are two hurdles to getting a new sound device working in Linux. The
> first is the driver. I followed the link and figured out how to patch it
into the
> Kernel I'm using and get it to compile successfully. It would be great to
have
> the author submit it to Alsa and get it into the Kernel. I find these
isolated
> drivers a pain to maintain. The second is getting the interface talking
> correctly. My suggestions follow.
>
> I'll have a HiFace here in a day to try but from the notes posted I would
> suggest you use this to test:
> aplay -v -D plughw:0,0 file.wav # the "plughw" tells alsa to reformat to
> match the device.
>
> New versions of mpd (16 and above) will format to 24 bit internally, but I
use
> this for USB and it seems to always work. If not change it to plughw and
try.
>
> audio_output {
> type "alsa"
> name "USB"
> device "hw:1" # optional
> mixer_device "none" # optional
> # mixer_device "hw:1" # optional
> # mixer_control "PCM" # optional
> # mixer_index "0" # optional
> }
>
> There is a way to restrict usb audio devices to enumerate to device 1 and
up.
> I have forgotten how I did it.
> Demian
>
> > -----Original Message-----
> >
> > ---------- Forwarded message ----------
> > From: Martin Larsson <martin.larsson2 at gmail.com>
> > Date: Mon, Nov 5, 2012 at 7:23 PM
> > Subject: Re: [Voyage-linux] compiling kernel module for Hiface 1
> > drivers
> > To: Roberto Grossi <grossi at di.unipi.it>
> >
> >
> > Yeah I'm trying to NOT play 32bit :) Are you sure it played 96khz? and
> > 44 worked as well? how did you configure alsa/mpd? Feels like i've
> > tried everything.
> >
> > thanks for the info
> >
> > best regards martin
> >
> >
> > On Mon, Nov 5, 2012 at 5:00 PM, Roberto Grossi <grossi at di.unipi.it>
> wrote:
> >
> > > My Dac can handle 24/192 but the hiFace is integrated in a Behringer
> > > 24/96, so this the max resolution I can check.
> > > Not sure that you need to use 32 bits any way
> > >
> > > Cheers
> > > Roberto
> > >
> > >
> > > On Mon, Nov 5, 2012 at 3:50 PM, Martin Larsson
> > <martin.larsson2 at gmail.com>wrote:
> > >
> > >> Can your dac handle 32bit input? According to an alsa guy I talked
> > >> to on IRC, the driver in its current state can only use 32bit.
> > >>
> > >> best regards
> > >> martin
> > >>
> > >>
> > >> On Mon, Nov 5, 2012 at 2:05 PM, Roberto Grossi
> > <grossi at di.unipi.it>wrote:
> > >>
> > >>> Sorry, I thought you had some special config. BTW, the author of
> > >>> the drive is from Pisa, so I'm going to meet him in few days since I
live
> here.
> > >>>
> > >>> As for mpd, it does not resample in my case:
> > >>>
> > >>> cat /proc/asound/hiFace/pcm0p/sub0/hw_params
> > >>> access: MMAP_INTERLEAVED
> > >>> format: S32_LE
> > >>> subformat: STD
> > >>> channels: 2
> > >>> rate: 44100 (44100/1)
> > >>> period_size: 4096
> > >>> buffer_size: 8192
> > >>>
> > >>>
> > >>> Cheers
> > >>> -Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Kconfig
Type: application/octet-stream
Size: 3712 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20121110/a2c509b9/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 533 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20121110/a2c509b9/attachment-0001.obj>
More information about the Voyage-linux
mailing list