[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2016-05-14 Thread Takashi Sakamoto
This is partly fixed at upstream of PulseAudio. And a new package has
already released for Ubuntu 16.04.

In detail, please refer to this commit.
https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/udev-util.c?id=3ac73598c67cb59a318c8baaf33fe97eed1e0b3e

Thanks.

** Changed in: pulseaudio (Ubuntu)
   Status: Triaged => Fix Released

** Changed in: pulseaudio (Ubuntu)
 Assignee: (unassigned) => Takashi Sakamoto (mocchi)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-20 Thread David Henningsson
What happens is the following:

Gnome settings' UI shows device.description by default. This value is
taken from udev, key ID_MODEL_FROM_DATABASE. The firewire udev device
does not set this value, so it falls back looking for the parent device.
The parent device, the controller has an ID_MODEL_FROM_DATABASE set,
which in my case is Motherboard. So the firewire card ends up with the
name Motherboard.

The ID_MODEL_FROM_DATABASE is probably set (for the firewire controller)
by udev/systemd, see the hwdb directory of systemd sources.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-20 Thread Andras Muranyi
BTW not only Gnome Settings but also `pactl list` has the same info.
The right names are there too, however.

alsa.card = 0
alsa.card_name = PHASE 88 Rack FW
alsa.long_card_name = TerraTec Electronic Gmb PHASE 88 Rack FW 
(id:3, rev:1), GUID 000aac0300592827 a
alsa.driver_name = snd_bebob
device.bus_path = pci-:01:09.0
sysfs.path = 
/devices/pci:00/:00:09.0/:01:09.0/fw2/fw2.0/sound/card0
udev.id = firewire-0x000aac0300592827
device.bus = firewire
device.vendor.name = Texas Instruments
device.product.name = TSB43AB22A IEEE-1394a-2000 Controller 
(PHY/Link) [iOHCI-Lynx]
device.string = 0
device.description = TSB43AB22A IEEE-1394a-2000 Controller 
(PHY/Link) [iOHCI-Lynx]
module-udev-detect.discovered = 1
device.icon_name = audio-card-firewire
profiles:
input:10-channels: 10 Channels Input (priority 10, available: 
unknown)
output:10-channels: 10 Channels Output (priority 1000, 
available: unknown)
output:10-channels+input:10-channels: 10 Channels Output + 10 
Channels Input (priority 1010, available: unknown)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-20 Thread Takashi Sakamoto
Hi David,

 The ID_MODEL_FROM_DATABASE is probably set (for the firewire controller) by 
 udev/systemd,
 see the hwdb directory of systemd sources.

Exactly. I've already realized it and it require discussion between
ALSA, PulseAudio and systemd about which part of userspace has these
information for FireWire sound devices. This requires a batch of time so
I made it pending. Currently I would like to concentrate on my work for
ALSA kernel-land.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-19 Thread Takashi Sakamoto
Hi,

I'm an authour of this kernel module (snd-bebob), I think you already
know.

I'll explain about the naming rule for ALSA FireWire drivers.

struct snd_ctl_card_info.driver[16]
= BeBoB/Fireworks/OXFW/Dice/Digi00x etc...
struct snd_ctl_card_info.name[32]
= 'model name' from config ROM, see below
struct snd_ctl_card_info.longname[80]
= a joined string of 'vendor name', 'model name', bus speed etc... 
Sometimes truncated.
struct snd_ctl_card_info.mixername[80]
= not important because these modules basically has no control elements
struct snd_ctl_card_info.components[128]
= not filled

The 'config ROM' is defined in IEEE 1212 and IEEE 1394. Generally, each
device on IEEE 1394 bus have its information in the same register
defined in these specifications. In the information, vendor and model
name is included and the kernel modules refers to them.

You can see actual examples of the information in config ROM in ffado page:
http://subversion.ffado.org/wiki/AvcModels

For example,
http://subversion.ffado.org/wiki/AvcModels/TerratecPhase88

{{{
Config ROM
Current Node Id:0
GUID:   0x000aac0300d99287
Vendor Name:TerraTec Electronic GmbH
Model Name: PHASE 88 Rack FW
...
}}}

Well, I reccomend you to use struct snd_ctl_card_info.name[32] for shown
name. It can be retrieved by snd_ctl_card_info_get_name().

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-19 Thread Takashi Sakamoto
FYI, a part of my work is already included in Linux 3.16 or later. In
this bug, the reporter uses my breeding-edge in github.com, thus you may
have an idea that this is due to out-of-tree kernel modules. But you can
actually see the same issue on Ubuntu utopic.

http://packages.ubuntu.com/utopic/amd64/linux-image-extra-3.16.0-23-generic/filelist
(You can see 
/lib/modules/3.16.0-23-generic/kernel/sound/firewire/bebob/snd-bebob.ko in this 
list.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-17 Thread David Henningsson
Same thing here - although I'm not sure whether this should be fixed in
PulseAudio, or if the underlying layers (alsa-lib and kernel) should
provide information the way PA wants to instead.

** Changed in: pulseaudio (Ubuntu)
   Status: Incomplete = Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-17 Thread Raymond
https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/firewire/Kconfig

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/firewire

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/firewire/bebob

https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/tree/sound/firewire/bebob/bebob.c

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-17 Thread Raymond
strcpy(bebob-card-driver, BeBoB);
strcpy(bebob-card-shortname, model);
strcpy(bebob-card-mixername, model);
snprintf(bebob-card-longname, sizeof(bebob-card-longname),
 %s %s (id:%d, rev:%d), GUID %08x%08x at %s, S%d,
 vendor, model, hw_id, revision,
 data[0], data[1], dev_name(bebob-unit-device),
 100  fw_dev-max_speed);


seem long name is already truncated

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-16 Thread Andras Muranyi
 which name do you want
 when you plug and unplug the device ?

Based on how other cards are named (see previous attachment Firewire sound 
card listed in Sound Settings) there sould be a short description of the 
output, followed by the short name of the card. For example:
10 Channels *
PHASE 88  **

* Please note that the 10 output channels are, in this case, 8 Analog
and 2 Digital (the same applies to Input channels). As far as I can see,
normally the 8 Channels Analog Output and the Digital Output
(S/PDIF) would be displayed as two separate options in Sound Settings -
I guess this is beyond the scope of the current issue and I shall file a
new bug.

** or PHASE 88 Rack FW

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-15 Thread Raymond
you have to post output of alsa-info.sh

pactl list

and

pulseaudio verbose log

https://wiki.ubuntu.com/PulseAudio/Log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-15 Thread Raymond
** Changed in: pulseaudio (Ubuntu)
   Status: New = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-15 Thread Andras Muranyi
** Attachment added: output of pulseaudio - --log-time=1
   
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+attachment/4237185/+files/pulseverbose.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-15 Thread Andras Muranyi
http://www.alsa-
project.org/db/?f=8b6f81d43c2c1156c94deba796317d3c274dee3e

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-15 Thread Andras Muranyi
** Attachment added: output of pactl list
   
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+attachment/4237170/+files/pactl.list.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1381475

Title:
  Firewire sound card registered by the name of the fw controller

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1381475/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1381475] Re: Firewire sound card registered by the name of the fw controller

2014-10-15 Thread Raymond
---Mixer controls for card 0 [FW]

Card hw:0 'FW'/'TerraTec Electronic Gmb PHASE 88 Rack FW (id:3, rev:1), GUID 
000aac0300592827 a'
  Mixer name: 'PHASE 88 Rack FW'
  Components: ''
  Controls  : 0
  Simple ctrls  : 0


which name do you want 

when you plug and unplug the device ?


   3.519|   0.000) I: [pulseaudio] sink.c: Created sink 2 
alsa_output.firewire-0x000aac0300592827.10-channels with sample spec s16le 
10ch 44100Hz and channel map 
front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right,aux0,aux1
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.resolution_bits = 16
(   3.519|   0.000) I: [pulseaudio] sink.c: device.api = alsa
(   3.519|   0.000) I: [pulseaudio] sink.c: device.class = sound
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.class = generic
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.subclass = generic-mix
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.name = PHASE 88 Rack FW 
PCM
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.id = BeBoB
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.subdevice = 0
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.subdevice_name = 
subdevice #0
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.device = 0
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.card = 0
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.card_name = PHASE 88 Rack 
FW
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.long_card_name = TerraTec 
Electronic Gmb PHASE 88 Rack FW (id:3, rev:1), GUID 000aac0300592827 a
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.driver_name = snd_bebob
(   3.519|   0.000) I: [pulseaudio] sink.c: device.bus_path = 
pci-:01:09.0
(   3.519|   0.000) I: [pulseaudio] sink.c: sysfs.path = 
/devices/pci:00/:00:09.0/:01:09.0/fw2/fw2.0/sound/card0
(   3.519|   0.000) I: [pulseaudio] sink.c: udev.id = 
firewire-0x000aac0300592827
(   3.519|   0.000) I: [pulseaudio] sink.c: device.bus = firewire
(   3.519|   0.000) I: [pulseaudio] sink.c: device.vendor.name = Texas 
Instruments
(   3.519|   0.000) I: [pulseaudio] sink.c: device.product.name = 
TSB43AB22A IEEE-1394a-2000 Controller (PHY/Link) [iOHCI-Lynx]
(   3.519|   0.000) I: [pulseaudio] sink.c: device.string = hw:0
(   3.519|   0.000) I: [pulseaudio] sink.c: device.buffering.buffer_size = 
163840
(   3.519|   0.000) I: [pulseaudio] sink.c: device.buffering.fragment_size 
= 81920
(   3.519|   0.000) I: [pulseaudio] sink.c: device.access_mode = 
mmap+timer
(   3.519|   0.000) I: [pulseaudio] sink.c: device.profile.name = 
10-channels
(   3.519|   0.000) I: [pulseaudio] sink.c: device.profile.description = 
10 Channels
(   3.519|   0.000) I: [pulseaudio] sink.c: device.description = 
TSB43AB22A IEEE-1394a-2000 Controller (PHY/Link) [iOHCI-Lynx] 10 Channels
(   3.519|   0.000) I: [pulseaudio] sink.c: alsa.mixer_name = PHASE 88 
Rack FW
(   3.519|   0.000) I: [pulseaudio] sink.c: module-udev-detect.discovered = 
1
(   3.519|   0.000) I: [pulseaudio] sink.c: device.icon_name = 
audio-card-firewire
(   3.523|   0.004) D: [pulseaudio] core-subscribe.c: Dropped redundant event 
due to change event.
(   3.523|   0.000) I: [pulseaudio] source.c: Created source 5 
alsa_output.firewire-0x000aac0300592827.10-channels.monitor with sample spec 
s16le 10ch 44100Hz and channel map 
front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right,aux0,aux1
(   3.523|   0.000) I: [pulseaudio] source.c: device.description = Monitor 
of TSB43AB22A IEEE-1394a-2000 Controller (PHY/Link) [iOHCI-Lynx] 10 Channels
(   3.523|   0.000) I: [pulseaudio] source.c: device.class = monitor
(   3.523|   0.000) I: [pulseaudio] source.c: alsa.card = 0
(   3.523|   0.000) I: [pulseaudio] source.c: alsa.card_name = PHASE 88 
Rack FW
(   3.523|   0.000) I: [pulseaudio] source.c: alsa.long_card_name = 
TerraTec Electronic Gmb PHASE 88 Rack FW (id:3, rev:1), GUID 000aac0300592827 
a
(   3.523|   0.000) I: [pulseaudio] source.c: alsa.driver_name = snd_bebob
(   3.523|   0.000) I: [pulseaudio] source.c: device.bus_path = 
pci-:01:09.0
(   3.523|   0.000) I: [pulseaudio] source.c: sysfs.path = 
/devices/pci:00/:00:09.0/:01:09.0/fw2/fw2.0/sound/card0
(   3.523|   0.000) I: [pulseaudio] source.c: udev.id = 
firewire-0x000aac0300592827
(   3.523|   0.000) I: [pulseaudio] source.c: device.bus = firewire
(   3.523|   0.000) I: [pulseaudio] source.c: device.vendor.name = Texas 
Instruments
(   3.523|   0.000) I: [pulseaudio] source.c: device.product.name = 
TSB43AB22A IEEE-1394a-2000 Controller (PHY/Link) [iOHCI-Lynx]
(   3.523|   0.000) I: [pulseaudio] source.c: device.string = 0
(   3.523|   0.000) I: [pulseaudio] source.c: module-udev-detect.discovered 
= 1
(   3.523|   0.000) I: [pulseaudio] source.c: device.icon_name = 
audio-card-firewire
(   3.525|   0.001) I: