WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help required ... TCL + DeadBeeF + M2Tech HiFace  (Read 2664 times)

Offline Ipoci

  • WikiUser
  • *
  • Posts: 6
Help required ... TCL + DeadBeeF + M2Tech HiFace
« on: August 26, 2013, 11:53:33 AM »
Hi team.

I need suggestions in order to make my USB>SPDIF converter working under TCL/DeadBeef installation. The converter is well known M2Tech EVO and works with Linux environment:

http://www.m2tech.biz/evo.html#driver

Linux installation procedure:

https://github.com/panicking/snd-usb-asyncaudio/wiki

How can I do the same with TCL ?

Thanks in advance. Max

Offline bibo01

  • WikiUser
  • *
  • Posts: 27
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #1 on: August 26, 2013, 11:15:50 PM »
I give it a go...

Following Juanito's advice from a previous thread, you need to DL and load (or "on Boot" if you prefer) the following extensions:
- compiletc
- linux-headers tinycore 3.0.21
- bash
- ncurses-dev
- perl5

Then, following wiki you posted, DL and load the following extension:
- git

Open Terminal:
$ git clone git://github.com/panicking/snd-usb-asyncaudio.git
$ cd snd-usb-asyncaudio
$ make

You can install the module or just run:
$ sudo insmod snd-usb-asyncaudio.ko

The very last command did not work. Perhaps because I do not have such audio card in my system, but everything is confirmed saved on USB pendrive.
Perhaps a moderator can confirm that the last command can be accepted by TCL.
You can try on your system. If it works, you should be able to have it installing at boot time. 

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 7673
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #2 on: August 27, 2013, 08:53:34 AM »
Hi bibo01
Quote
$ sudo insmod snd-usb-asyncaudio.ko
I think  modprobe  is the preferred command.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #3 on: August 27, 2013, 08:59:39 AM »
Hi bibo01
Quote
$ sudo insmod snd-usb-asyncaudio.ko
I think  modprobe  is the preferred command.

After first running
Code: [Select]
depmod -a
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Ipoci

  • WikiUser
  • *
  • Posts: 6
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #4 on: August 28, 2013, 12:14:04 PM »
Something doesn't work during final command:

This seems OK

$ git clone git://github.com/panicking/snd-usb-asyncaudio.git
Cloning into 'snd-usb-asyncaudio'...
remote: Counting objects: 525, done.
remote: Compressing objects: 100% (184/184), done.
remote: Total 525 (delta 347), reused 519 (delta 341)
Receiving objects: 100% (525/525), 86.25 KiB, done.
Resolving deltas: 100% (347/347), done.[/size][/size]

This seems OK

tc@box:~$ cd snd-usb-asyncaudio
tc@box:~/snd-usb-asyncaudio$ make
make -C /lib/modules/3.0.21-tinycore/build SUBDIRS=/home/tc/snd-usb-asyncaudio modules
make[1]: Entering directory `/usr/local/src/linux-headers-3.0.21-tinycore'
  CC [M]  /home/tc/snd-usb-asyncaudio/chip.o
  CC [M]  /home/tc/snd-usb-asyncaudio/pcm.o
/home/tc/snd-usb-asyncaudio/pcm.c:72:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
/home/tc/snd-usb-asyncaudio/pcm.c: In function 'hiface_pcm_open':
/home/tc/snd-usb-asyncaudio/pcm.c:385:8: warning: passing argument 4 of 'snd_pcm_hw_constraint_list' discards 'const' qualifier from pointer target type [enabled by default]

/home/tc/snd-usb-asyncaudio/pcm.c:385:8: warning: passing argument 4 of 'snd_pcm_hw_constraint_list' discards 'const' qualifier from pointer target type [enabled by default]
include/sound/pcm.h:792:5: note: expected 'struct snd_pcm_hw_constraint_list *' but argument is of type 'const struct snd_pcm_hw_constraint_list *'
  LD [M]  /home/tc/snd-usb-asyncaudio/snd-usb-hiface.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/tc/snd-usb-asyncaudio/snd-usb-hiface.mod.o
  LD [M]  /home/tc/snd-usb-asyncaudio/snd-usb-hiface.ko
make[1]: Leaving directory `/usr/local/src/linux-headers-3.0.21-tinycore'

This NOT OK

$ sudo modprobe snd-usb-asyncaudio.ko
modprobe: module snd-usb-asyncaudio.ko not found in modules.dep

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #5 on: August 28, 2013, 01:45:12 PM »
See Replies #1-3.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #6 on: August 28, 2013, 02:27:53 PM »
modprobe does not require the '.ko'.

Offline Ipoci

  • WikiUser
  • *
  • Posts: 6
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #7 on: August 28, 2013, 11:34:00 PM »
Unfortunately same error with or without the .ko extension

Max

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 11913
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #8 on: August 28, 2013, 11:55:37 PM »
Did you do:
Code: [Select]
$ sudo depmod -a
$ sudo modprobe snd-usb-asyncaudio

Offline Ipoci

  • WikiUser
  • *
  • Posts: 6
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #9 on: August 29, 2013, 02:46:25 AM »
First command good ...

$ sudo depmod -a

Then second part still have issues, I tried various files ...

tc@box:~/snd-usb-asyncaudio$ ls -l
total 100
-rw-r--r--    1 tc       staff          230 Aug 29 08:25 Makefile
-rw-r--r--    1 tc       staff            0 Aug 29 08:26 Module.symvers
-rw-r--r--    1 tc       staff         7765 Aug 29 08:25 chip.c
-rw-r--r--    1 tc       staff          815 Aug 29 08:25 chip.h
-rw-r--r--    1 tc       staff         6616 Aug 29 08:26 chip.o
-rw-r--r--    1 tc       staff          197 Aug 29 08:25 dkms.conf
-rw-r--r--    1 tc       staff           53 Aug 29 08:26 modules.order
-rw-r--r--    1 tc       staff        15226 Aug 29 08:25 pcm.c
-rw-r--r--    1 tc       staff          776 Aug 29 08:25 pcm.h
-rw-r--r--    1 tc       staff         6128 Aug 29 08:26 pcm.o
-rw-r--r--    1 tc       staff        13693 Aug 29 08:26 snd-usb-hiface.ko
-rw-r--r--    1 tc       staff         1373 Aug 29 08:26 snd-usb-hiface.mod.c
-rw-r--r--    1 tc       staff         2592 Aug 29 08:26 snd-usb-hiface.mod.o
-rw-r--r--    1 tc       staff        11729 Aug 29 08:26 snd-usb-hiface.o
-rwxr-xr-x    1 tc       staff          481 Aug 29 08:25 test-rates.sh
tc@box:~/snd-usb-asyncaudio$
tc@box:~/snd-usb-asyncaudio$
tc@box:~/snd-usb-asyncaudio$ sudo modprobe snd-usb-asyncaudio
modprobe: module snd-usb-asyncaudio not found in modules.dep
tc@box:~/snd-usb-asyncaudio$
tc@box:~/snd-usb-asyncaudio$
tc@box:~/snd-usb-asyncaudio$ sudo modprobe snd-usb-asyncaudio.ko
modprobe: module snd-usb-asyncaudio.ko not found in modules.dep
tc@box:~/snd-usb-asyncaudio$
tc@box:~/snd-usb-asyncaudio$ sudo modprobe  snd-usb-hiface
modprobe: module snd-usb-hiface not found in modules.dep
tc@box:~/snd-usb-asyncaudio$ sudo modprobe  snd-usb-hiface.ko
modprobe: module snd-usb-hiface.ko not found in modules.dep

Max

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #10 on: August 29, 2013, 03:12:57 AM »
cp the module (*.ko) to some path where other alsa modules (snd*.ko) reside before running depmod.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 7673
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #11 on: August 29, 2013, 09:02:49 AM »
Hi Ipoci
Quote
tc@box:~/snd-usb-asyncaudio$ ls -l
total 100
-rw-r--r--    1 tc       staff          230 Aug 29 08:25 Makefile
-rw-r--r--    1 tc       staff            0 Aug 29 08:26 Module.symvers
-rw-r--r--    1 tc       staff         7765 Aug 29 08:25 chip.c
-rw-r--r--    1 tc       staff          815 Aug 29 08:25 chip.h
-rw-r--r--    1 tc       staff         6616 Aug 29 08:26 chip.o
-rw-r--r--    1 tc       staff          197 Aug 29 08:25 dkms.conf
-rw-r--r--    1 tc       staff           53 Aug 29 08:26 modules.order
-rw-r--r--    1 tc       staff        15226 Aug 29 08:25 pcm.c
-rw-r--r--    1 tc       staff          776 Aug 29 08:25 pcm.h
-rw-r--r--    1 tc       staff         6128 Aug 29 08:26 pcm.o
-rw-r--r--    1 tc       staff        13693 Aug 29 08:26 snd-usb-hiface.ko
-rw-r--r--    1 tc       staff         1373 Aug 29 08:26 snd-usb-hiface.mod.c
-rw-r--r--    1 tc       staff         2592 Aug 29 08:26 snd-usb-hiface.mod.o
-rw-r--r--    1 tc       staff        11729 Aug 29 08:26 snd-usb-hiface.o
-rwxr-xr-x    1 tc       staff          481 Aug 29 08:25 test-rates.sh
I don't see anything called  snd-usb-asyncaudio.ko  in that list.

Offline Ipoci

  • WikiUser
  • *
  • Posts: 6
Re: Help required ... TCL + DeadBeeF + M2Tech HiFace
« Reply #12 on: August 29, 2013, 10:18:31 AM »
Yeah, last version of driver change filename to " snd-usb-hiface.ko " but as you can see from my previous post I also tried the right one without success... Driver developer just confirmed me the name ( thanks Michael ) ...

But due to the fact I'm a stubborn, I did the following steps:

- deleted the /home/tc/snd-usb-asyncaudio directory
- moved to root /
- did again the installation procedure using sudo in front of commands ( now directory is /snd-usb-asyncaudio )
- as final " /snd-usb-asyncaudio/sudo insmod snd-usb-hiface.ko "

And now works ... DeadBeef see Hiface and sounds ... :-)

Not sure if everything will remain as is after a reload but 1st step is definitely achieved !

Thanks for the moment. Max