Can alsa .card_name be overriden / prettified?

Open
#4,037 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, linux

Research direction

Start with sound/soc/bcm/rpi-simple-soundcard.c, especially the drvdata_merus_amp and snd_merus_amp_dai definitions shown in the issue. Trace how .card_name becomes the Roon-visible card name and assess whether .name or .stream_name can provide an override or prettier display; done means identifying a supported change or documenting why it is not possible.

Written by the indexing model from the issue text.

Description

Currently when using RoonBridge running on a pi, it pulls in the .card_name parameter as the name of the card in Roon:

Screenshot 2021-01-01 at 00 08 12

For example the above is pulling from this code:

static struct snd_rpi_simple_drvdata drvdata_merus_amp = {
	.card_name        = "snd_rpi_merus_amp",
	.dai              = snd_merus_amp_dai,
	.fixed_bclk_ratio = 64,
};

Is there a way to override what is shown here? Or make it "prettier"? For example it would be nicer if we could display the .name or .stream_name from above:

static struct snd_soc_dai_link snd_merus_amp_dai[] = {
	{
		.name           = "MerusAmp",
		.stream_name    = "Merus Audio Amp",
Dominant language
C
Stars
13.2k
Forks
5.5k
Avg merge
2d 21h
Merged PRs (30d)
21

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/linux

All issues in raspberrypi/linux

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.