I am using Debian 7 wheezy(64 bit) in dell inspiron i5. Default audio driver in pulseaudio and other two are HDA Intel and HDA ATI HDMI .
So here is the question when increase or decrease volume from any player like vlc,movie player volume increase in pulseaudio but it also make the speaker and PCM volume 100% in HDA Intel driver which make my speaker mad and gives very odd sound. I check it from alsamixer
This is three driver default pulseaudio
I change the driver to hda intel and this is what i set in hda Intel Driver
I change driver back to pulseaudio and increase or decrease volume from any player or system volume, here is the setting of hda Intel Driver again speaker and PCM 100%
So my problem is, i dont want that setting of hda driver to be changed if i increase or decrease volume.
Related
I have recently discovered that my NVIDIA GTX1650TI is not being used for graphical processing to my main display, instead my Ryzen 5 5000 series iGPU is. Would I be able to use my NVIDIA GPU as my main one for my main display (in-built monitor).
I have tried:
Installing NVIDIA Drivers
Editing X11/Xorg config files
Reinstalling
Adding nvidia-primary.conf to /etc/X11/xorg.conf.d (this works with the HDMI port but doesn't output anything to display as NVIDIA isn't connected to in-built display, Ryzen is)
NVIDIA-PRIMARY.conf CONTENTS:
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "SLI" "Auto"
Option "BaseMosaic" "on"
Option "PrimaryGPU" "yes"
EndSection
Section "ServerLayout"
Identifier "layout"
Option "AllowNVIDIAGPUScreens"
Option "PrimaryGPU" "yes"
EndSection
and messing around with NVIDIA Prime
what should I do?
My specs are as follows:
Laptop: HP Pavilion 15-ec2051AX
Graphics Card: NVIDIA GTX1650
CPU: AMD Ryzen 5 5600H
RAM: 32GB
Storage: 512GB NvME SSD
During the installation, we are supposed to check the sound card by pressing ‘arecord -L’ to obtain a certain output like shown below,
pi#raspberrypi:~ $ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
default
playback
ac108
sysdefault:CARD=seeed4micvoicec
seeed-4mic-voicecard,
Default Audio Device
dmix:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct sample mixing device
dsnoop:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct sample snooping device
hw:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Direct hardware device without any conversions
plughw:CARD=seeed4micvoicec,DEV=0
seeed-4mic-voicecard,
Hardware device with all software conversions
usbstream:CARD=seeed4micvoicec
seeed-4mic-voicecard
USB Stream Output
usbstream:CARD=ALSA
bcm2835 ALSA
USB Stream Output
However, the output that I have received is as shown below,
Screenshot of Output
It basically shows that I don’t have the ALSA soundcard, and I cant move on to the sound localization process. Please show how can I move forward, thanks!
I recently installed Fedora 35. I used an HDMI cable to use a TV as a second screen. I am able to use the video, but the audio does not work on the screen when using this computer.
Fedora 35 currently uses pipeware + wireplumber by default, as described at https://fedoraproject.org/wiki/Changes/WirePlumber
I already tried to switch to pipewire-media-session as described above, but it did not work.
The sound through HDMI works: I can play a testing sound using speaker-test:
$ speaker-test -c2 -f440 -tsine -Dhdmi:CARD=PCH,DEV=0
gnome-settings shows me "HDMI/DisplayPort - Internal audio" as an option to use, but there is no sound.
However, the sound does not work using pipeware on Gnome. Follows some more information:
$aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pipewire
PipeWire Sound Server
default
Default ALSA Output (currently PipeWire Media Server)
sysdefault:CARD=PCH
HDA Intel PCH, ALC3234 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC3234 Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC3234 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC3234 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC3234 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC3234 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC3234 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC3234 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
hdmi:CARD=PCH,DEV=1
HDA Intel PCH, HDMI 1
HDMI Audio Output
hdmi:CARD=PCH,DEV=2
HDA Intel PCH, HDMI 2
HDMI Audio Output
Any help is appreciated.
probably, you use a video card shared with your cpu. Try adding support like this.
Open terminal and type
sudo nano /etc/modprobe.d/alsa-base.conf`
Add this at the end of the file:
options snd-hda-intel model=auto
Active IOMMU in boot:
sudo nano /etc/default/grub
Change GRUB_CMDLINE_LINUX="" to:
GRUB_CMDLINE_LINUX="intel_iommu=on,igfx_off"
Save the file and update grup.
sudo update-grub
Reboot
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Here is my problem my laptop (Debian 8) is connected to my TV via HDMI, itself connected to my 5.1 home theater via SPDIF optical cable.
And SPDIF only allow mono, stereo channels using PCM encoding or multi channels using Dolby format so DTS or AC-3 encoding.
My system correctly detects constraints:
cat /proc/asound/card0/eld#0.0
monitor_present 1
eld_valid 1
monitor_name LG TV
connection_type HDMI
eld_version [0x2] CEA-861D or below
edid_version [0x3] CEA-861-B, C or D
manufacture_id 0x6d1e
product_id 0x1
port_id 0x0
support_hdcp 0
support_ai 1
audio_sync_delay 0
speakers [0xffff] FL/FR LFE FC RL/RR RC FLC/FRC RLC/RRC FLW/FRW FLH/FRH TC FCH
sad_count 4
sad0_coding_type [0x1] LPCM
sad0_channels 2
sad0_rates [0x14e0] 32000 44100 48000 96000 192000
sad0_bits [0xe0000] 16 20 24
sad1_coding_type [0x2] AC-3
sad1_channels 6
sad1_rates [0xe0] 32000 44100 48000
sad1_max_bitrate 640000
sad2_coding_type [0xa] E-AC-3/DD+ (Dolby Digital Plus)
sad2_channels 6
sad2_rates [0xe0] 32000 44100 48000
sad3_coding_type [0x7] DTS
sad3_channels 6
sad3_rates [0xc0] 44100 48000
sad3_max_bitrate 1536000
I already looked on the net the majority of topics are really outdated at best 2012. I found a first solution, a52 alsa plugin but unfortunately I feel that it does not work or configs are not read by pulseaudio.
#####
# Description: Pour utiliser le plugin a52 d'alsa avec PulseAudio. Les valeurs par défaut sont channels 6 (valeurs possible 2,4,6), bitrate 448 kbit/s par défaut et fréquence échantillonnage 48000 Hz (44100 ou 48000 possible).
# A mettre dans ~/.asoundrc .
pcm.a52hdmi {
#args [CARD]
#args.CARD {
type string
default 0
}
type rate
slave {
pcm {
type a52
bitrate 640
rate 48000
channels 6
card $CARD
}
rate 48000 #nécessaire pour PulseAudio
}
}
I found a way to view my films using mpv it work because if I understand well it bypass pulseaudio.
mpv --fullscreen --speed=24000/25025 --hwdec=vaapi --deinterlace=yes --af scaletempo,lavcac3enc=tospdif=yes:bitrate=640:minch=2
But I really would like pulseaudio work itself in AC-3 or DTS to have 5.1 sound through SPDIF.
I found a first solution but I have some noise and cracking on audio :
https://github.com/darealshinji/dcaenc
I found another solution :
https://www.linuxquestions.org/questions/linux-hardware-18/alsa-sb-omni-surround-5-1-iec958-is-routed-to-the-analog-output-not-the-digital-output-4175609669/
But it seems that alsa not able to assign the correct device number :( (I just add that I change device 2 by device $DEV and I add it to input params)
Result :
hdmi:CARD=HDMI,DEV=0 HDA Intel HDMI, HDMI 0 (HDMI Audio Output)
hdmi:CARD=HDMI,DEV=1 HDA Intel HDMI, HDMI 1 (HDMI Audio Output)
hdmi:CARD=HDMI,DEV=2 HDA Intel HDMI, HDMI 2 (HDMI Audio Output)
hdmi:CARD=HDMI,DEV=3 HDA Intel HDMI, HDMI 3 (HDMI Audio Output)
hdmi:CARD=HDMI,DEV=4 HDA Intel HDMI, HDMI 4 (HDMI Audio Output)
...
a52:CARD=HDMI,DEV=3 HDA Intel HDMI, HDMI 0 (IEC958 (AC3) Digital Surround 5.1 with all software conversions)
a52:CARD=HDMI,DEV=7 HDA Intel HDMI, HDMI 1 (IEC958 (AC3) Digital Surround 5.1 with all software conversions)
a52:CARD=HDMI,DEV=8 HDA Intel HDMI, HDMI 2 (IEC958 (AC3) Digital Surround 5.1 with all software conversions)
a52:CARD=HDMI,DEV=9 HDA Intel HDMI, HDMI 3 (IEC958 (AC3) Digital Surround 5.1 with all software conversions)
a52:CARD=HDMI,DEV=10 HDA Intel HDMI, HDMI 4 (IEC958 (AC3) Digital Surround 5.1 with all software conversions)
a52upmix:CARD=HDMI,DEV=3 HDA Intel HDMI, HDMI 0 (IEC958 (AC3) Digital Surround 2.0 -> 5.1 with all software conversions)
a52upmix:CARD=HDMI,DEV=7 HDA Intel HDMI, HDMI 1 (IEC958 (AC3) Digital Surround 2.0 -> 5.1 with all software conversions)
a52upmix:CARD=HDMI,DEV=8 HDA Intel HDMI, HDMI 2 (IEC958 (AC3) Digital Surround 2.0 -> 5.1 with all software conversions)
a52upmix:CARD=HDMI,DEV=9 HDA Intel HDMI, HDMI 3 (IEC958 (AC3) Digital Surround 2.0 -> 5.1 with all software conversions)
a52upmix:CARD=HDMI,DEV=10 HDA Intel HDMI, HDMI 4 (IEC958 (AC3) Digital Surround 2.0 -> 5.1 with all software conversions)
dcahdmi:CARD=HDMI,DEV=0 HDA Intel HDMI, HDMI 0 (DTS Encoding through HDMI)
dcahdmi:CARD=HDMI,DEV=1 HDA Intel HDMI, HDMI 1 (DTS Encoding through HDMI)
dcahdmi:CARD=HDMI,DEV=2 HDA Intel HDMI, HDMI 2 (DTS Encoding through HDMI)
dcahdmi:CARD=HDMI,DEV=3 HDA Intel HDMI, HDMI 3 (DTS Encoding through HDMI)
dcahdmi:CARD=HDMI,DEV=4 HDA Intel HDMI, HDMI 4 (DTS Encoding through HDMI)
...
Full config : https://pastebin.com/ZtF9npBD
I hope to hear from you soon ;)
I am writing a C application that capture video from my webcam.
I am not able to determine which pixel format my webcam is able to process.
lsusb:
Bus 002 Device 003: ID 1e4e:0100 Cubeternet WebCam
dmesg
[ 1064.735472] usb 2-1.4: new high speed USB device using ehci_hcd and address 4
[ 1064.837577] usb 2-1.4: New USB device found, idVendor=1e4e, idProduct=0100
[ 1064.837583] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1064.837587] usb 2-1.4: Product: USB2.0 Camera
[ 1064.837589] usb 2-1.4: Manufacturer: Etron Technologies
[ 1064.837715] usb 2-1.4: configuration #1 chosen from 1 choice
[ 1064.838484] uvcvideo: Found UVC 1.00 device USB2.0 Camera (1e4e:0100)
[ 1064.843070] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[ 1064.844229] input: USB2.0 Camera as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/input/input7
I was able to determine the image size '640x480' but not the pixel format:
I have tried
YUV420
RGB565
RGB32
with no success. Any help Please.
I am using Debian latest version
Since it is a UVC video, by looking up the wiki here:
http://www.wikiwand.com/en/USB_video_device_class
You will see that UVC supports
Uncompressed YUV formats YUY2, NV12.
Actually YUY2 is also called YUYV which is YUV 4:2:2.
You can find a conversion to RGB here:
https://bitbucket.org/neuralassembly/simplewebcam/src/a940256eda0d/jni/ImageProc.h
You can use:
v4l2-ctl --list-formats
That should give you the supported pixel formats
In addition, you can also use:
v4l2-ctl --list-formats-ext
which should give you the supported pixel formats a resolutions.