Opened 12 years ago

Last modified 10 years ago

#9242 new enhancement

Mixer: enable audio select output

Reported by: dsjonny Owned by: korli
Priority: normal Milestone: R1
Component: Drivers/Audio/HDA Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

It would be very useful if we can select the output for the audio. For example I can only use the jack with a headphone, but I want to use the HDMI as output. In the mixer panel I have 8 "Speaker", 1 "Mic In" and 1 "Front" output. The "Front" is for the jack headphone, but I cannot select the other outputs. This way would be the similar as the input source selection, where I can select the source from a popup menu. We need only to select the "Master"'s output.

Attachments (4)

Media1.png (79.1 KB ) - added by dsjonny 10 years ago.
Media2.png (77.8 KB ) - added by dsjonny 10 years ago.
Media3.png (80.9 KB ) - added by dsjonny 10 years ago.
syslog (24.2 KB ) - added by dsjonny 10 years ago.

Download all attachments as: .zip

Change History (13)

comment:1 by pulkomandy, 10 years ago

Component: Add-Ons/Media/MixerKits/Media Kit
Owner: changed from nobody to axeld

It the Media preferences, in the "Audio settings" tab, there is a popup menu to select the output (Output (card) then Channel (output from that card)). Are your outputs not listed there?

comment:2 by dsjonny, 10 years ago

There is a drop down list for the audio output and the channel, but I have never seen more than one to select in the lists. I can see many outputs in the Mixer panel, but I can use only the primary, the default output. In the Mixer I can see different outputs on different PC-s.

Please see the attached screenshots. These are taken on a Lenovo T430 laptop. In the input tab I can select the input source, but in the output not.

by dsjonny, 10 years ago

Attachment: Media1.png added

by dsjonny, 10 years ago

Attachment: Media2.png added

by dsjonny, 10 years ago

Attachment: Media3.png added

comment:3 by ttcoder, 10 years ago

Version: R1/alpha4.1R1/Development

(as a side observation, if I read the screenshots well, the HDA driver might need tweaks for you setup, since it lists "left rear" and speaker as input jacks?)

This seems to be related to #8476.. To put it in a nutshell, 8476 is about not hardcoding association of all jacks together, i.e. all the output jacks lumped together as "HDA output 0", but rather, allowing one jack to be exposed as HDA output 0, another as HDA output1 ..etc; and then leave it up to the applications to choose which output to use.

This ticket might be about something else (do I understand correctly that some of your jacks are silent, i.e. you do not get audio output from your front jacks/rear jacks/digital hdmi port but only from the headphone jack ?) though 8476 also has some discussion about GUI changes (where to add popup menus ..etc) that might be relevant here.

Version 0, edited 10 years ago by ttcoder (next)

comment:4 by dsjonny, 10 years ago

"This ticket might be about something else (do I understand correctly that some of your jacks are silent, i.e. you do not get audio output from your front jacks/rear jacks/digital hdmi port but only from the headphone jack ?)"

Yes. This is this ticket for.

And just a note: if I check the sylsog, when the driver loded there are all of the outputs/connectors are listed correctly. I will attach one syslog.

comment:5 by ttcoder, 10 years ago

Type: enhancementbug

Go for it dsjonny ; if the driver mis-identifies the HDA input nodes (i.e. Speaker as an input?!) it could mis-identify output nodes too, leaving them silent (no audio output). The syslog will give good answers.

by dsjonny, 10 years ago

Attachment: syslog added

comment:6 by dsjonny, 10 years ago

Syslog attached. There are many-many info about many connectors. I hope this may help something.

comment:7 by ttcoder, 10 years ago

Component: Kits/Media KitDrivers/Audio/HDA
Owner: changed from axeld to korli

Here's my reading of the syslog, I'm not used to seeing hda setup quite like this indeed:

There are 3 output->mixer->jack "chains", two of which share the same output number 2:

Fixed speaker 20 and black-colored jack "left HP out" (?) 21: 2 -> 12 -> 20, 21

23: not clear if it's a speaker of black-colored jack: 2 -> 15 -> 23

Last one: 3 -> 13 -> 25

Digital output 6 does not get connected to the (hdmi?) port 30 indeed.. The syslog does not give errors/reasons... Maybe it's because the driver needs a mixer node between 6 and 30. (I guess hda does support hdmi? not sure).

That's about where I can take it.. Korli will need to take over (are you setup for compiling haiku/drivers?, he might give you modifications to try out, for example comment out the "try with mixer" code so that the driver tries without mixer, like he had done to fix my audio output a couple years back)

comment:8 by korli, 10 years ago

FWIW we only look for one output path which is analog and stereo. The second HDA codec on your motherboard isn't selected and exposed. It's a missing feature. In any case, it wouldn't be a mixer control, but another output media node to be selected on the media preferences audio panel (like "HDA Audio 2").

comment:9 by ttcoder, 10 years ago

Type: bugenhancement
Note: See TracTickets for help on using tickets.