Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa - not quite right yet
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 910
Location: Alaska

PostPosted: Thu Feb 02, 2023 8:03 pm    Post subject: Alsa - not quite right yet Reply with quote

This is low priority because at least I have sound working.

I just migrated to a new computer and copied my config files over. Sound is working fine although at one point when I plugged in a USB audio interface (Scarlett) it tagged that as default and I lost my browser sound. That seems to be sorted now by a reboot is all.

In the KDE launch panel that shows notifications, speaker, clipboard.. etc.. the speaker icon has a red slash across it like it isn't correct. If I click on that, I can adjust volume for the motherboard audio and browser volumes if active (google-chrome and firefox). But if I click on the speaker icon and then the slider icon in lower right corner, all I get is one tab for HD-Audio Generic and on that tab is to names: IEC958 and IEC958 2. The "all controls" button says already showing if I click it. The old computer, when clicking on the speaker icon, showed all the sliders for headphone.. etc. like when I currently fire up alsamixer, which also shows HD-Audio Generic.

The particulars:
~./.asoundrc:
Code:
#pcm.!default {
#  type plug
#  slave {
#    pcm "hw:1,0"
#  }
#}
#ctl.!default {
#  type hw
#  card 1
#}

#defaults.pcm.!card PCH
#defaults.pcm.!device 1
#defaults.pcm.!ctl PCH

#pcm.!default {
#type hw
#card 1
#device 0
#}
defaults.pcm.!card Generic_1
defaults.pcm.!device 0
defaults.ctl.!card Generic_1



Code:
$ cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfcc88000 irq 71
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfcc80000 irq 72
 2 [USB            ]: USB-Audio - Scarlett 2i2 USB
                      Focusrite Scarlett 2i2 USB at usb-0000:07:00.3-1, high speed


Code:
$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=Generic,DEV=0
    HD-Audio Generic, HDMI 0
    HDMI Audio Output
hdmi:CARD=Generic,DEV=1
    HD-Audio Generic, DELL U2713HM
    HDMI Audio Output
default:CARD=Generic_1
    HD-Audio Generic, ALCS1200A Analog
    Default Audio Device
sysdefault:CARD=Generic_1
    HD-Audio Generic, ALCS1200A Analog
    Default Audio Device
front:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    Front output / input
surround21:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALCS1200A Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Generic_1,DEV=0
    HD-Audio Generic, ALCS1200A Digital
    IEC958 (S/PDIF) Digital Audio Output
default:CARD=USB
    Scarlett 2i2 USB, USB Audio
    Default Audio Device
sysdefault:CARD=USB
    Scarlett 2i2 USB, USB Audio
    Default Audio Device
front:CARD=USB,DEV=0
    Scarlett 2i2 USB, USB Audio
    Front output / input
surround21:CARD=USB,DEV=0
    Scarlett 2i2 USB, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=USB,DEV=0
    Scarlett 2i2 USB, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=USB,DEV=0
    Scarlett 2i2 USB, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=USB,DEV=0
    Scarlett 2i2 USB, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=USB,DEV=0
    Scarlett 2i2 USB, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=USB,DEV=0
    Scarlett 2i2 USB, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=USB,DEV=0
    Scarlett 2i2 USB, USB Audio
    IEC958 (S/PDIF) Digital Audio Output
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Feb 02, 2023 10:48 pm    Post subject: Reply with quote

Please post the output of
Code:
aplay -l

What happens if you write the lines below to ~./.asoundrc:
Code:
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1

Do you have a file /etc/asoundrc? Please post it.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4146
Location: Bavaria

PostPosted: Thu Feb 02, 2023 11:39 pm    Post subject: Reply with quote

mike155 wrote:
Do you have a file /etc/asoundrc? Please post it.

... or /etc/asound.conf ? If yes, please post it.
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 910
Location: Alaska

PostPosted: Fri Feb 03, 2023 3:42 am    Post subject: Reply with quote

Thank you for the reply.

mike155 wrote:
Please post the output of
Code:
aplay -l


