[pulseaudio-discuss] M-Audio Delta 1010

2014-06-28 Thread Matt Zagrabelny
Greetings PA-discuss,

I just purchased an M-Audio Delta 1010. Grepping the internet and
PA-discuss mailing archive doesn't yield a ton regarding setting this
card up for PA.

Before I delve into:

http://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Profiles/

Does anyone have a sensible (good?) configuration for a Delta 1010 and PA?

Thanks for any help!

-mz
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] M-Audio Delta 1010

2014-06-29 Thread Matt Zagrabelny
Hi ALexander!

On Sun, Jun 29, 2014 at 1:55 AM, Alexander E. Patrakov
patra...@gmail.com wrote:
 29.06.2014 03:26, Matt Zagrabelny wrote:

 Greetings PA-discuss,

 I just purchased an M-Audio Delta 1010. Grepping the internet and
 PA-discuss mailing archive doesn't yield a ton regarding setting this
 card up for PA.

 Before I delve into:


 http://www.freedesktop.org/wiki/Software/PulseAudio/Backends/ALSA/Profiles/

 Does anyone have a sensible (good?) configuration for a Delta 1010 and PA?


 Your e-mail is missing the key information: is there actually a problem with
 your new card?

Yes.

I'm running Debian Sid.

% pulseaudio --version
pulseaudio 5.0

The card has:

2 digitial output ports (S/PDIF)
8 analog output ports
8 analog input ports
1 MIDI input port
1 MIDI output port

Yet the list of profiles [1] doesn't seem to support that. In an
attempt to get something working I am currently trying a simple
profile of Analog Stereo Duplex. However, I cannot get ogg123 -d
pulse to use that card as a sink (IDLE vs RUNNING) [2].

I saw a post [3] from May 2013 asking about configuring this card, but
nothing was publicly stated about a resolution.

 The defaults should work and be optimal on any card.

Alllright! :)

I would expect there to be a profile that matches the cards
capabilities, but it doesn't look like it.

If this is not the
 case, it is a bug in PulseAudio that we cannot fix because we don't know
 what's wrong. Please help us!

Okay. What can I do to further triage this or assist in getting a patch for PA?

Thanks!

-mz



[1]

% pactl list cards
[...]
Card #2
Name: alsa_card.pci-_06_04.0
Driver: module-alsa-card.c
Owner Module: 8
Properties:
alsa.card = 1
alsa.card_name = M Audio Delta 1010
alsa.long_card_name = M Audio Delta 1010 at 0xcca0, irq 16
alsa.driver_name = snd_ice1712
device.bus_path = pci-:06:04.0
sysfs.path = /devices/pci:00/:00:1e.0/:06:04.0/sound/card1
device.bus = pci
device.vendor.id = 1412
device.vendor.name = VIA Technologies Inc.
device.product.id = 1712
device.product.name = M-Audio Delta 1010
device.string = 1
device.description = M-Audio Delta 1010
module-udev-detect.discovered = 1
device.icon_name = audio-card-pci
Profiles:
input:analog-stereo: Analog Stereo Input (sinks: 0, sources:
1, priority: 60, available: yes)
input:iec958-stereo: Digital Stereo (IEC958) Input (sinks: 0,
sources: 1, priority: 55, available: yes)
output:analog-stereo: Analog Stereo Output (sinks: 1, sources:
0, priority: 6000, available: yes)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex
(sinks: 1, sources: 1, priority: 6060, available: yes)
output:analog-stereo+input:iec958-stereo: Analog Stereo Output
+ Digital Stereo (IEC958) Input (sinks: 1, sources: 1, priority: 6055,
available: yes)
output:analog-surround-40: Analog Surround 4.0 Output (sinks:
1, sources: 0, priority: 700, available: yes)
output:analog-surround-40+input:analog-stereo: Analog Surround
4.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760,
available: yes)
output:analog-surround-40+input:iec958-stereo: Analog Surround
4.0 Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1,
priority: 755, available: yes)
output:analog-surround-41: Analog Surround 4.1 Output (sinks:
1, sources: 0, priority: 800, available: yes)
output:analog-surround-41+input:analog-stereo: Analog Surround
4.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 860,
available: yes)
output:analog-surround-41+input:iec958-stereo: Analog Surround
4.1 Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1,
priority: 855, available: yes)
output:analog-surround-50: Analog Surround 5.0 Output (sinks:
1, sources: 0, priority: 700, available: yes)
output:analog-surround-50+input:analog-stereo: Analog Surround
5.0 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 760,
available: yes)
output:analog-surround-50+input:iec958-stereo: Analog Surround
5.0 Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1,
priority: 755, available: yes)
output:analog-surround-51: Analog Surround 5.1 Output (sinks:
1, sources: 0, priority: 800, available: yes)
output:analog-surround-51+input:analog-stereo: Analog Surround
5.1 Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 860,
available: yes)
output:analog-surround-51+input:iec958-stereo: Analog Surround
5.1 Output + Digital Stereo (IEC958) Input (sinks: 1, sources: 1,
priority: 855, available: yes)
output:iec958-stereo: Digital Stereo (IEC958) Output (sinks:
1, sources: 0, priority: 5500, available: yes)
output:iec958-stereo+input:analog-stereo: Digital Stereo
(IEC958) Output + Analog Stereo Input (sinks: 1, sources: 1, priority:
5560

Re: [pulseaudio-discuss] M-Audio Delta 1010

2014-06-29 Thread Matt Zagrabelny
Hi Alexander!

On Sun, Jun 29, 2014 at 10:29 PM, Alexander E. Patrakov
patra...@gmail.com wrote:
 30.06.2014 06:41, Matt Zagrabelny wrote:

 % pulseaudio --version
 pulseaudio 5.0

 The card has:

 2 digitial output ports (S/PDIF)
 8 analog output ports
 8 analog input ports
 1 MIDI input port
 1 MIDI output port

 Yet the list of profiles [1] doesn't seem to support that.


 7.1 analog inputs/outputs are missing for unknown reason (we need a log, see
 below, to see why). And second spdif is indeed not supported at all out of
 the box on any card, that's a known bug. Other than that, the list of
 profiles looks sensible.

 MIDI is completely outside PulseAudio territory.

Okay. I wasn't planning on using MIDI (or the spdif), just wanted to
be complete in describing the card's capabilities.

 In an
 attempt to get something working I am currently trying a simple
 profile of Analog Stereo Duplex. However, I cannot get ogg123 -d
 pulse to use that card as a sink (IDLE vs RUNNING) [2].


 So it looks like ogg123 successfully plays its stream through a wrong card.
 Please try to use pavucontrol to fix the situation: either set the new card
 as fallback on the third tab, or use the first tab to move the ogg123's
 stream while it is playing.

Success! Thanks for reminding me about selecting the output for the application.

I also had my jack plugged into channel 8 instead of channel 1. Duh!! ;)

[...]

 Okay. What can I do to further triage this or assist in getting a patch
 for PA?


 Please run the following command (one line, with ; in the middle, that's
 important for timing) from a terminal:

 killall pulseaudio ; pulseaudio -vvv | tee pulse.log

small adjustment needed:

killall pulseaudio ; pulseaudio -vvv 21 | tee pulse.log

[...]

 Then, when it finishes playing, killall pulseaudio, and then we will get a
 complete pulse.log file. Place that somewhere in a pastebin for our
 examination (it will be too large to attach).

http://filebin.ca/1RfD6gb9SFEA/pulse.log

 Then, you can run the alsa-info.sh script from here:

 http://www.alsa-project.org/alsa-info.sh

http://www.alsa-project.org/db/?f=2e5a81d65ade41bf93df4870f9d4e410f1a74ab4

 It will gather some information from your card and paste it to a pastebin.

 Once I see all of that, I will ask more questions about the card.

Thanks!

-mz
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] M-Audio Delta 1010

2014-06-29 Thread Matt Zagrabelny
Hi Alexander!

 Actually I think there is enough information in the original mail for me to
 guess why, but still, please provide the information I have asked for. The
 problem is that your card, which is based on the ICE1712 chipset, does not
 expose the 7.1 output and the second spdif output via the stock ALSA card
 file. I.e., the surround71:1 and spdif:1,1 devices don't exist, and that
 needs to be fixed in alsa-lib.

 You can test the theory by running these two commands:

 pasuspender -- speaker-test -t wav -c6 -D surround51:1

% pasuspender -- speaker-test -t wav -c6 -D surround51:1

speaker-test 1.0.27.2

Playback device is surround51:1
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Sample format not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument

 pasuspender -- speaker-test -t wav -c8 -D surround71:1

% pasuspender -- speaker-test -t wav -c8 -D surround71:1

speaker-test 1.0.27.2

Playback device is surround71:1
Stream parameters are 48000Hz, S16_LE, 8 channels
WAV file(s)
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
'cards.ICE1712.pcm.surround71.0:CARD=1'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file
or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71:1
Playback open error: -2,No such file or directory

-mz
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] M-Audio Delta 1010

2014-06-30 Thread Matt Zagrabelny
On Mon, Jun 30, 2014 at 12:14 AM, Alexander E. Patrakov
patra...@gmail.com wrote:

 speaker-test 1.0.27.2

 Playback device is surround51:1
 Stream parameters are 48000Hz, S16_LE, 6 channels
 WAV file(s)
 Sample format not available for playback: Invalid argument
 Setting of hwparams failed: Invalid argument


 OK, so your card only accepts 32-bit samples.

 pasuspender -- speaker-test -t wav -c6 -D 'plug:surround51:1'

This works as expected.

 pasuspender -- speaker-test -t wav -c8 -D surround71:1


 % pasuspender -- speaker-test -t wav -c8 -D surround71:1

 speaker-test 1.0.27.2

 Playback device is surround71:1
 Stream parameters are 48000Hz, S16_LE, 8 channels
 WAV file(s)
 ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition
 'cards.ICE1712.pcm.surround71.0:CARD=1'
 ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer
 returned error: No such file or directory
 ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file
 or directory
 ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71:1
 Playback open error: -2,No such file or directory


 Well, this confirms the issue. Please replace the
 /usr/share/alsa/cards/ICE1712.conf file with the attached one and see if it
 helps. Also please verify the channel positions. Again, a plug will be
 necessary:

 pasuspender -- speaker-test -t wav -c8 -D 'plug:surround71:1'

This works as expected.

 Please also verify that the Analog Surround 7.1 profile appears in
 PulseAudio after that (you need to restart PulseAudio: killall pulseaudio).

The Analog Surround 7.1 profile does show in PA. Thanks!

There is one issue regarding the per channel volume. I am jacked into
Side Right channel, but adjusting the Side Right channel volume in
the output tab of pavucontrol doesn't change the volume - only the
Front Right volume slider affects the volume. Digging further
(jacking into each channel and sliding the per channel volumes) only
the Front Left/Front Right channels adjust the volume for any of the
channels.

Front Left (1) will affect: Front Left (1), Rear Left (3), Front
Center (5), Side Left (7)
Front Right (2) will affect: Front Right (2), Rear Right (4), Front
Center (5), Side Right (8)

The subwoofer or Rear Center channel (6) did not output any sound
when I played my ogg123 -d pulse. However, the speaker-test was
successful in outputting sound out that channel.

 If that succeeds, I will post the formal patch to the alsa-devel list.

 As for the second SPDIF, sorry, I think there is some misunderstanding here.
 According to the reviews, the card has one spdif input and one spdif output,
 both of which are already supported.

It is both conceivable and highly likely that I misread,
misunderstood, or mis-remembered the card's capabilities.

Thanks for all your help, Alexander!

Sincerely,

-mz
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] M-Audio Delta 1010

2014-07-01 Thread Matt Zagrabelny
On Mon, Jun 30, 2014 at 9:53 AM, Alexander E. Patrakov
patra...@gmail.com wrote:

 There is one issue regarding the per channel volume. I am jacked into
 Side Right channel, but adjusting the Side Right channel volume in
 the output tab of pavucontrol doesn't change the volume - only the
 Front Right volume slider affects the volume. Digging further
 (jacking into each channel and sliding the per channel volumes) only
 the Front Left/Front Right channels adjust the volume for any of the
 channels.

 Front Left (1) will affect: Front Left (1), Rear Left (3), Front
 Center (5), Side Left (7)
 Front Right (2) will affect: Front Right (2), Rear Right (4), Front
 Center (5), Side Right (8)


 You can reduce the amount of time needed to fix the issue by posting a link
 to the very very verbose pulseaudio log that captures, among other things,
 the process of adjusting the volume with the Side Right knob in pavucontrol.

 Also, could you please verify that the same which knob controls what
 picture holds when playing native 5.1 surround content with a
 semi-known-good player, as in the example below?

 wget http://www.sr.se/laddahem/multikanal/dts/Prelude.zip
 unzip Prelude.zip
 ffplay -f dts Prelude.wav

 (yes I know that ffplay and gstreamer disagree on the channel map for 5.1
 content)


 The subwoofer or Rear Center channel (6) did not output any sound
 when I played my ogg123 -d pulse. However, the speaker-test was
 successful in outputting sound out that channel.


 This is expected for typical stereo content (and even with most surround
 concerts on DVDs and BluRays, because they are actually 5.0, not 5.1) and
 the default settings, and can be controlled with the enable-lfe-remixing
 setting in /etc/pulse/daemon.conf.

Thanks for all your help, Alexander. I'm derailed on something else
right now, but hope to try out your suggestions in about a week.

Cheers!

-mz
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] multiple bluetooth headsets?

2014-08-12 Thread Matt Zagrabelny
Greetings!

I grepped the PA discuss list archive and found the question:

I am wanting to stream to multiple bluetooth headsets at the same time

asked in 2012. The answer seemed to be that version 4.99 of bluez
didn't support it, but you could compile the dev code and try it out.
So

Is anyone successfully using multiple bluetooth headsets with PA?

Thanks!

-mz
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] configure a soundcard?

2019-04-29 Thread Matt Zagrabelny
On Fri, Apr 26, 2019 at 4:28 AM Tanu Kaskinen  wrote:

> On Mon, 2019-04-22 at 07:47 -0500, Matt Zagrabelny wrote:
> > On Mon, Apr 22, 2019 at 3:06 AM Tanu Kaskinen  wrote:
> >
> > > On Sat, 2019-04-20 at 12:11 -0500, Matt Zagrabelny wrote:
> > > > Greetings,
> > > >
> > > > I'm running Debian Buster and I have a 1/8" audio jack. I need the
> sink
> > > to
> > > > be an analog output to send off to some other device. Things work
> great,
> > > > except for when the system reboots, it comes up configured as a
> digital
> > > > soundcard:
> > > >
> > > > Digital Stereo (IEC958)
> > > >
> > > > Here is a diff between a "pactl list" when the computer reboots and
> when
> > > > I've configured it to be an analog sink:
> > > >
> > > > -Sink #1
> > > > -   State: SUSPENDED
> > > > -   Name: alsa_output.pci-_00_14.2.iec958-stereo
> > > > -   Description: Built-in Audio Digital Stereo (IEC958)
> > > > +Sink #2
> > > > +   State: RUNNING
> > > > +   Name: alsa_output.pci-_00_14.2.analog-stereo
> > > > +   Description: Built-in Audio Analog Stereo
> > > >
> > > > What is the best way to have the configuration saved between reboots?
> > > >
> > > > I can provide further info if needed.
> > > >
> > > > Thanks for any help!
> >
> > Hey Tanu!
> >
> > Thanks for the assistance. Below is the output of what you asked for.
>
> 
>
> > Card #1
> > Name: alsa_card.pci-_00_14.2
>
> ...
>
> > Ports:
>
> ...
>
> > analog-output-lineout: Line Out (priority: 9900, latency
> > offset: 0 usec, not available)
> > Part of profile(s): output:analog-stereo,
> > output:analog-stereo+input:analog-stereo, output:analog-surround-21,
> > output:analog-surround-21+input:analog-stereo, output:analog-surround-40,
> > output:analog-surround-40+input:analog-stereo, output:analog-surround-41,
> > output:analog-surround-41+input:analog-stereo, output:analog-surround-50,
> > output:analog-surround-50+input:analog-stereo, output:analog-surround-51,
> > output:analog-surround-51+input:analog-stereo, output:analog-surround-71,
> > output:analog-surround-71+input:analog-stereo
> > analog-output-headphones: Headphones (priority: 9000,
> > latency offset: 0 usec, not available)
> > Properties:
> > device.icon_name = "audio-headphones"
> > Part of profile(s): output:analog-stereo,
> > output:analog-stereo+input:analog-stereo
> > iec958-stereo-output: Digital Output (S/PDIF) (priority:
> 0,
> > latency offset: 0 usec)
> > Part of profile(s): output:iec958-stereo,
> > output:iec958-stereo+input:analog-stereo
>
> Both analog ports are marked as "not available", which means that to
> PulseAudio looks like nothing is plugged in in either connector. This
> is the reason why PulseAudio always picks the digital output on boot.
> Broken jack detection is is a hardware or driver issue, which can be
> worked around, see below.
>

Tanu,

Should I look to file a bug with the computer manufacturer or the kernel?

Thanks,

-m
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Re: [pulseaudio-discuss] configure a soundcard?

2019-04-29 Thread Matt Zagrabelny
On Sat, Apr 27, 2019 at 5:27 AM Tanu Kaskinen  wrote:

> On Fri, 2019-04-26 at 07:37 -0500, Matt Zagrabelny wrote:
> > On Fri, Apr 26, 2019 at 4:28 AM Tanu Kaskinen  wrote:
> >
> > > > Card #1
> > > > Name: alsa_card.pci-_00_14.2
> > >
> > > ...
> > >
> > > > Ports:
> > >
> > > ...
> > >
> > > > analog-output-lineout: Line Out (priority: 9900,
> latency
> > > > offset: 0 usec, not available)
> > > > Part of profile(s): output:analog-stereo,
> > > > output:analog-stereo+input:analog-stereo, output:analog-surround-21,
> > > > output:analog-surround-21+input:analog-stereo,
> output:analog-surround-40,
> > > > output:analog-surround-40+input:analog-stereo,
> output:analog-surround-41,
> > > > output:analog-surround-41+input:analog-stereo,
> output:analog-surround-50,
> > > > output:analog-surround-50+input:analog-stereo,
> output:analog-surround-51,
> > > > output:analog-surround-51+input:analog-stereo,
> output:analog-surround-71,
> > > > output:analog-surround-71+input:analog-stereo
> > > > analog-output-headphones: Headphones (priority: 9000,
> > > > latency offset: 0 usec, not available)
> > > > Properties:
> > > > device.icon_name = "audio-headphones"
> > > > Part of profile(s): output:analog-stereo,
> > > > output:analog-stereo+input:analog-stereo
> > > > iec958-stereo-output: Digital Output (S/PDIF)
> (priority:
> > > 0,
> > > > latency offset: 0 usec)
> > > > Part of profile(s): output:iec958-stereo,
> > > > output:iec958-stereo+input:analog-stereo
> > >
> > > Both analog ports are marked as "not available", which means that to
> > > PulseAudio looks like nothing is plugged in in either connector. This
> > > is the reason why PulseAudio always picks the digital output on boot.
> > > Broken jack detection is is a hardware or driver issue, which can be
> > > worked around, see below.
> > >
> >
> > Ahhh. Understood.
> >
> >
> > > > > while read -r line; do amixer -c0 cget "$line"; done <<<
> $(amixer
> > > -c0
> > > > > controls | grep Jack)
> > > > >
> > > >
> > > > numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'
> > > >   ; type=BOOLEAN,access=r---,values=1
> > > >   : values=on
> > > > numid=7,iface=CARD,name='HDMI/DP,pcm=7 Jack'
> > > >   ; type=BOOLEAN,access=r---,values=1
> > > >   : values=off
> > >
> > > It seems that I guessed wrong the card number. Card 0 seems to be the
> > > HDMI card, while we're interested in the analog sound card, which is
> > > alsa card 1. So change the script to this:
> > >
> > > while read -r line; do amixer -c0 cget "$line"; done <<< $(amixer
> -c0
> > > controls | grep Jack)
> > >
> >
> > I'm guessing I should change the above -c0's to -c1's.
>
> Oops! Yes, that's what I meant.
>
> > Here is that output:
> >
> > numid=44,iface=CARD,name='CD Phantom Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=on
> > numid=49,iface=CARD,name='Front Headphone Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
> > numid=42,iface=CARD,name='Front Mic Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
> > numid=43,iface=CARD,name='Line Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
> > numid=47,iface=CARD,name='Line Out CLFE Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
> > numid=45,iface=CARD,name='Line Out Front Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
> > numid=48,iface=CARD,name='Line Out Side Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
> > numid=46,iface=CARD,name='Line Out Surround Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
> > numid=41,iface=CARD,name='Rear Mic Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
> > numid=50,iface=CARD,name='SPDIF Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
>
> Okay, the relevant jacks are "Front Headphone" and "Line Out Front". I
> don't know if you're trying to use the headphone or the line out port,
> but if you can disable jack detection for both:
>

Empirical evidence suggests I am using Line Out.

Thanks for all the help. It works great!

-m
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

[pulseaudio-discuss] configure a soundcard?

2019-04-20 Thread Matt Zagrabelny
Greetings,

I'm running Debian Buster and I have a 1/8" audio jack. I need the sink to
be an analog output to send off to some other device. Things work great,
except for when the system reboots, it comes up configured as a digital
soundcard:

Digital Stereo (IEC958)

Here is a diff between a "pactl list" when the computer reboots and when
I've configured it to be an analog sink:

-Sink #1
-   State: SUSPENDED
-   Name: alsa_output.pci-_00_14.2.iec958-stereo
-   Description: Built-in Audio Digital Stereo (IEC958)
+Sink #2
+   State: RUNNING
+   Name: alsa_output.pci-_00_14.2.analog-stereo
+   Description: Built-in Audio Analog Stereo

What is the best way to have the configuration saved between reboots?

I can provide further info if needed.

Thanks for any help!

-m
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Re: [pulseaudio-discuss] configure a soundcard?

2019-04-26 Thread Matt Zagrabelny
On Fri, Apr 26, 2019 at 4:28 AM Tanu Kaskinen  wrote:

>
> > Card #1
> > Name: alsa_card.pci-_00_14.2
>
> ...
>
> > Ports:
>
> ...
>
> > analog-output-lineout: Line Out (priority: 9900, latency
> > offset: 0 usec, not available)
> > Part of profile(s): output:analog-stereo,
> > output:analog-stereo+input:analog-stereo, output:analog-surround-21,
> > output:analog-surround-21+input:analog-stereo, output:analog-surround-40,
> > output:analog-surround-40+input:analog-stereo, output:analog-surround-41,
> > output:analog-surround-41+input:analog-stereo, output:analog-surround-50,
> > output:analog-surround-50+input:analog-stereo, output:analog-surround-51,
> > output:analog-surround-51+input:analog-stereo, output:analog-surround-71,
> > output:analog-surround-71+input:analog-stereo
> > analog-output-headphones: Headphones (priority: 9000,
> > latency offset: 0 usec, not available)
> > Properties:
> > device.icon_name = "audio-headphones"
> > Part of profile(s): output:analog-stereo,
> > output:analog-stereo+input:analog-stereo
> > iec958-stereo-output: Digital Output (S/PDIF) (priority:
> 0,
> > latency offset: 0 usec)
> > Part of profile(s): output:iec958-stereo,
> > output:iec958-stereo+input:analog-stereo
>
> Both analog ports are marked as "not available", which means that to
> PulseAudio looks like nothing is plugged in in either connector. This
> is the reason why PulseAudio always picks the digital output on boot.
> Broken jack detection is is a hardware or driver issue, which can be
> worked around, see below.
>

Ahhh. Understood.


> > > while read -r line; do amixer -c0 cget "$line"; done <<< $(amixer
> -c0
> > > controls | grep Jack)
> > >
> >
> > numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=on
> > numid=7,iface=CARD,name='HDMI/DP,pcm=7 Jack'
> >   ; type=BOOLEAN,access=r---,values=1
> >   : values=off
>
> It seems that I guessed wrong the card number. Card 0 seems to be the
> HDMI card, while we're interested in the analog sound card, which is
> alsa card 1. So change the script to this:
>
> while read -r line; do amixer -c0 cget "$line"; done <<< $(amixer -c0
> controls | grep Jack)
>

I'm guessing I should change the above -c0's to -c1's. Here is that output:

numid=44,iface=CARD,name='CD Phantom Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=on
numid=49,iface=CARD,name='Front Headphone Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off
numid=42,iface=CARD,name='Front Mic Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off
numid=43,iface=CARD,name='Line Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off
numid=47,iface=CARD,name='Line Out CLFE Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off
numid=45,iface=CARD,name='Line Out Front Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off
numid=48,iface=CARD,name='Line Out Side Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off
numid=46,iface=CARD,name='Line Out Surround Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off
numid=41,iface=CARD,name='Rear Mic Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off
numid=50,iface=CARD,name='SPDIF Jack'
  ; type=BOOLEAN,access=r---,values=1
  : values=off


This information is required for me to give instructions for how to
> work around the issue.
>

Okay.

Thanks for all your help!

-m
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Re: [pulseaudio-discuss] configure a soundcard?

2019-04-24 Thread Matt Zagrabelny
On Mon, Apr 22, 2019 at 7:47 AM Matt Zagrabelny  wrote:

> On Mon, Apr 22, 2019 at 3:06 AM Tanu Kaskinen  wrote:
>
>> On Sat, 2019-04-20 at 12:11 -0500, Matt Zagrabelny wrote:
>> > Greetings,
>> >
>> > I'm running Debian Buster and I have a 1/8" audio jack. I need the sink
>> to
>> > be an analog output to send off to some other device. Things work great,
>> > except for when the system reboots, it comes up configured as a digital
>> > soundcard:
>> >
>> > Digital Stereo (IEC958)
>> >
>> > Here is a diff between a "pactl list" when the computer reboots and when
>> > I've configured it to be an analog sink:
>> >
>> > -Sink #1
>> > -   State: SUSPENDED
>> > -   Name: alsa_output.pci-_00_14.2.iec958-stereo
>> > -   Description: Built-in Audio Digital Stereo (IEC958)
>> > +Sink #2
>> > +   State: RUNNING
>> > +   Name: alsa_output.pci-_00_14.2.analog-stereo
>> > +   Description: Built-in Audio Analog Stereo
>> >
>> > What is the best way to have the configuration saved between reboots?
>> >
>> > I can provide further info if needed.
>> >
>> > Thanks for any help!
>>
>
> Hey Tanu!
>
> Thanks for the assistance. Below is the output of what you asked for.
>
>
>> What does "pactl list cards" print, and what does this little script
>> print?
>>
>
> Card #0
> Name: alsa_card.pci-_00_01.1
> Driver: module-alsa-card.c
> Owner Module: 6
> Properties:
> alsa.card = "0"
> alsa.card_name = "HDA ATI HDMI"
> alsa.long_card_name = "HDA ATI HDMI at 0xc0d4 irq 48"
> alsa.driver_name = "snd_hda_intel"
> device.bus_path = "pci-:00:01.1"
> sysfs.path = "/devices/pci:00/:00:01.1/sound/card0"
> device.bus = "pci"
> device.vendor.id = "1002"
> device.vendor.name = "Advanced Micro Devices, Inc.
> [AMD/ATI]"
> device.product.id = "9840"
> device.product.name = "Kabini HDMI/DP Audio"
> device.form_factor = "internal"
> device.string = "0"
> device.description = "Built-in Audio"
> module-udev-detect.discovered = "1"
> device.icon_name = "audio-card-pci"
> Profiles:
> output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks:
> 1, sources: 0, priority: 5900, available: yes)
> output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output
> (sinks: 1, sources: 0, priority: 5700, available: no)
> output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2)
> Output (sinks: 1, sources: 0, priority: 600, available: no)
> output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI
> 2) Output (sinks: 1, sources: 0, priority: 600, available: no)
> off: Off (sinks: 0, sources: 0, priority: 0, available:
> yes)
> Active Profile: output:hdmi-stereo
> Ports:
> hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency
> offset: 0 usec, available)
> Properties:
> device.icon_name = "video-display"
> Part of profile(s): output:hdmi-stereo
> hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800,
> latency offset: 0 usec, not available)
> Properties:
> device.icon_name = "video-display"
> Part of profile(s): output:hdmi-stereo-extra1,
> output:hdmi-surround-extra1, output:hdmi-surround71-extra1
>
> Card #1
> Name: alsa_card.pci-_00_14.2
> Driver: module-alsa-card.c
> Owner Module: 7
> Properties:
> alsa.card = "1"
> alsa.card_name = "HD-Audio Generic"
> alsa.long_card_name = "HD-Audio Generic at 0xc0d44000 irq
> 16"
> alsa.driver_name = "snd_hda_intel"
> device.bus_path = "pci-:00:14.2"
> sysfs.path = "/devices/pci:00/:00:14.2/sound/card1"
> device.bus = "pci"
> device.vendor.id = "1022"
> devic

Re: [pulseaudio-discuss] configure a soundcard?

2019-04-22 Thread Matt Zagrabelny
On Mon, Apr 22, 2019 at 3:06 AM Tanu Kaskinen  wrote:

> On Sat, 2019-04-20 at 12:11 -0500, Matt Zagrabelny wrote:
> > Greetings,
> >
> > I'm running Debian Buster and I have a 1/8" audio jack. I need the sink
> to
> > be an analog output to send off to some other device. Things work great,
> > except for when the system reboots, it comes up configured as a digital
> > soundcard:
> >
> > Digital Stereo (IEC958)
> >
> > Here is a diff between a "pactl list" when the computer reboots and when
> > I've configured it to be an analog sink:
> >
> > -Sink #1
> > -   State: SUSPENDED
> > -   Name: alsa_output.pci-_00_14.2.iec958-stereo
> > -   Description: Built-in Audio Digital Stereo (IEC958)
> > +Sink #2
> > +   State: RUNNING
> > +   Name: alsa_output.pci-_00_14.2.analog-stereo
> > +   Description: Built-in Audio Analog Stereo
> >
> > What is the best way to have the configuration saved between reboots?
> >
> > I can provide further info if needed.
> >
> > Thanks for any help!
>

Hey Tanu!

Thanks for the assistance. Below is the output of what you asked for.


> What does "pactl list cards" print, and what does this little script
> print?
>

Card #0
Name: alsa_card.pci-_00_01.1
Driver: module-alsa-card.c
Owner Module: 6
Properties:
alsa.card = "0"
alsa.card_name = "HDA ATI HDMI"
alsa.long_card_name = "HDA ATI HDMI at 0xc0d4 irq 48"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-:00:01.1"
sysfs.path = "/devices/pci:00/:00:01.1/sound/card0"
device.bus = "pci"
device.vendor.id = "1002"
device.vendor.name = "Advanced Micro Devices, Inc.
[AMD/ATI]"
device.product.id = "9840"
device.product.name = "Kabini HDMI/DP Audio"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Profiles:
output:hdmi-stereo: Digital Stereo (HDMI) Output (sinks: 1,
sources: 0, priority: 5900, available: yes)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output
(sinks: 1, sources: 0, priority: 5700, available: no)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2)
Output (sinks: 1, sources: 0, priority: 600, available: no)
output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI
2) Output (sinks: 1, sources: 0, priority: 600, available: no)
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
Active Profile: output:hdmi-stereo
Ports:
hdmi-output-0: HDMI / DisplayPort (priority: 5900, latency
offset: 0 usec, available)
Properties:
device.icon_name = "video-display"
Part of profile(s): output:hdmi-stereo
hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800,
latency offset: 0 usec, not available)
Properties:
device.icon_name = "video-display"
Part of profile(s): output:hdmi-stereo-extra1,
output:hdmi-surround-extra1, output:hdmi-surround71-extra1

Card #1
Name: alsa_card.pci-_00_14.2
Driver: module-alsa-card.c
Owner Module: 7
Properties:
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xc0d44000 irq
16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-:00:14.2"
sysfs.path = "/devices/pci:00/:00:14.2/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "780d"
device.product.name = "FCH Azalia Controller"
device.form_factor = "internal"
device.string = "1"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Profiles:
input:analog-stereo: A

Re: [pulseaudio-discuss] configure a soundcard?

2020-04-13 Thread Matt Zagrabelny
Georg, Tanu, and others,

On Tue, Apr 30, 2019 at 2:35 PM Georg Chini  wrote:

> On 27.04.19 12:26, Tanu Kaskinen wrote:
> > On Fri, 2019-04-26 at 07:37 -0500, Matt Zagrabelny wrote:
> >> On Fri, Apr 26, 2019 at 4:28 AM Tanu Kaskinen  wrote:
> >>
> >>
> > In /usr/share/pulseaudio/alsa-mixer/paths/analog-output-
> > headphones.conf, change these lines:
> >
> > [Jack Front Headphone]
> > required-any = any
> >
> > to
> >
> > [Jack Front Headphone]
> > required-any = any
> > state.plugged = unknown
> > state.unplugged = unknown
> >
> > and similarly in /usr/share/pulseaudio/alsa-mixer/paths/analog-output-
> > lineout.conf change these lines:
> >
> > [Jack Line Out Front]
> > required-any = any
> >
> > to
> >
> > [Jack Line Out Front]
> > required-any = any
> > state.plugged = unknown
> > state.unplugged = unknown
> >
> > These changes will be overwritten whenever your distribution updates
> > pulseaudio (yes, this sucks, hopefully this will be improved some day;
> > I think George Chini already has something prepared related to
> > disabling jack detection).
> >
> Yes, once the messaging API patches are merged, I have at
> least patches that provide the basic infrastructure to disable
> jack detection on the fly.
>

How are the messaging API patches coming along?

I happened to upgrade this computer the other day and was reminded of this
thread.

Any PA updates for disabling jack detection on the fly?

Thanks for your work in PA and help here, too.

-m
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] configure a soundcard?

2020-04-13 Thread Matt Zagrabelny
>
> > How are the messaging API patches coming along?
>
> Slowly moving forward. You can follow the process here:
> https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/51


Super! Thanks for the link. Good to see progress.

-m
___
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] analog stereo no longer an option for sound card

2021-09-17 Thread Matt Zagrabelny
Greetings,

I sent a request to this PA mailing list two years ago asking about
on-the-fly sound card configuration:

https://lists.freedesktop.org/archives/pulseaudio-discuss/2019-April/031017.html

and then a year ago, I pinged the mailing list regarding the same topic:

https://lists.freedesktop.org/archives/pulseaudio-discuss/2020-April/031682.html

Thanks to Tanu and Georg for helping out and answering questions!

It appears the messaging API has been integrated into the v15.0
release - so I decided to upgrade my system in hopes of utilizing that
API to disable on-the-fly jack detection.

Unfortunately, after the upgrade, the option to set my sound card as
an Analog Stereo is no longer present.

In the drop-down in the Sound Preferences configuration window I see
the following:

Digital Stereo (IEC958) Output
Digital Stereo (IEC958) Output + Analog Stereo Input
Digital Surround 5.1 (IEC958/AC3) Output

How do I configure this sound card, which up until today could be
configured as an Analog Stereo, to be Analog Stereo?

If the messaging API can handle disabling jack detection on-the-fly,
is anyone able to help me configure my system to perform that
disabling?

I am running:

$ apt policy pulseaudio
pulseaudio:
  Installed: 15.0+dfsg1-2

Thanks for any help!

-m


Re: [pulseaudio-discuss] analog stereo no longer an option for sound card

2021-09-17 Thread Matt Zagrabelny
On Fri, Sep 17, 2021 at 3:25 PM Matt Zagrabelny  wrote:
>
> Greetings,
>
> I sent a request to this PA mailing list two years ago asking about
> on-the-fly sound card configuration:
[...]
> How do I configure this sound card, which up until today could be
> configured as an Analog Stereo, to be Analog Stereo?

Apparently making the changes Tanu suggested in my original email to
the mailing list:

https://lists.freedesktop.org/archives/pulseaudio-discuss/2019-April/031017.html

allows the soundcard to be configured as an Analog Stereo. So, that
seems to be fixed, albeit with hacking files is /usr/share.

Any ideas about correcting this whole problem with the messaging API?

Thanks for any help.

-m