Restarting Sound (Audio) Alone Without Reboot - CentOS 7.3

General support questions
Post Reply
sshivsh
Posts: 3
Joined: 2023/06/13 08:02:27

Restarting Sound (Audio) Alone Without Reboot - CentOS 7.3

Post by sshivsh » 2023/06/13 09:46:48

Hi.

I'm looking for the recommended command to restart sound (audio) without a reboot, on CentOS 7.3. I found the links below:

viewtopic.php?f=19&t=13936&p=64528&hili ... dio#p64528
viewtopic.php?f=15&t=51637&p=219220&hil ... nd#p219220
viewtopic.php?f=13&t=46472&p=197642&hil ... nd#p197642

I don't know if my reason matters. But I'll outline it. I'm trying to write to an audio codec with a series of commands. The commands look like:

Code: Select all

# Perform a Set:
hda-verb /dev/snd/hwC0D0 0x0a 0x71c 0x10
hda-verb /dev/snd/hwC0D0 0x0a 0x71d 0x40
hda-verb /dev/snd/hwC0D0 0x0a 0x71e 0x01
hda-verb /dev/snd/hwC0D0 0x0a 0x71f 0x01

# Perform a Verify:
hda-verb /dev/snd/hwC0D0 0x0a 0xf1c 0x00
After more of these Sets & Verifys, I'd like to run the recommended command that restarts audio without a reboot.
I expect that:
  1. audio doesn't work initially
  2. the Sets & Verifys are executed
  3. the recommended command is executed
  4. audio works
Does someone know what the recommended command is ?
(By the way, audio works if a reboot is executed (instead of the recommended command)- I've checked this.)

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33240
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Restarting Sound (Audio) Alone Without Reboot - CentOS 7.3

Post by TrevorH » 2023/06/13 11:42:00

without a reboot, on CentOS 7.3.
CentOS 7.3 is completely unsupported and has gone without any updates for more than 7 *years*. Run yum update ASAP to get current. CentOS 7.3 is riddled with known security vulnerabilities and is not safe to run. The current and last CentOS 7 version is 7.9 and is the only supported version. It dies completely in almost exactly one year's time.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

sshivsh
Posts: 3
Joined: 2023/06/13 08:02:27

Re: Restarting Sound (Audio) Alone Without Reboot - CentOS 7.3

Post by sshivsh » 2023/06/14 05:55:30

Hi.

Thanks TrevorH. I will:
  1. update to CentOS 7.9 ASAP
    1. tell you what I see in CentOS 7.9. Hopefully, there will be only a minor change, to my question.
Thanks.

sshivsh
Posts: 3
Joined: 2023/06/13 08:02:27

Re: Restarting Sound (Audio) Alone Without Reboot - CentOS 7.3

Post by sshivsh » 2023/06/14 13:37:37

Hi.

I found a way to solve my problem without CentOS.

I used Red Hat Enterprise Linux (RHEL) instead. A couple of changes, to the {Vendor ID & Device ID} bytes in my BIOS binary, to match my audio codec, were enough to make audio work. The Set & Verify commands (which I mentioned in my first post) were not needed.

I believe I don't need to try different configurations in CentOS. The default RHEL configuration seems to work out of the box.

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33240
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Restarting Sound (Audio) Alone Without Reboot - CentOS 7.3

Post by TrevorH » 2023/06/14 14:09:55

Since CentOS 7 is a rebuild of the sources used to build RHEL 7, any solution you find on RHEL 7 should also work on CentOS 7.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply