Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 23 Jun 2017, 08:34
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
How to get hda-tools or hda-analyzer to work in Fatdog?
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
PappyPuppy

Joined: 30 Sep 2016
Posts: 201

PostPosted: Fri 24 Feb 2017, 13:56    Post subject:  How to get hda-tools or hda-analyzer to work in Fatdog?  

When I execute the script python run.py (after downloading the .py's into the dev/shm directory which creates the hda-analyzer directory and populates it with the scripts: hda-analyzer, hda-graph, hda-codec, hda-proc, and a couple other .py scripts.

filename: /lib/modules/3.18.7/kernel/sound/core/snd-hwdep.ko

When it runs, I have to give it the path to snd-hwdep.ko or it won't even run.

The script only gives this output, and I suspect that since none of the environment variables are set - could that have something to do with it?

No HDA codecs were found or insufficient priviledges for
/dev/snd/controlC* and /dev/snd/hwdepC*D* device files.

You may also check, if you compiled HDA driver with HWDEP
interface as well or close all application using HWDEP.

Try run this program as root user.
Using temporary directory: /dev/shm/hda-analyzer
You may remove this directory when finished or if you like to
download the most recent copy of hda-analyzer tool.
File cached /dev/shm/hda-analyzer/hda_analyzer.py
File cached /dev/shm/hda-analyzer/hda_guilib.py
File cached /dev/shm/hda-analyzer/hda_codec.py
File cached /dev/shm/hda-analyzer/hda_proc.py
File cached /dev/shm/hda-analyzer/hda_graph.py
File cached /dev/shm/hda-analyzer/hda_mixer.py
Downloaded all files, executing hda_analyzer.py

None of the CONFIG_SND_xxx variables are set, including the ones below which I assume the tool hda-analyzer might want to use:

CONFIG_SND_HDA_INTEL=m
# CONFIG_SND_HDA_HWDEP is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_INPUT_JACK is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_HDMI=y
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
CONFIG_SND_HDA_CODEC_CONEXANT=y
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CMEDIA=y
CONFIG_SND_HDA_CODEC_SI3054=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_HDA_POWER_SAVE=y
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=20

Is there a way to install hda tools on Fatdog? Can I install either hda-tools or hda-analyzer somehow? The drivers seem to be there.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 201

PostPosted: Fri 24 Feb 2017, 15:58    Post subject: hda-analyzer has main(argv)
Subject description: So it's looking for a list of files
 

But who or what is supposed to pass those.

I guess it liked the one file I passed it. Should I keep looking for other drivers and keep putting them on the line?


I need to debug the perl script because I don't want to set all those config environment variables until I know wha to tset thm eot.

My bad - it's the method read nodes that's failing - I need to see why.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 201

PostPosted: Fri 24 Feb 2017, 16:09    Post subject: This piece of code is just before the perl script peters out
Subject description: This might help - the directory I need to look at
 

def HDA_card_list():
from dircache import listdir
result = []
for name in listdir('/dev/snd/'):
if name.startswith('controlC'):
try:
fd = os.open("/dev/snd/%s" % name, os.O_RDONLY)
except OSError, msg:
continue
info = struct.pack('ii16s16s32s80s16s80s128s', 0, 0, '', '', '', '', '', '', '')
res = ioctl(fd, CTL_IOCTL_CARD_INFO, info)
a = struct.unpack('ii16s16s32s80s16s80s128s', res)
card = a[0]
components = a[8].replace('\x00', '')
if components.find('HDA:') >= 0:
result.append(HDACard(card, ctl_fd=fd))
os.close(fd)
return result
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 3051
Location: The Blue Marble

PostPosted: Fri 24 Feb 2017, 17:26    Post subject: Re: Trying to get hda-analyzer to work  

PappyPuppy wrote:
Is there a way to install hda tools on Fatdog? Can I install either hda-tools or hda-analyzer somehow? The drivers seem to be there.

No, unless you want to build a custom kernel. hda-analyzer requires CONFIG_SND_HDA_HWDEP which is not enabled in Fatdog's kernel.

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 201

PostPosted: Fri 24 Feb 2017, 17:30    Post subject: Scripts and Codec information appear to be missing
Subject description: or not found.
 

The hda-analyzer.py script has a section where it looks for information and does not find either of the below strings:

"ALSA Information Script"
"HDA-Intel Codec information"
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 201

PostPosted: Fri 24 Feb 2017, 17:42    Post subject: I found a script called alsa-info-alsa-info.sh
Subject description: And I saved it as alsa-info.sh I believe , a copy
 

I ran it and it created a diagnostics file in /tmp

/tmp/alsa-info.txt.sAUcdijdAY

It asked if I wanted to share/upload or save locally. I saved it. So this is half of what hda-analyzer.py might want. So I'll just run it without the HDA stuff for now, then I'l ltry it WITH the hda script if I cdan find it on some website.

Here goes ...
Back to top
View user's profile Send private message 
PappyPuppy

Joined: 30 Sep 2016
Posts: 201

PostPosted: Wed 01 Mar 2017, 14:00    Post subject: I tried a command today that works for hda-analyzer
Subject description: python run.py /proc/asound/card0/codec#0
 

The below command populates the screen with information but I'm not sure that the driver is being found - perhaps I need to do more to get the driver displayed - this might be importan.
python run.py /proc/asound/card0/codec#0

It has Card1000, ProcID, ProcDriver, that kind of stuff - not exactly what it should have. But at least it has the info for each pin now.
hda-analyzer.jpg
Description 
jpg

 Download 
Filename  hda-analyzer.jpg 
Filesize  67.84 KB 
Downloaded  30 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0454s ][ Queries: 14 (0.0060s) ][ GZIP on ]