Here:
Code:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [DELL U2713HM]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 0: ALCS1200A Analog [ALCS1200A Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic_1 [HD-Audio Generic], device 1: ALCS1200A Digital [ALCS1200A Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: USB [Scarlett 2i2 USB], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Quote:
What happens if you write the lines below to ~./.asoundrc:
Code:
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1


Doesn't seem to make any change at all.


Quote:
Do you have a file /etc/asoundrc? Please post it.


No I do not.


Last edited by hunky on Fri Feb 03, 2023 3:48 am; edited 2 times in total
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 910
Location: Alaska

PostPosted: Fri Feb 03, 2023 3:45 am    Post subject: Reply with quote

pietinger wrote:
mike155 wrote:
Do you have a file /etc/asoundrc? Please post it.

... or /etc/asound.conf ? If yes, please post it.


thanks! But no, I do not.
Back to top
View user's profile Send private message
sdauth
Guru
Guru


Joined: 19 Sep 2018
Posts: 569
Location: Ásgarðr

PostPosted: Fri Feb 03, 2023 9:50 am    Post subject: Reply with quote

Do you have a /etc/modprobe/alsa.conf ?
In my particular setup, since I only use a USB soundcard and I don't need anything else, I have this :

Code:
options snd_usb_audio index=0
# disable hdmi (0), disable internal (0), enable usb (1)
options snd_hda_intel index=-2 enable=0,0,1


HDMI (don't use that) & Internal (audio jack broken on case) are disabled and only usb is enabled and made default (index=0)

In your case, you could try to add :
Code:
snd_usb_audio index=2


so it doesn't mess with internal (and default). I vaguely remember sometimes after a reboot the index was changing itself and consequently I lost sound. (the above config fixes it)
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 910
Location: Alaska

PostPosted: Fri Feb 03, 2023 6:57 pm    Post subject: Reply with quote

sdauth wrote:
Do you have a /etc/modprobe/alsa.conf ?


I had forgotten about that file.. I do have it copied over when I migrated from an old system, apparently. But I don't think I have any alsa modules (everything built into the kernel regarding sound), if that matters. And when I googled that file, I found this bug: https://bugs.gentoo.org/713732 that states the file is obsolete and they are quitting it.

Nevertheless, I could try your suggestion to keep the USB device from becoming default.

The file is a mess from the old days. I could probably get rid of all the OSS stuff but not really sure about anything else.:
Code:

$ cat /etc/modprobe.d/alsa.conf
# Alsa kernel modules' configuration file.

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
##  ALSA portion
## alias snd-card-0 snd-interwave
## alias snd-card-1 snd-ens1371
##  OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
##  OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1
Back to top
View user's profile Send private message
hunky
l33t
l33t


Joined: 19 Nov 2003
Posts: 910
Location: Alaska

PostPosted: Fri Feb 03, 2023 8:13 pm    Post subject: Reply with quote

Poking around I found another file dated 2014. It is:
Code:
 ~./.alsaplayer
#
# alsaplayer config file
#
# Only edit this file if the application is not active.
# Any modifications might (will!) be lost otherwise.
#
http.buffer_size=1048576
mad.parse_id3=true
main.default_interface=gtk2
main.default_output=alsa
main.fallback_interface=text
main.period_count=8
main.period_size=4096
main.play_on_start=false


Googling this file hasn't shown me much yet. I nuked it and no change.

And this file:
Code:
.kmixrc
[Configure]
Height 1080=505
Height 1200=463
Width 1920=622

[DialogAddView]
Height 1080=312
Height 1200=312
Width 1920=268

[DialogSelectMaster]
Height 1200=318
Width 1920=319

[DialogViewConfiguration]
Height 1080=298
Width 1920=644

[Global]
AutoUseMultimediaKeys=true
ConfigVersion=3
DefaultCardOnStart=ALSA.HDA_Intel_PCH.1.default
MasterMixer=ALSA::HD-Audio_Generic:1
MasterMixerDevice=IEC958:0
Menubar=true
MixerIgnoreExpression=Modem
Position=32,65
Size=640,480
Soundmenu.Mixers=MPRIS2::Playback_Streams:1,ALSA::HD-Audio_Generic:1
Visible=false
VolumeFeedback=false

[Profiles]
ALSA::HD-Audio_Generic:1=ALSA.HD-Audio_Generic.1.default
ALSA::HDA_Intel_HDMI:1=ALSA.HDA_Intel_HDMI.1.default
ALSA::HDA_Intel_PCH:1=ALSA.HDA_Intel_PCH.1.default,ALSA.HDA_Intel_PCH.1.playback
ALSA::QuickCam_Pro_9000:1=
ALSA::Scarlett_2i2_USB:1=
MPRIS2::Playback_Streams:1=

[View.ALSA.HD-Audio_Generic.1.default.ALSA::HD-Audio_Generic:1.IEC958:0]
Split=false

[View.ALSA.HD-Audio_Generic.1.default.ALSA::HD-Audio_Generic:1.IEC958:1]
Split=false

[View.ALSA.HDA_Intel_HDMI.1.default.ALSA::HDA_Intel_HDMI:1.IEC958:0]
Split=false

[View.ALSA.HDA_Intel_HDMI.1.default.ALSA::HDA_Intel_HDMI:1.IEC958:1]
Split=false

[View.ALSA.HDA_Intel_HDMI.1.default.ALSA::HDA_Intel_HDMI:1.IEC958:2]
Split=false

[View.ALSA.HDA_Intel_HDMI.1.default.ALSA::HDA_Intel_HDMI:1.IEC958:3]
Split=false

[View.ALSA.HDA_Intel_HDMI.1.default.ALSA::HDA_Intel_HDMI:1.IEC958:4]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Beep:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Capture:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Capture:1]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Center:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Digital:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Front:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Front_Mic:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Front_Mic_Boost:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Headphone:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.IEC958:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.IEC958_Default_PCM:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.LFE:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Line:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Line_Boost:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Master:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.PCM:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Rear_Mic:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Rear_Mic_Boost:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.default.ALSA::HDA_Intel_PCH:1.Surround:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Beep:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Center:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Front:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Front_Mic:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Front_Mic_Boost:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Headphone:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.IEC958:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.IEC958_Default_PCM:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.LFE:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Line:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Line_Boost:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Master:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.PCM:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Rear_Mic:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Rear_Mic_Boost:0]
Split=false

[View.ALSA.HDA_Intel_PCH.1.playback.ALSA::HDA_Intel_PCH:1.Surround:0]
Split=false

[View.ALSA.QuickCam_Pro_9000.1.default.ALSA::QuickCam_Pro_9000:1.Mic:0]
Split=false
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
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