LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-19-2020, 09:21 AM   #1
TomasFilip
LQ Newbie
 
Registered: Sep 2020
Posts: 3

Rep: Reputation: Disabled
Set PC Beeper rounting to HDA by command line with coefficient registers


Hello all,

I'm trying to configure HDA Realtek ALC888 and ALC262 codec to redirect standard PC Beeper to Line Out/HP out signal. The best will by command line (or C program) to setup for HDA codec. Speaker signals on buzzer is working well but not throught HDA.

I understant hint is described by PC Beep Hidden Register. I'm found it here

https://www.kernel.org/doc/html/late...k-pc-beep.html

From datasheet, of ALC262 looks that registers are plus minus correct.
page 34. http://realtek.info/pdf/alc262.pdf

Is there any way how to read or just write processing coefficient 0x36 on NID 20h, with proper value from command line?

I'm not sure, looks that /sys/class/sound/hwC0D0/user_pin_configs can be way how to access it, but I don't how to connect coefficients index/registers with that command.

Short example will be very helpfull or any way how to do it
 
Old 09-20-2020, 02:46 PM   #2
EdGr
Senior Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 1,055

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Hardware registers can only be written by the kernel device drivers.

You can download the kernel source and modify the driver.

If you are doing this work commercially, first check that modifying GPL'ed code is okay.
Ed
 
Old 09-20-2020, 06:50 PM   #3
TomasFilip
LQ Newbie
 
Registered: Sep 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
Kernel Patch

thanks for advice EdGr, I will conntinue to patch_realtek.c code.
I'm just hope for easier access..
 
Old 09-30-2020, 10:14 AM   #4
TomasFilip
LQ Newbie
 
Registered: Sep 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
set coefficient registers

for info in the articale, there is way how to setup a register by hda-verb

hda-verb /dev/snd/hwC0DX 0x20 SET_COEF_INDEX 0x36
hda-verb /dev/snd/hwC0DX 0x20 SET_PROC_COEF 0x3717

hwC0DX just needs to be adjusted to right codec, most likely 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing registers with gdb: "No registers" is all I get. stf92 Slackware 2 03-09-2015 03:41 PM
[SOLVED] Desktop beeper (aka internal speaker) with polarity? stf92 Linux - Hardware 17 01-15-2013 02:17 PM
fomula for coefficient for quadratic equation JAPANBOY Programming 4 06-25-2011 02:21 PM
iproute2 rounting sqn Linux - Networking 1 06-14-2004 03:26 PM
Disabling Beeper serenity999 Linux - General 2 10-20-2003 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration