WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Live TC 7.2. on usb stick and macbook: no sound  (Read 15484 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #15 on: December 21, 2016, 10:55:18 AM »
which patches exactly are you talking about? link/revision?
http://ossnext.trueinstruments.com/forum/viewtopic.php?f=3&t=5800#p21140
I was referring to this OSS forum post, however I lost track of which version of sources I applied the patch too and am now unable to duplicate the successful built, for x86_64 version   Still a work in progress.

I also found that stripping the compiled sources prevent modules from loading, YMMV

The OSS offices are just up the street from me, I'm thinking about taking a walk and knocking on their door..
« Last Edit: December 21, 2016, 10:58:03 AM by coreplayer2 »

Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #16 on: December 21, 2016, 11:33:50 AM »
@ Fakir
I installed TC on a macbook air. Audio does not work for me. I installed all of the ALSA componets form the application menu, from top to bottom. Can you tell me witch files you have installed and in what order?
aplay -l:
Card 1: PCH [HDA Intel PCH], device 0: Analog CS4208 [CS4208 Analog]
alsamixer:
can not open mixer: No such file or directory
Thank you

Offline Fakir

  • Newbie
  • *
  • Posts: 12
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #17 on: December 21, 2016, 03:25:50 PM »
@ coreplayer2: not necessarily. I just used OSS before because it worked. Alsa now does the same for me. :)

@ Frank69: I did not install TC, I always use it live from of a non-writeable usb stick. First, I load and install the alsa-conf, then the alsa-modules, then its mixer.

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #18 on: December 21, 2016, 04:48:30 PM »
I'd be interested in getting OSS (and sgmixer) working on 32 bi x-86 (and also 64 bit), too.  One of the reasons I'm a bit behind the curve with TC (I'm still primarily using 4.7.7) is that I've never got alsa to work on 7.x.
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #19 on: December 22, 2016, 01:26:10 PM »
I have tried different orders and extensions but without success. I always use a fresh installaite so old files can not affect it. However, I keep getting the same error message: No such file or directory.
Does anyone have an idea?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #20 on: December 23, 2016, 01:57:21 AM »
Make sure that none of the alsa extensions are listed "onboot"

Re-boot, then:
Code: [Select]
$ tce-load -i graphics-KERNEL
$ tce-load -i alsa-config
$ tce-load -i alsa

Copy and paste any error messages here.

Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #21 on: December 23, 2016, 12:06:43 PM »
Hello Juanito. Thanks for your help. These are the steps I have made

$ tce-load -i -w graphics-KERNEL
Black screen. I rebooted the system

$ tce-load -i -w graphics-KERNEL
graphics-4.2.9-tinycore is already installed!

$ tce-load -i -w alsa-config
No errors

$ tce-load -i -w alsa
No errors

$ amixer
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

$ speaker-test
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #22 on: December 23, 2016, 12:55:45 PM »
What do "aplay -l" and "lsmod" give?
« Last Edit: December 23, 2016, 12:59:20 PM by Juanito »

Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #23 on: December 23, 2016, 03:13:31 PM »
It's a long list

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ lsmod
Module                  Size  Used by    Tainted: G 
snd_hda_codec_cirrus    12288  1
snd_hda_codec_generic    36864  1 snd_hda_codec_cirrus
snd_hda_intel          20480  0
snd_hda_codec          53248  3 snd_hda_codec_cirrus,snd_hda_codec_generic,snd_hda_intel
snd_hwdep              12288  1 snd_hda_codec
snd_hda_core           24576  3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec
snd_pcm                49152  3 snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer              20480  1 snd_pcm
snd                    36864  7 snd_hda_codec_cirrus,snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore              12288  1 snd
joydev                 16384  0
cpufreq_conservative    12288  0
cpufreq_stats          12288  0
cpufreq_powersave      12288  0
cpufreq_userspace      12288  0
squashfs               24576 103
lz4_decompress         12288  1 squashfs
loop                   16384 206
hid_apple              12288  0
r8152                  28672  0
cdc_ether              12288  0
usbnet                 20480  1 cdc_ether
mii                    12288  2 r8152,usbnet
sbs                    12288  0
video                  20480  0
sbshc                  12288  1 sbs
xhci_pci               12288  0
xhci_hcd               73728  1 xhci_pci
ac                     12288  0
battery                16384  0
lpc_ich                16384  0
pcspkr                 12288  0
thunderbolt            32768  0
mei_me                 12288  0
mei                    36864  1 mei_me
apple_bl               12288  0
backlight              12288  2 video,apple_bl

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #24 on: December 23, 2016, 09:50:25 PM »
I'm curious to know why your PCH [HDA Intel PCH] is listed as card 1, when the default playback device is usually card 0

post the output of this please
Code: [Select]
cat /proc/asound/cards

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #25 on: December 23, 2016, 11:57:46 PM »
It would be good to check that you don't have ~/.asoundrc in your backup.

Does this work:
Code: [Select]
$ speaker-test -Ddefault:1 -c2 -t wav -l1

Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #26 on: December 24, 2016, 04:12:59 AM »
@ coreplayer2
I can't find the hidden file ~ / .asoundrc in the directory / home / tc
$ cat /proc/asound/cards
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xb0a14000 irq 52

@ Juanito
Unfortunately, I see no errors but still heard nothing
$ speaker-test -Ddefault:1 -c2 -t wav -l1
speaker-test 1.1.0
Playback device is default:1
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
 1 - Front Right
Time per period = 2.850497

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #27 on: December 24, 2016, 04:13:04 AM »
Ooops my bad,  aplay -l does infact lis the sound card as device 0. 
Code: [Select]
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: CS4208 Analog [CS4208 Analog]
But I'd still like to see the result of
Code: [Select]
cat /proc/asound/cards

A handy alsa tip I use..
create a file named  'alsa'  in ~/.X.d directory with commands to setup alsa mixer simple control, eg;
/home/tc/.X.d/alsa
Code: [Select]
amixer set "Master" 80 unmute
Which sets volume to 80% and unmute's the Master Volume Control.   
@ juanito  Maybe we could ask alsa startup file to create this?  Would save folks a huge headache
just a thought

I use this technique to unmute the SPDIF controls at boot,  which enables  'SPDIF out'  via Optical cable, eg;
Code: [Select]
amixer -c 0 cset name='IEC958 Default PCM Playback Switch' on
amixer -c 1 cset name='IEC958 Playback Switch' on


Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #28 on: December 24, 2016, 04:24:30 AM »
Unfortunately, I see no errors but still heard nothing
try opening   " alsamixer"  and unmute the 'Matster control and increase the volume'
or enter this in the terminal
Code: [Select]
amixer set "Master" 80 unmute
Also take note of the sound card in use, F6 to select the device if not enabled by default
« Last Edit: December 24, 2016, 04:29:44 AM by coreplayer2 »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #29 on: December 24, 2016, 04:40:23 AM »
@ Juanito
Unfortunately, I see no errors but still heard nothing
$ speaker-test -Ddefault:1 -c2 -t wav -l1
speaker-test 1.1.0
Playback device is default:1
...
As coreplayer2 mentions, that probably means that the master volume is muted

Quote
@ juanito  Maybe we could ask alsa startup file to create this?  Would save folks a huge headache
just a thought
For me at least, if alsa-config is loaded after graphics-KERNEL (only needed if you have an hdmi device) and before alsa, then the master volume is un-muted. After that the user can adjust the various settings to their liking and use "sudo alsactl store" after alsa has been set up and add /usr/local/etc/alsa/asound.state to their backup.

@coreplayer2 - maybe you could check if alsa-config un-mutes your hardware?
« Last Edit: December 24, 2016, 04:42:10 AM by Juanito »