Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* snd-ca0106
@ 2008-11-01 11:22 Vedran Miletić
  2008-11-02 11:26 ` snd-ca0106 Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Vedran Miletić @ 2008-11-01 11:22 UTC (permalink / raw)
  To: alsa-devel mailing list

I played with CA0106 driver a bit. I wonder if we could make it set
name for card and chip, in similar way to snd-emu10k1 and others.
So... in emu10k1.c we have:
180         strcpy(card->driver, emu->card_capabilities->driver);
181         strcpy(card->shortname, emu->card_capabilities->name);
While in ca0106_main.c there is:
1369         strcpy(card->driver, "CA0106");
1370         strcpy(card->shortname, "CA0106");
Can it be changed? I want it do display Card in alsamixer as a board
name from ca0106_card_capabailities list and Chip name to be CA0106
[chip->model].
Also, it would be great if we could name the four PCMs, like
hw0,0 - card_name Front
hw0,1 - card_name Rear
hw0,2 - card_name Center/LFE
hw0,3 - card_name Side (it's not unknown)
Instead of just CA0106. Any ideas?

-- 
Vedran Miletić
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: snd-ca0106
  2008-11-01 11:22 snd-ca0106 Vedran Miletić
@ 2008-11-02 11:26 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2008-11-02 11:26 UTC (permalink / raw)
  To: Vedran Miletić; +Cc: alsa-devel mailing list

At Sat, 1 Nov 2008 12:22:01 +0100,
=?UTF-8?Q?Vedran_Mileti=C4=87?= wrote:
> 
> I played with CA0106 driver a bit. I wonder if we could make it set
> name for card and chip, in similar way to snd-emu10k1 and others.
> So... in emu10k1.c we have:
> 180         strcpy(card->driver, emu->card_capabilities->driver);
> 181         strcpy(card->shortname, emu->card_capabilities->name);
> While in ca0106_main.c there is:
> 1369         strcpy(card->driver, "CA0106");
> 1370         strcpy(card->shortname, "CA0106");
> Can it be changed? I want it do display Card in alsamixer as a board
> name from ca0106_card_capabailities list and Chip name to be CA0106
> [chip->model].

Changing these fields are often dangerous and can easily break the
existing setup.  The driver field determines which config file is
used, so it should stay as is unless you want to change the config
file explicitly (for incompatibility or so).
The shortname can influence on the creation of id string, so this
change should be done carefully, too.


> Also, it would be great if we could name the four PCMs, like
> hw0,0 - card_name Front
> hw0,1 - card_name Rear
> hw0,2 - card_name Center/LFE
> hw0,3 - card_name Side (it's not unknown)
> Instead of just CA0106. Any ideas?

The PCM name can be set independently from the card name, etc.
This should be safe in most cases.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-02 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-01 11:22 snd-ca0106 Vedran Miletić
2008-11-02 11:26 ` snd-ca0106 Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox